Click here to Skip to main content
15,896,448 members
Home / Discussions / C#
   

C#

 
GeneralRe: Searching for opponents, what do I need? Pin
Link260023-Jul-04 7:13
Link260023-Jul-04 7:13 
GeneralRe: Searching for opponents, what do I need? Pin
Bill Dean23-Jul-04 8:25
Bill Dean23-Jul-04 8:25 
GeneralRe: Searching for opponents, what do I need? Pin
Dave Kreskowiak23-Jul-04 10:40
mveDave Kreskowiak23-Jul-04 10:40 
GeneralReceiving NoNullAllowedException setting SelectedValue from code. Pin
Brett Slaski22-Jul-04 12:01
Brett Slaski22-Jul-04 12:01 
GeneralRe: Receiving NoNullAllowedException setting SelectedValue from code. Pin
Heath Stewart22-Jul-04 12:11
protectorHeath Stewart22-Jul-04 12:11 
GeneralRe: Receiving NoNullAllowedException setting SelectedValue from code. Pin
Brett Slaski23-Jul-04 9:30
Brett Slaski23-Jul-04 9:30 
GeneralRe: Receiving NoNullAllowedException setting SelectedValue from code. Pin
Heath Stewart23-Jul-04 10:00
protectorHeath Stewart23-Jul-04 10:00 
Generalnon-static class referencing Pin
Wolfman3222-Jul-04 12:00
Wolfman3222-Jul-04 12:00 
I'm designing my first app in VS.NET using C#. I've created an outlook style toolbar down the side of my main form, and I want to change the content to the right of these buttons when the user clicks on the different buttons. I had it working fine with my toolbar buttons (which are custom and get deactivated every time I click on the design view) coded into Form1 but this is very cumbersome.
I want to use seperate UserControls for each of my content panels, and a seperate UserControl for my custom toolbar of buttons.
My problem is now one of referencing. I can't get my UserControl to tell Form1 to switch the visibility of my panels (change my panels).

This is how my main method gets the ball rolling:

static void Main()
{
Application.Run(new Form1());
}

So I don't know how to get ahold of an instance of my Form1 class so that my UserControls can say something like :
MyForm.SetVisiblePanel(panel_id);

Any suggestions?
also, what does the Form1_Load method do? VS seems to like to pop these methods in but they are empty.


GeneralRe: non-static class referencing Pin
Heath Stewart22-Jul-04 12:29
protectorHeath Stewart22-Jul-04 12:29 
Generalthe process and services... Pin
Wail A.Salem22-Jul-04 11:58
Wail A.Salem22-Jul-04 11:58 
GeneralRe: the process and services... Pin
Heath Stewart22-Jul-04 12:39
protectorHeath Stewart22-Jul-04 12:39 
QuestionGetTextExtent? Pin
Matt Gerrans22-Jul-04 10:01
Matt Gerrans22-Jul-04 10:01 
AnswerRe: GetTextExtent? Pin
Gary Thom22-Jul-04 10:06
Gary Thom22-Jul-04 10:06 
GeneralRe: GetTextExtent? Pin
Matt Gerrans22-Jul-04 19:25
Matt Gerrans22-Jul-04 19:25 
GeneralRun external program and wait Pin
Boaz V22-Jul-04 9:06
Boaz V22-Jul-04 9:06 
GeneralRe: Run external program and wait Pin
Heath Stewart22-Jul-04 9:25
protectorHeath Stewart22-Jul-04 9:25 
GeneralAtt: Heath Stewart - Browser Helper Objects Pin
Stuggo22-Jul-04 8:46
Stuggo22-Jul-04 8:46 
GeneralRe: Att: Heath Stewart - Browser Helper Objects Pin
Heath Stewart22-Jul-04 9:08
protectorHeath Stewart22-Jul-04 9:08 
GeneralCOM Ports Pin
eggie522-Jul-04 7:09
eggie522-Jul-04 7:09 
GeneralRe: COM Ports Pin
eggie522-Jul-04 7:42
eggie522-Jul-04 7:42 
GeneralRe: COM Ports Pin
Jae Sammy22-Jul-04 7:51
Jae Sammy22-Jul-04 7:51 
GeneralRe: COM Ports Pin
eggie522-Jul-04 8:01
eggie522-Jul-04 8:01 
GeneralRe: COM Ports Pin
Jae Sammy23-Jul-04 4:17
Jae Sammy23-Jul-04 4:17 
GeneralListView ColumnHeader class Pin
Andy H22-Jul-04 6:12
Andy H22-Jul-04 6:12 
GeneralRe: ListView ColumnHeader class Pin
Heath Stewart22-Jul-04 9:31
protectorHeath Stewart22-Jul-04 9:31 

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.