473,508 Members | 2,351 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to switch between Forms in c# Windows Desktop Programming

2 New Member
Hallo All,

I just wondered how can I switch form form example from From1 to From2 ?
In VB there My.Forms.Form2.Show(), but I can't find anything that similar to this.
Thanks for any info on this
Nov 7 '07 #1
4 15997
r035198x
13,262 MVP
Hallo All,

I just wondered how can I switch form form example from From1 to From2 ?
In VB there My.Forms.Form2.Show(), but I can't find anything that similar to this.
Thanks for any info on this
Have you looked at the specifications of the Form class to see what methods are available?
P.S Always refuse to write any code if you don't have the specs with you.
Nov 7 '07 #2
ronaldwisnuhariyanto
2 New Member
Have you looked at the specifications of the Form class to see what methods are available?
P.S Always refuse to write any code if you don't have the specs with you.
I've searched all the property and the methods, in form class but there is nothing I can use tho swap between the Forms.
I think I should create 1 Main Form, create other Forms in that, and do all the things with the Main Form. It not as convenient as in VB but it works.
I think VB is still the leader for desktop programming.

Thanks by the way !
Nov 8 '07 #3
Shashi Sadasivan
1,435 Recognized Expert Top Contributor
Sorry for my ignorance towards VB .Net.
However the debate on which programming language is better should be left to the other forums, or when you have nothing else to do and have to pass your time.

Anyways.....
I searched online and found that My is basically a wrapper to wrap certain methods in some other namespaces together and eeasier access.

To get a list of all open forms use the System.Windows.Forms.OpenForms
which will return a list of forms opened.

you will have to then check the form you want to focus
Nov 8 '07 #4
r035198x
13,262 MVP
I've searched all the property and the methods, in form class but there is nothing I can use tho swap between the Forms.
I think I should create 1 Main Form, create other Forms in that, and do all the things with the Main Form. It not as convenient as in VB but it works.
I think VB is still the leader for desktop programming.

Thanks by the way !
Read your post again. The impression I got from that is that you are looking for a Show method in C#.
Anyway if your problem is on how to switch between different forms, the read this thread.
Nov 8 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
981
by: serge calderara | last post by:
Dear all, I need to build an application which is able to switch rapidely windows desktop For that I was planing to use HOt keys but on different Desktop different environement and application...
2
2808
by: Rocky A | last post by:
This is my first posting so please be gentle I've been writing access programs for only about a year and may have bit off more than I can chew but....... I've written an operations program for...
3
2839
by: Robert W. | last post by:
I'm embarking on a project that will have both a desktop application and a Pocket PC application. It seems logical to have as much code as possible sitting in a shared project, which would be...
15
2029
by: Joshua Kendall | last post by:
I have a script in which it keeps opening the same form instead of only one instance. I also need help with a form that has a password. Where do I put the actual password? can I use a database for...
8
7879
by: J.S. | last post by:
I was under the impression that frames could be used in Windows forms in earlier version of VB. However, in VB 2005 Express I don't see any such tool/control. Is SplitContainer used for this...
6
2554
by: dbuchanan | last post by:
I have a Windows Forms application that accesses SQL Server 2k from a small local network. The application has been used for weeks on other systmes but a new install on a new machine retruns...
22
6223
by: Jordan S. | last post by:
SQL Server will be used as the back-end database to a non trivial client application. In question is the choice of client application: I need to be able to speak intelligently about when one...
4
4654
by: Jeremy S. | last post by:
We're in the process of writing a new Windows Forms app and the desktop support folks want for it to be run from a network share. I know it's possible (i.e., just have the framework on the clients...
28
1881
by: RMZ | last post by:
This may come across as a trolling message, it's not ment to be. It's intended to share a recent experience I had with Mac OS in an entertaining way. I'm doing this because I love technology in...
0
7225
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
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7324
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,...
1
7042
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5052
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3181
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1556
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.