473,324 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Splitter

Hi

I am using a splitter within a form with buttons on the
left hand side. I would like it so that when i click one
of these buttons it changes the UI on the right. I would
like to design all of my different screens at design time
and not run time if possible.

Very much like outlook where when you click on calendar
the calendar shows on the right, same with contact etc!

Any pointers would be greatly appreciated as i am having
great problems at the moment!

Many thanks

Duncan
Nov 20 '05 #1
5 1295
Duncan,

My first thought would be to create a user control for each of the screens
you require. Then in the place where you want the controls to be displayed
you can have a panel control (set to fill the space to the right of the
splitter). Then instantiate the requested control and and place it inside
the panel, here is some sample code

Dim ctl as New MyControl
Me.pnlScreen.Controls.Clear()
Me.pnlScreen.Controls.Add(ctl)
ctl.Dock = DockStyle.Fill

Dan

"Duncan" <an*******@discussions.microsoft.com> wrote in message
news:0f****************************@phx.gbl...
Hi

I am using a splitter within a form with buttons on the
left hand side. I would like it so that when i click one
of these buttons it changes the UI on the right. I would
like to design all of my different screens at design time
and not run time if possible.

Very much like outlook where when you click on calendar
the calendar shows on the right, same with contact etc!

Any pointers would be greatly appreciated as i am having
great problems at the moment!

Many thanks

Duncan

Nov 20 '05 #2
As I say that worked well, One thing, how would you make
it so that when you load up a new control and go back to
the old one that it maintains it's last state!

In other words, Put a text box on first control and
wrote something in it.

Second control loads fine.

First control again loads up fine but have lost the text!

Any idea?

Duncan
-----Original Message-----
YOU BEAUTY........

Cheers Dan, you are a star, worked a treat!!

Duncan
-----Original Message-----
Duncan,

My first thought would be to create a user control for

each of the screens
you require. Then in the place where you want the

controls to be displayed
you can have a panel control (set to fill the space to

the right of the
splitter). Then instantiate the requested control and

and place it inside
the panel, here is some sample code

Dim ctl as New MyControl
Me.pnlScreen.Controls.Clear()
Me.pnlScreen.Controls.Add(ctl)
ctl.Dock = DockStyle.Fill

Dan

"Duncan" <an*******@discussions.microsoft.com> wrote in

message
news:0f****************************@phx.gbl...
Hi

I am using a splitter within a form with buttons on the left hand side. I would like it so that when i clickone of these buttons it changes the UI on the right. Iwould like to design all of my different screens at designtime and not run time if possible.

Very much like outlook where when you click on calendar the calendar shows on the right, same with contact etc!
Any pointers would be greatly appreciated as i amhaving great problems at the moment!

Many thanks

Duncan

.

.

Nov 20 '05 #3
"Duncan" <an*******@discussions.microsoft.com> schrieb

I am using a splitter within a form with buttons on the
left hand side. I would like it so that when i click one
of these buttons it changes the UI on the right. I would
like to design all of my different screens at design time
and not run time if possible.

Very much like outlook where when you click on calendar
the calendar shows on the right, same with contact etc!

Any pointers would be greatly appreciated as i am having
great problems at the moment!


I don't know whether I will be able to help you, but what is your question?
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #4
Duncan,

Where will the data be stored? If in the database why not comit the info to
the database and then requery it when the control is displayed? Or you
could look into serializing the control data and then de-serializing it
using the many methods in the Serialization assembly.

Have fun,
Dan

"Duncan" <an*******@discussions.microsoft.com> wrote in message
news:0f****************************@phx.gbl...
As I say that worked well, One thing, how would you make
it so that when you load up a new control and go back to
the old one that it maintains it's last state!

In other words, Put a text box on first control and
wrote something in it.

Second control loads fine.

First control again loads up fine but have lost the text!

Any idea?

Duncan
-----Original Message-----
YOU BEAUTY........

Cheers Dan, you are a star, worked a treat!!

Duncan
-----Original Message-----
Duncan,

My first thought would be to create a user control for

each of the screens
you require. Then in the place where you want the

controls to be displayed
you can have a panel control (set to fill the space to

the right of the
splitter). Then instantiate the requested control and

and place it inside
the panel, here is some sample code

Dim ctl as New MyControl
Me.pnlScreen.Controls.Clear()
Me.pnlScreen.Controls.Add(ctl)
ctl.Dock = DockStyle.Fill

Dan

"Duncan" <an*******@discussions.microsoft.com> wrote in

message
news:0f****************************@phx.gbl...
Hi

I am using a splitter within a form with buttons on the left hand side. I would like it so that when i click

one
of these buttons it changes the UI on the right. I

would
like to design all of my different screens at design

time
and not run time if possible.

Very much like outlook where when you click on calendar the calendar shows on the right, same with contact etc!
Any pointers would be greatly appreciated as i am

having
great problems at the moment!

Many thanks

Duncan
.

.

Nov 20 '05 #5
another thought although a little more memory intensive would be to store
the form/control (as they are requested) into a collection and then hide
them as a new form/control is requested. When the user request to show the
control hide the top most control and unhide the requested one.
"Duncan" <an*******@discussions.microsoft.com> wrote in message
news:0f****************************@phx.gbl...
As I say that worked well, One thing, how would you make
it so that when you load up a new control and go back to
the old one that it maintains it's last state!

In other words, Put a text box on first control and
wrote something in it.

Second control loads fine.

First control again loads up fine but have lost the text!

Any idea?

Duncan
-----Original Message-----
YOU BEAUTY........

Cheers Dan, you are a star, worked a treat!!

Duncan
-----Original Message-----
Duncan,

My first thought would be to create a user control for

each of the screens
you require. Then in the place where you want the

controls to be displayed
you can have a panel control (set to fill the space to

the right of the
splitter). Then instantiate the requested control and

and place it inside
the panel, here is some sample code

Dim ctl as New MyControl
Me.pnlScreen.Controls.Clear()
Me.pnlScreen.Controls.Add(ctl)
ctl.Dock = DockStyle.Fill

Dan

"Duncan" <an*******@discussions.microsoft.com> wrote in

message
news:0f****************************@phx.gbl...
Hi

I am using a splitter within a form with buttons on the left hand side. I would like it so that when i click

one
of these buttons it changes the UI on the right. I

would
like to design all of my different screens at design

time
and not run time if possible.

Very much like outlook where when you click on calendar the calendar shows on the right, same with contact etc!
Any pointers would be greatly appreciated as i am

having
great problems at the moment!

Many thanks

Duncan
.

.

Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: John | last post by:
Hi, I have a group of controls in a panel on the right-hand side of a splitter and a treeview on the left-hand side. The only configuration that I can find to make the right-hand side resize...
3
by: Andre Loker | last post by:
Hi! For my current application I'm looking for a four-way-(cross) splitter control (as often seen in 3D-editors). The .NET Splitter-class is (IIRC) only a two-way splitter. Does anyone know such...
1
by: Krish | last post by:
This is my first try with C# windows gui devlopment, is it correct to say that gui development in C# is windows forms. I would like to create a form with two sections, 2 datagrids, I would like...
3
by: MFRASER | last post by:
How do I move the splitter inside of code. if(TypeA) { this.pnlHXMLList.Visible = false; this.splTop.is.Top = 65; } else
4
by: BBM | last post by:
I'm trying to set up a form with two panels divided by a Splitter control. I can make the Splitter work in the situations described in the documentation (Listbox or TreeView on left w/Dock set to...
0
by: Atara | last post by:
I have a mainPanel filled with leftPanel, splitter, rightPanel. all is working fine. I want to add some pictureBox at the edges of the mainPanel (sort of creating a graphic border) 1. If I...
5
by: Sam | last post by:
Hi, I have a panel docked to the bottom of my form. This panel can be expanded vertically by clicking on a button. When the user click on the button again, the panel is then collapsed. The panel...
2
by: Istvan | last post by:
Hello ....Window.Forms.... Can somebody help me with Panels and Splitters ? I want to add three Panels to one Usercontrol , between them with two movable Splitter. First Row: 2...
2
by: eric dexter | last post by:
I am trying to steal this code from the wxpython demo but it appears that mb comes from nowhere and I am having errors because of it import wx ...
1
by: JDeats | last post by:
I have a simple WinForm with a WinForms splitter down the middle. I would like to make it so when the user clicks on a button inside the left portion of the screen (the panel to the splitters left)...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.