Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2006

Tip: Looking for answers? Try searching our database.

Like Windows Explorer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rodrigo Ferreira - 07 Feb 2006 17:50 GMT
Hello,

I'm a beginner in windows forms and now i want create a application, where
his layout is like Windows Explorer (On top a menu, and bottom 2 zones
(splitted) )

------------
|    |           |
|    |           |
------------

Anyone knows how can i do that?
Herfried K. Wagner [MVP] - 07 Feb 2006 21:33 GMT
"Rodrigo Ferreira" <rjrferreira@gmail.com> schrieb:
> I'm a beginner in windows forms and now i want create a application, where
> his layout is like Windows Explorer (On top a menu, and bottom 2 zones
[quoted text clipped - 4 lines]
> |    |           |
> ------------

.NET 1.0/1.1:

Add the left control and set its 'Dock' property to 'Left'.  Then add a
splitter control and dock it to the left edge too.  Finally add the right
control and set its 'Dock' property to 'Fill'.

.NET 2.0:

Use the splitcontainer control.

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>

Rodrigo Ferreira - 08 Feb 2006 09:35 GMT
Ok but how can i say to the child forms open in the right field of the
splitcontainer? I say that because i want open diferrent forms (choosed in
the menu) in that area.

Greetings.

> "Rodrigo Ferreira" <rjrferreira@gmail.com> schrieb:
>> I'm a beginner in windows forms and now i want create a application,
[quoted text clipped - 15 lines]
>
> Use the splitcontainer control.
Herfried K. Wagner [MVP] - 08 Feb 2006 10:38 GMT
"Rodrigo Ferreira" <rjrferreira@gmail.com> schrieb:
> Ok but how can i say to the child forms open in the right field of the
> splitcontainer? I say that because i want open diferrent forms (choosed in
> the menu) in that area.

You may want to use user controls instead of forms.

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>

Rodrigo Ferreira - 08 Feb 2006 11:26 GMT
you can explain better that idea please?

> "Rodrigo Ferreira" <rjrferreira@gmail.com> schrieb:
>> Ok but how can i say to the child forms open in the right field of the
>> splitcontainer? I say that because i want open diferrent forms (choosed
>> in the menu) in that area.
>
> You may want to use user controls instead of forms.
Herfried K. Wagner [MVP] - 08 Feb 2006 19:01 GMT
"Rodrigo Ferreira" <rjrferreira@gmail.com> schrieb:
> you can explain better that idea please?

"Project" -> "Add user control...".  User controls are similar to forms but
they can be placed on a form like controls.  You can load and show the
controls at runtime too:

\\\
Dim u As New UserControl1()
Me.Controls.Add(u)
u.Show()
///

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.