Click here to Skip to main content
15,908,776 members
Home / Discussions / C#
   

C#

 
Questionpasting data in datagridview possible..? Pin
Mubeen.asim19-Feb-09 2:54
Mubeen.asim19-Feb-09 2:54 
Questionhow to use treeview tool in C#.net? Pin
poonam jagdale19-Feb-09 2:46
poonam jagdale19-Feb-09 2:46 
AnswerRe: how to use treeview tool in C#.net? Pin
Calin Tatar19-Feb-09 3:05
Calin Tatar19-Feb-09 3:05 
Questionconnectivity with remote server Pin
Digubha19-Feb-09 2:41
Digubha19-Feb-09 2:41 
AnswerRe: connectivity with remote server Pin
poonam jagdale19-Feb-09 2:51
poonam jagdale19-Feb-09 2:51 
AnswerRe: connectivity with remote server Pin
Mubeen.asim19-Feb-09 2:56
Mubeen.asim19-Feb-09 2:56 
QuestionC# program structuring problem - Run in background - Teach a noob to do it properly :P Pin
samskiter19-Feb-09 2:39
samskiter19-Feb-09 2:39 
AnswerRe: C# program structuring problem - Run in background - Teach a noob to do it properly :P Pin
Rob Philpott19-Feb-09 3:14
Rob Philpott19-Feb-09 3:14 
Ok then, I think I understood some of that Smile | :)

I think there's a keyword in VB 'shared' which means the same as static. Static means things belong to the class rather than to instances of it.

What this means is that anything which is static can only refer to other static things - because you don't have any reference to a particular instance of the class.

As a suggestion to get you going, change all your methods to be non-static and rename the Main to something else. Then create a new static main, and in there instantiate the Program class, then call your old main function - does that make sense? Something like this:

static void Main()
{
    Program program = new Program();
    program.OldMainFunction();
}


Then you'll be working with an instance of a Program rather than class level...

Regards,
Rob Philpott.

GeneralRe: C# program structuring problem - Run in background - Teach a noob to do it properly :P Pin
samskiter19-Feb-09 3:33
samskiter19-Feb-09 3:33 
GeneralRe: C# program structuring problem - Run in background - Teach a noob to do it properly :P Pin
Rob Philpott19-Feb-09 3:46
Rob Philpott19-Feb-09 3:46 
GeneralRe: C# program structuring problem - Run in background - Teach a noob to do it properly :P Pin
samskiter19-Feb-09 5:44
samskiter19-Feb-09 5:44 
GeneralRe: C# program structuring problem - Run in background - Teach a noob to do it properly :P Pin
Rob Philpott19-Feb-09 6:34
Rob Philpott19-Feb-09 6:34 
GeneralRe: C# program structuring problem - Run in background - Teach a noob to do it properly :P Pin
samskiter19-Feb-09 6:57
samskiter19-Feb-09 6:57 
Questionhow to drag and drop image in c#.net & how to resize it after drop the image? Pin
poonam jagdale19-Feb-09 2:32
poonam jagdale19-Feb-09 2:32 
AnswerRe: how to drag and drop image in c#.net & how to resize it after drop the image? Pin
Calin Tatar19-Feb-09 2:37
Calin Tatar19-Feb-09 2:37 
QuestionMin (110) must be less than or equal to max (-1) in a Range object. Pin
Priya Prk19-Feb-09 2:01
Priya Prk19-Feb-09 2:01 
GeneralRe: Min (110) must be less than or equal to max (-1) in a Range object. Pin
Luc Pattyn19-Feb-09 2:13
sitebuilderLuc Pattyn19-Feb-09 2:13 
AnswerRe: Min (110) must be less than or equal to max (-1) in a Range object. Pin
michal.drozdowicz23-Mar-09 5:03
michal.drozdowicz23-Mar-09 5:03 
QuestionCompare two .DAT file using C# Pin
Member 322226419-Feb-09 1:52
Member 322226419-Feb-09 1:52 
AnswerRe: Compare two .DAT file using C# Pin
Luc Pattyn19-Feb-09 2:20
sitebuilderLuc Pattyn19-Feb-09 2:20 
Questioncreating a setup file Pin
aratireddy19-Feb-09 1:26
aratireddy19-Feb-09 1:26 
AnswerRe: creating a setup file Pin
Ramkithepower19-Feb-09 1:38
Ramkithepower19-Feb-09 1:38 
GeneralRe: creating a setup file Pin
Calin Tatar19-Feb-09 1:52
Calin Tatar19-Feb-09 1:52 
AnswerRe: creating a setup file Pin
Nuri Ismail19-Feb-09 2:20
Nuri Ismail19-Feb-09 2:20 
QuestionReading specific no if bytes from an UDP datagram [modified] Pin
M. J. Jaya Chitra19-Feb-09 0:51
M. J. Jaya Chitra19-Feb-09 0:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.