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

C#

 
GeneralRe: Passing a Method to a second form Pin
bwood20209-Jul-09 7:28
bwood20209-Jul-09 7:28 
GeneralRe: Passing a Method to a second form Pin
harold aptroot9-Jul-09 7:35
harold aptroot9-Jul-09 7:35 
You want to call it on the original form, not a new one. Usually you only have 1 instance of the main form anyway, so you could use the singleton pattern (makes managers and Java programmers happy) or just pass the instance of form1 to form2 when you make form2. (or use an event, see Davey's post)

There is a difference between a class and an instance of it. I'm sure you know, but it seems like you need to be reminded of that. But no offense..



GeneralRe: Passing a Method to a second form Pin
bwood20209-Jul-09 7:38
bwood20209-Jul-09 7:38 
AnswerRe: Passing a Method to a second form Pin
DaveyM699-Jul-09 7:32
professionalDaveyM699-Jul-09 7:32 
GeneralRe: Passing a Method to a second form Pin
bwood20209-Jul-09 7:47
bwood20209-Jul-09 7:47 
AnswerRe: Passing a Method to a second form Pin
Patrik.karlin9-Jul-09 7:38
Patrik.karlin9-Jul-09 7:38 
GeneralRe: Passing a Method to a second form Pin
DaveyM699-Jul-09 7:46
professionalDaveyM699-Jul-09 7:46 
GeneralRe: Passing a Method to a second form Pin
Patrik.karlin9-Jul-09 8:11
Patrik.karlin9-Jul-09 8:11 
GeneralRe: Passing a Method to a second form Pin
Henry Minute9-Jul-09 9:39
Henry Minute9-Jul-09 9:39 
GeneralRe: Passing a Method to a second form Pin
bwood20209-Jul-09 10:21
bwood20209-Jul-09 10:21 
Question[Message Deleted] Pin
VivekUtsa9-Jul-09 7:05
VivekUtsa9-Jul-09 7:05 
AnswerRe: Browser compatability Issues Pin
Dave Kreskowiak9-Jul-09 7:46
mveDave Kreskowiak9-Jul-09 7:46 
GeneralRe: Browser compatability Issues Pin
Manas Bhardwaj9-Jul-09 8:33
professionalManas Bhardwaj9-Jul-09 8:33 
QuestionHow do I retreive and interface's IP Address(es) when starting only with "Friendly Adapter Name" Pin
Vengeful Emus9-Jul-09 6:56
Vengeful Emus9-Jul-09 6:56 
GeneralRe: How do I retreive and interface's IP Address(es) when starting only with "Friendly Adapter Name" Pin
harold aptroot9-Jul-09 7:20
harold aptroot9-Jul-09 7:20 
GeneralRe: How do I retreive and interface's IP Address(es) when starting only with "Friendly Adapter Name" Pin
Vengeful Emus9-Jul-09 7:38
Vengeful Emus9-Jul-09 7:38 
GeneralRe: How do I retreive and interface's IP Address(es) when starting only with "Friendly Adapter Name" [modified*2] Pin
harold aptroot9-Jul-09 7:44
harold aptroot9-Jul-09 7:44 
GeneralRe: How do I retreive and interface's IP Address(es) when starting only with "Friendly Adapter Name" [modified*2] Pin
Dave Kreskowiak9-Jul-09 10:31
mveDave Kreskowiak9-Jul-09 10:31 
GeneralRe: How do I retreive and interface's IP Address(es) when starting only with "Friendly Adapter Name" Pin
harold aptroot9-Jul-09 10:39
harold aptroot9-Jul-09 10:39 
GeneralRe: How do I retreive and interface's IP Address(es) when starting only with "Friendly Adapter Name" [modified] Pin
Dave Kreskowiak9-Jul-09 7:51
mveDave Kreskowiak9-Jul-09 7:51 
GeneralRe: How do I retreive and interface's IP Address(es) when starting only with "Friendly Adapter Name" Pin
harold aptroot9-Jul-09 8:05
harold aptroot9-Jul-09 8:05 
GeneralRe: How do I retreive and interface's IP Address(es) when starting only with "Friendly Adapter Name" Pin
Luc Pattyn9-Jul-09 9:20
sitebuilderLuc Pattyn9-Jul-09 9:20 
Questionsearch for nearby wifi networks Pin
Vivek Vijayan9-Jul-09 6:54
Vivek Vijayan9-Jul-09 6:54 
AnswerRe: search for nearby wifi networks Pin
Vasudevan Deepak Kumar10-Jul-09 2:26
Vasudevan Deepak Kumar10-Jul-09 2:26 
Questionlist all wi-fi network connections Pin
Vivek Vijayan9-Jul-09 6:40
Vivek Vijayan9-Jul-09 6:40 

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.