473,387 Members | 1,569 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,387 software developers and data experts.

Forms and Panels

I have got two forms open in one panel and i want to bring the one at the
back to the front. I want to do this by using a button located in another
panel but i can't seem to work out how.
Also when i close a form i want it to remove the corresponding button in the
other panel and as much as i have tried i can't figure that out either.

Any help?
Nov 21 '05 #1
4 949
R

Normally this is just hide the panel or the same commands visible is true
and false

Cor
Nov 21 '05 #2
"RBirney" <RB*****@discussions.microsoft.com> schrieb:
I have got two forms open in one panel and i want to bring the one at the
back to the front. I want to do this by using a button located in another
panel but i can't seem to work out how.
Also when i close a form i want it to remove the corresponding button in
the
other panel and as much as i have tried i can't figure that out either.


You can call the form's 'Activate' method to activate it.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3
I may just be thick but i still can't get it to do it, so i will explain the
situation a bit better.
When i load a form it loads in panel2 and also creates a button in panel1,
it does this every time a form is loaded. When a button in panel1 is pressed
i want it to bring the related form to the front in panel2. At the end when
i close a form down in panel2 i want it to also remove the button related to
it in panel1.

I just can't work out the code for it.
Nov 21 '05 #4
What do you mean "form"? You mean you try putting winform in panel?

"RBirney" wrote:
I may just be thick but i still can't get it to do it, so i will explain the
situation a bit better.
When i load a form it loads in panel2 and also creates a button in panel1,
it does this every time a form is loaded. When a button in panel1 is pressed
i want it to bring the related form to the front in panel2. At the end when
i close a form down in panel2 i want it to also remove the button related to
it in panel1.

I just can't work out the code for it.

Nov 21 '05 #5

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

Similar topics

1
by: Andrei Zinca | last post by:
When I resize my window, the sizing grip from the status bar doesn't dissapear. The funny thing is that if i create a graphics object and dispose it before the creation of the status bar everything...
4
by: Josh Handel | last post by:
I am working on a fairly complex GUI and I have a problem.. I have several forms that work togeather to make up a Single UI. Here is my problem.. How do I make it so that when any one form is...
6
by: Patrick Coghlan | last post by:
I want to create about 4 forms with the same dimensions and background colours, similar to the forms one has to traverse when installing various software packages. I'm using Visual Studio and...
1
by: Andy Bates | last post by:
Hi - I'm writing a C# windows form application and have hit a hurdle. The application has several panels that need to be displayed at various times depending on what the user is doing. They all...
16
by: Naveen Mukkelli | last post by:
Hi, How can we run the app on full-screen. I mean all the controls such as, text boxes, data grids on the form would also be resized or re-located automatically when we press maximize button...
6
by: Manny Chohan | last post by:
I am using forms authetication in the web config. i can validate a user against a database and click on images which makes hidden panels visible.However when i click on the link inside a panel...
3
by: Saket Mundra | last post by:
I have multiple web forms in my application. The user after logging on is directed to form1 where he enters information desired. Once finished he is directed to form2 and the same procedure goes on...
3
by: OpticTygre | last post by:
Hi folks. I've created an MDI form. In this form there are several panels, and several splitters. There is a vertical panel docked on the left, and 2 horizontal panels docked on the top and...
2
by: RBirney | last post by:
I am probably barking up the wrong tree completely but can you load forms in panels. If not what can i use to get that kind of effect.
10
by: Tom | last post by:
I'd like to create a new VB 2005 app that looks like the VS 2005 IDE - in other words, an app that has multiple forms, but instead of displaying them seperately or in an MDI main from, I'd rather...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.