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

C#

 
GeneralRe: Class hierarchy visualization tool Pin
Kant26-Apr-03 5:56
Kant26-Apr-03 5:56 
GeneralRe: Class hierarchy visualization tool Pin
leppie26-Apr-03 11:44
leppie26-Apr-03 11:44 
GeneralRe: Class hierarchy visualization tool Pin
leppie28-Apr-03 14:39
leppie28-Apr-03 14:39 
GeneralRe: Class hierarchy visualization tool Pin
J. Dunlap26-Apr-03 10:08
J. Dunlap26-Apr-03 10:08 
GeneralRe: Class hierarchy visualization tool Pin
Kant29-Apr-03 7:18
Kant29-Apr-03 7:18 
GeneralRe: Class hierarchy visualization tool Pin
Meysam Mahfouzi27-Apr-03 17:40
Meysam Mahfouzi27-Apr-03 17:40 
GeneralRe: Class hierarchy visualization tool Pin
Kant29-Apr-03 6:55
Kant29-Apr-03 6:55 
GeneralUnderstanding application level variables and functions compared to C++ Pin
dazinith25-Apr-03 10:02
dazinith25-Apr-03 10:02 
i am a newbie at c#, but have a good amount of time with vc++ development.. can someone help me with some questions?

in vc++ my application could have variables and functions like:
CCompanyStore* myCompanyStore;
void ShowAboutDialog();
and i would call them throughout the program like:
CMyApp* pApp = (CMyApp*)AfxGetApp();
pApp->ShowAboutDialog();
i would use these types of functions for replacing views in my mainframe and such as well.. but i dont understand how to call a function from my base form without doing something stupid like calling this.Parent.Parent.SetStatusText("hello");..

is there an easy way to get a pointer or a handle onto the main form i have derived from System.Windows.Forms.Form to call its functions or get/set its variables?

thanks in advance for any pointers!

EDIT: just to clarify, i want to be able to call functions from anywhere in the program to set the status bar text, or to enable/disable a toolbar button, or to replace the form displayed in the background, etc.
GeneralRe: Understanding application level variables and functions compared to C++ Pin
Jim Stewart25-Apr-03 19:03
Jim Stewart25-Apr-03 19:03 
GeneralRe: Understanding application level variables and functions compared to C++ Pin
dazinith28-Apr-03 3:12
dazinith28-Apr-03 3:12 
GeneralRe: Understanding application level variables and functions compared to C++ Pin
Stephane Rodriguez.26-Apr-03 0:04
Stephane Rodriguez.26-Apr-03 0:04 
GeneralRe: Understanding application level variables and functions compared to C++ Pin
dazinith28-Apr-03 3:08
dazinith28-Apr-03 3:08 
GeneralRe: Understanding application level variables and functions compared to C++ Pin
Stephane Rodriguez.28-Apr-03 3:23
Stephane Rodriguez.28-Apr-03 3:23 
GeneralI need a documentation writing tool. Pin
Alvaro Mendez25-Apr-03 4:14
Alvaro Mendez25-Apr-03 4:14 
GeneralRe: I need a documentation writing tool. Pin
David Stone25-Apr-03 8:22
sitebuilderDavid Stone25-Apr-03 8:22 
GeneralRe: I need a documentation writing tool. Pin
leppie25-Apr-03 10:56
leppie25-Apr-03 10:56 
GeneralRe: I need a documentation writing tool. Pin
GriffonRL26-Apr-03 12:16
GriffonRL26-Apr-03 12:16 
GeneralRe: I need a documentation writing tool. Pin
GriffonRL26-Apr-03 12:14
GriffonRL26-Apr-03 12:14 
GeneralRe: I need a documentation writing tool. Pin
Anonymous26-Apr-03 12:38
Anonymous26-Apr-03 12:38 
GeneralWebbrowser control and multithreading. Pin
GriffonRL25-Apr-03 1:35
GriffonRL25-Apr-03 1:35 
GeneralRe: Webbrowser control and multithreading. Pin
Stephane Rodriguez.26-Apr-03 0:14
Stephane Rodriguez.26-Apr-03 0:14 
GeneralRe: Webbrowser control and multithreading. Pin
GriffonRL26-Apr-03 12:11
GriffonRL26-Apr-03 12:11 
GeneralGDI+ and Metafiles Pin
sasha7125-Apr-03 0:12
sasha7125-Apr-03 0:12 
GeneralDDE with C# Pin
Mardawi24-Apr-03 14:11
Mardawi24-Apr-03 14:11 
GeneralRe: DDE with C# Pin
wolframrinke18-May-04 5:01
wolframrinke18-May-04 5:01 

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.