|
by: Viper |
last post by:
.... say, like MS Word opens another instance of himself when you open
another document.
If you close the first 'Word', the second document remains alive. I can't
figure out how to do the same with
mySecondForm.Show();
myFirstForm.Close(); // also closes mySecondForm too
Thanks.
A lot.
|
by: Ashish |
last post by:
It might be basics for many but I never gave attention on this before.
Steps:
Add 2 forms (Form1/Form2) in application.
Create a object in Form1 for Form2.
Form2 f2 = new Form2(); //line 1
//f2.Show(); // line 2
f2.Close(); // line 3
|
by: Alpha |
last post by:
I have a Window based application that shows up still running in the task
manager when I close it. It reaches the "this.close" statement and then it
stops at the "}" at the section of the following code after the
"Application.Run(new VMSMain());":
static void Main()
{
Application.Run(new VMSMain());
}
|
by: Alice |
last post by:
Hi,
In my program, the user can navigate to many different
forms. When they go to the next form, I want the form they
have left to close.
However, the forms aren't closing. Can anyone tell me what
I'm doing wrong? Here is a sample snippet of code where
the user can return to the main form while simultaneously
closing the previous form.
|
by: Tom |
last post by:
Is there ANY easy way to close a MDI Child form in the middle of it's load?
For instance, during the Load event I find a need to close the form (for
whatever reason - maybe the user isn't ready for it yet, or it displays
another form and they hit cancel). In any event, I need to be able to cause
that MDI Child form to close. Just sticking Me.Close in there won't work,
generates an error (note however, that on a NON-MDI form this seems to...
|
|
by: Adam Honek |
last post by:
Why oh why has MS changed so much in VB.NET
I can't even figure out how to show/close a form as formname.show() doesnt
work and
the following doesn't either:
formname.activeform.close() (or show) doesn't seem to work but will compile.
Thanks,
Adam H.
|
by: Karan |
last post by:
I am calling finalize when form2 loads and deactivates form1 which closes
form1. However, same thing is not happening in form2 because finalize is
already called. Does anybody has solution to it. This code works well for
splash screen. I searched alot on net for codes but they don't work. for
example-
(1)
Public Sub CloseForm(formType As System.Type)
For Each oForm as System.Windows.Forms.Form in me.MdiParent.MdiChildren
If...
|
by: Jason Huang |
last post by:
Hi,
In my C# windows form project, how do I in a formA open another formB, and
close formA when formB is opened?
Thanks for help.
Jason
|
by: Ronald S. Cook |
last post by:
I know how to close and open a form...
Well.. but can you tell me how can I do this.....
Example...
There are 2 forms...named formA and formB and each of them have their own
button named btnA and btnB
The application starts with formA
|
by: rajashekar4dotnet |
last post by:
how to open one form from the other form and close the first form if
there are only two forms in windows application(VB.net)
i had tried this method
dim f as new form2
form2.show( )
me.close( )
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
|
|
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|