Click here to Skip to main content
15,914,360 members
Home / Discussions / C#
   

C#

 
GeneralRe: Calling Functions in Other Forms. Pin
Dwayner792-Feb-05 6:25
Dwayner792-Feb-05 6:25 
GeneralRe: Calling Functions in Other Forms. Pin
Michael Potter2-Feb-05 7:32
Michael Potter2-Feb-05 7:32 
GeneralRe: Calling Functions in Other Forms. Pin
Dwayner792-Feb-05 8:10
Dwayner792-Feb-05 8:10 
GeneralRe: Calling Functions in Other Forms. Pin
Michael Potter2-Feb-05 10:08
Michael Potter2-Feb-05 10:08 
GeneralRe: Calling Functions in Other Forms. Pin
Dwayner792-Feb-05 11:19
Dwayner792-Feb-05 11:19 
GeneralRe: Calling Functions in Other Forms. Pin
Michael Potter2-Feb-05 11:36
Michael Potter2-Feb-05 11:36 
GeneralRe: Calling Functions in Other Forms. Pin
Dwayner793-Feb-05 1:37
Dwayner793-Feb-05 1:37 
GeneralRe: Calling Functions in Other Forms. Pin
Robert Rohde2-Feb-05 8:44
Robert Rohde2-Feb-05 8:44 
It may be that I dont really get the problem but as Micheal already mentioned you could just pass the existing form to your user control. Give the usercontrol a property where the form can be set and than use this instance:
(within MainForm)
<br />
UserMenu menu = new UserMenu();<br />
menu.MyMainForm = this;<br />


This is probably the easiest way, but an event should be better. For that you have to decalre an event in UserMenu and consume it on the MainForm (just like you would handle the Click event of a Button).
GeneralRe: Calling Functions in Other Forms. Pin
Dwayner792-Feb-05 11:21
Dwayner792-Feb-05 11:21 
GeneralImpersonation Pin
Esmo20002-Feb-05 4:12
Esmo20002-Feb-05 4:12 
GeneralRe: Impersonation Pin
Esmo20002-Feb-05 10:47
Esmo20002-Feb-05 10:47 
GeneralFades / Swipe in directX Pin
SquallBlade2-Feb-05 3:59
SquallBlade2-Feb-05 3:59 
GeneralNetworkStream - Asynchronous vs Synchronous Pin
Tristan Rhodes2-Feb-05 3:28
Tristan Rhodes2-Feb-05 3:28 
GeneralReally simple question... Pin
Gavin Jeffrey2-Feb-05 2:48
Gavin Jeffrey2-Feb-05 2:48 
GeneralRe: Really simple question... Pin
aswanee2-Feb-05 3:27
aswanee2-Feb-05 3:27 
GeneralRe: Really simple question... Pin
Dave Kreskowiak2-Feb-05 4:42
mveDave Kreskowiak2-Feb-05 4:42 
GeneralRTD (real Time Data) problem Pin
aswanee2-Feb-05 2:12
aswanee2-Feb-05 2:12 
GeneralRe: RTD (real Time Data) problem Pin
Dave Kreskowiak2-Feb-05 4:38
mveDave Kreskowiak2-Feb-05 4:38 
Questionhow to read an xml file Pin
Bhupendr2-Feb-05 1:13
Bhupendr2-Feb-05 1:13 
AnswerRe: how to read an xml file Pin
Gavin Jeffrey2-Feb-05 3:00
Gavin Jeffrey2-Feb-05 3:00 
Generalagain: how to read an xml file Pin
Bhupendr2-Feb-05 18:01
Bhupendr2-Feb-05 18:01 
GeneralRe: again: how to read an xml file Pin
Gavin Jeffrey2-Feb-05 19:30
Gavin Jeffrey2-Feb-05 19:30 
GeneralExtract data and create xml for input Pin
dhol2-Feb-05 0:41
dhol2-Feb-05 0:41 
GeneralRe: Extract data and create xml for input Pin
Colin Angus Mackay2-Feb-05 2:47
Colin Angus Mackay2-Feb-05 2:47 
GeneralDataGrid (web) events not working when using collection class Pin
acidek2-Feb-05 0:35
acidek2-Feb-05 0:35 

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.