Nobody likes to be called a dummy by a dummy.

Need some .NET guidance

So i'm trying to put a .NET application together but I come from a PHP/Java background.

I've got a basic windows form running with a toolbar accross the top with four options, customers, employees, parts and workorders which all have tables in SQL Server, the data grids are all working fine.

What I want to do is load a new form e.g. viewCustomers when the relevant button is clicked on the toolbar but i'm not sure how to do this?

In Java i'd just have a JFrame and then different Panes and load a pane into the frame. Could someone tell me if this is possible with .NET? I can't find such thing and my searches aren't being helpful.

Cheers
Permalink what are you reading for? 
April 25th, 2007 11:20am
within the event handler:

Form myform = new Form();
myform.Show();
Permalink arg! 
April 25th, 2007 11:56am
What specific behavior do you need it to exhibit?
Permalink arg! 
April 25th, 2007 11:58am
You could add panes to the existing form and show/hide them as needed. I hate doing that because working with a GUI that is in layers is a PITA.
Permalink JoC 
April 25th, 2007 12:09pm
Panes = panels.
Permalink JoC 
April 25th, 2007 12:10pm
Cheers guys, I'll give it a try when I'm back at work tomorrow, no doubt i'll be posting again!
Permalink what are you reading for? 
April 25th, 2007 1:02pm
if you're using asp.net 2.0, then i recommend using multiviews:

http://www.aspfree.com/c/a/.NET/Basic-Usage-of-MultiView-and-View-Controls-in-ASPNET/
Permalink Kenny 
April 25th, 2007 2:20pm
sorry, this article seems a bit easier to read:

http://aspalliance.com/675
Permalink Kenny 
April 25th, 2007 2:21pm
Nah im going with C# currently, will take a read though, cheers kenny
Permalink what are you reading for? 
April 25th, 2007 2:38pm
the objects are pretty much the same.
Permalink Kenny 
April 25th, 2007 2:47pm

This topic is archived. No further replies will be accepted.

Other topics: April, 2007 Other topics: April, 2007 Recent topics Recent topics