Quantcast
Channel: Visual C# forum
Browsing all 31927 articles
Browse latest View live
↧

How to calculate range of dates including day of week between to dates?

Hi,I am struggling to come up with the logic to be able to find the amount to charge users for using a particular resource between a range of dates. I would appreciate very much if someone more...

View Article


Use regex to match a number of words

Hi everyone, I am getting trouble with matching a number of words. For example, i want to match A, B, C, D in this string "from A to B in C at D", how can we use Regex to achieve this. Any idea on this...

View Article


Manipulate values in dictionary C#

Hi,    I am trying to figure out a logic to modify the values in dictionary in the following scenario.I have a dictionary which displays key,value pair of mailing address and the dictionary when...

View Article

user input and password

helloi'm working on this code and it is'nt working properly any help on the codesusing System; using System.Collections.Generic; using System.Linq; using System.Text; namespace trial {    public class...

View Article

How can I put checkboxes into an array and use FOR LOOP to add value to a...

Basically I am trying to make a app that is named computer store and It ask the user what kind of computer they would like to purchase and also I have customizable specs such as ram and monitor size...

View Article


How could I implement a loop to add values of my array; rather than add them...

Basically I will have more methods that will all use "num2" thats why I used the HoldArray to clean up the Main Method...So basically in the Max method I want to use some kind of loop to add all of the...

View Article

Why Webbrowser control does not release memory?

Hi AllI am using Webbrowser control in my c# windows application. I am trying to load different web pages.But after some time page does not load and give Object reference error, I have found that it...

View Article

Connection failed because of invalid command-line arguments

hi all,  while i am debugging my app, i am getting the following error "Connection failed because of invalid command-line arguments".i dont know how to solve,pls help me.ThanksThanks -...

View Article


Matching using Regex

Hi everyone,I am getting trouble with matching a number of words.For example, If input =@"from New York to Los Angeles in a car at 55 mph";"i want to match A = New York, B = Los Angeles, C = a car, D =...

View Article


Issue with XPathSelectElements

Right now my app pulls all of the Pubmed IDS from an XML file and displays them in a listbox. That code works fine. I am trying to add a function so when the user clicks the listbox, it searches the...

View Article

C# Video Game Launcher

Hello All,I'm working on a launcher for Arma 3 - that allows the users to launch the game with or with out mods, I have it mostly hard coded right now for the mods, but I am trying to change that.This...

View Article

Hide hidden file in treeview nodes

Hello Programmers, I have a program which gets the directories of the flash drive using treeview. However, I have hidden files in my flash drives which can be seen in the treeview. Can someone tell me...

View Article

Access Denied error received while compiling code using...

I get this strange error that says access denied although there arefull permissions. Stack trace is as mentioned below System.UnauthorizedAccessException: Access to the path 'C:\Users\PROSIGHT...

View Article


When should we use static members in a non-static class ?

When should we use static members in a non-static class ?Public Class NonStaticClass() { //Some Code Private static x; private static StaticMethod() { //Some Code } //Some Code }please write Real World...

View Article

Implicitily Convert Error

Seem to be having a problem trying to set a class to my linq variable:Here's the class for manipulating data from the database:publicclassResult{public bool LongerThan10Seconds{ get;set;}publicintId{...

View Article


C# specify array size in method parameter

i want to ask how i do specify an array length in a method parameter in C#. for example a method to calculate average of ten double numbers like Averageof10numbers(double[10] numbers) but it gives...

View Article

Can't use Factorial method

New user here, i'll explain quickly the issueWhen creating a console program, I tried to use this method inside the static void main int Factorial(int i) {if (i <= 1) return 1; return i *...

View Article


How to reduce noise from image (jpg or Png) in Asp.net C#

HelloI am capturing an image using Web cam. i have to read text from captured image using OCR. But the issue is.In some images there is noise or Grains and image quality is not so good. i have also...

View Article

Console APP: How to run other codes based on the value of a variable, using a...

Hello my friends:I am getting the row count from a database and assigning it to a variable. I need to run or call otherClasses and Methods from the Main Method of aConsole App based on the value...

View Article

how to implement the function in c#

I am converting the code form vb.net to c#.In vb.net if you pass typed dataset from entity to dataaccess haivng the untyped dataset it is accepting but in c# if you pass it is not accepting.through...

View Article
Browsing all 31927 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>