Hi,
In ASP.Net C# Windows Form, we have 2 forms, Form1 and Form2.
In Form1, I have "Form2 MyForm2=new Form2()", then I "MyForm2.Show() ",
In Form2, I have "Form1 MyForm1=new Form1()", then I "MyForm1.Show() ",
When I F5, the Form1 is the Main Form.
What I am asking is the MyForm1 equivalent to the origianl Form1 in screen?
Thanks for help.
Jason 1 1287
"Jason Huang" <Ja************ @hotmail.com> wrote in message
news:#x******** ******@TK2MSFTN GP14.phx.gbl... Hi,
In ASP.Net C# Windows Form, we have 2 forms, Form1 and Form2. In Form1, I have "Form2 MyForm2=new Form2()", then I "MyForm2.Show() ", In Form2, I have "Form1 MyForm1=new Form1()", then I "MyForm1.Show() ",
Form MyForm = new Form1();
MyForm.Show(); This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Andrew |
last post by:
Hey all,
Working on revamping our Intranet here and making use of the LDPA, Active
Directory, Directory Services, etc. that .Net provides. I am still fairly
new on this subject, so the problem I have run into I am not sure how to
fix, and really not sure what is causing it.
Here's what is going on (test server - Windows 2003 Server):
I...
|
by: SamSpade |
last post by:
I have a MDI application
Each child window contains one control docked fill (not all forms have the
same control).
Sometimes, I'm not sure what the criterion is for making it happen, if I
click on a control it will accept text but the form's title shows the form
is not active.
I've checked, the active form is the one with a...
|
by: Kooki |
last post by:
Hi,
I am developing a small programme to add ACTIVE DIRECTORY users to another
server. everything works fine .. I get the users from AD using LDAP but while
adding users I need to get the user in the form of Domain\UserName. I get the
domain name of our server but I face another problem which is
our server name is "Preston" which I get it...
|
by: jpr |
last post by:
Hello, I have a problem with my database and need some help.
My database has a main menu named MENU which allows to access all the
different forms of the program I am trying to develop. One of these
forms is named MASTER and has its source to the main table of my db
also named MASTER. To open the form and add a new recorset I simple
press...
|
by: John Brown |
last post by:
Hi there,
Does anyone know how to (generically) determine the currently active form for an application using a "static" function (so I can call it from anywhere). There is no offiical way I've been able to find so I've written the following for starters:
public static Form GetActiveForm()
{
// Returns null for an MDI app
Form activeForm =...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |