Dividing the screen

user21009

Member
Joined
Aug 10, 2008
Messages
12
Programming Experience
Beginner
Hi

I'm newbie to vb.net. I'm trying to create an application where I want to split screen in different sectors. For example split the screen in four where I will display different things in each sector.

Is there anyone who can help me ?

thanks
 
Well you can get the user's total screen size and the working area from the Screen.PrimaryScreen.
VB.NET:
    ' Retrieve the working rectangle from the Screen class
    ' using the PrimaryScreen and the WorkingArea properties. 
    Dim workingRectangle As System.Drawing.Rectangle = Screen.PrimaryScreen.WorkingArea
 
Are you trying to split the screens for multiple objects within a single project or for viewing multiple programs?

There are many options that you can choose from depending on your design. JuggaloBrotha has pointed out an excellent way of working with the screen class itself so I will just add a couple of other options, assuming multiple panes/windows within a single program.

01)
You can add splitter controls to a form so that the form is broken up into sections. Similar to Windows Explorer where you has the folder directories on the left and the files on the right, the splitter is the line in between where the user can adjust the size of the panels. Of course this is not limited to one vertical splitter per form, you can make as many as you want.

02) Another option would be to make an MDI project and then use the Windows >> Tile Vertical or Tile Horizontal features.
 
Thanks for your replies

Tom yes this is exactly what I want to do "Are you trying to split the screens for multiple objects within a single project"

Could u suggest me any example projects or code?

thanks in advance
 
Visual Basic 2005 Splitter Control Sample

ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_fxsamples/local/sampleexecutables/Technologies/WinForms/SplitContainerSample.zip
 
Back
Top