473,698 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form Minimize

I have an application with a main form (FormA). This form is borderless
because we have a lot of skin action going on. The form creates and
displays a second form (FormB) via formB.Show(). When we minimize FormA it
also minimizes FormB. Is there any way to prevent this? I have played
around with CreateParams with no luck.

TIA!
Brian

Mar 10 '06 #1
3 1834
This is the default behaviour when ownership is specified (as illustrated by
example below); so - do you really need the ownership, or can it be managed
else-wise?

static void Main(string[] args)
{
Form x = new Form();
x.Text = "Parent x";
Form y = new Form();
y.Text = "Child y";
y.Owner = x;
x.Show();
y.Show();
Form a = new Form();
a.Text = "Unrelated a";
Form b = new Form();
b.Text = "Unrelated b";
a.Show();
b.Show();
Form app = new Form();
app.Text = "Kill app";
Application.Run (app);
}

"Brian Patterson" <br***@redeyepo s.com> wrote in message
news:eI******** ******@tk2msftn gp13.phx.gbl...
I have an application with a main form (FormA). This form is borderless
because we have a lot of skin action going on. The form creates and
displays a second form (FormB) via formB.Show(). When we minimize FormA it
also minimizes FormB. Is there any way to prevent this? I have played
around with CreateParams with no luck.

TIA!
Brian

Mar 10 '06 #2
That is exactly my problem. I am not setting any owner information. If I
set a breakpoint in the constructor of my FormB - and view the Owner and
Parent properties - they are both null.

Ideas?

Brian Patterson
"Marc Gravell" <ma**@nonesuch. com> wrote in message
news:Os******** ******@tk2msftn gp13.phx.gbl...
This is the default behaviour when ownership is specified (as illustrated
by example below); so - do you really need the ownership, or can it be
managed else-wise?

static void Main(string[] args)
{
Form x = new Form();
x.Text = "Parent x";
Form y = new Form();
y.Text = "Child y";
y.Owner = x;
x.Show();
y.Show();
Form a = new Form();
a.Text = "Unrelated a";
Form b = new Form();
b.Text = "Unrelated b";
a.Show();
b.Show();
Form app = new Form();
app.Text = "Kill app";
Application.Run (app);
}

"Brian Patterson" <br***@redeyepo s.com> wrote in message
news:eI******** ******@tk2msftn gp13.phx.gbl...
I have an application with a main form (FormA). This form is borderless
because we have a lot of skin action going on. The form creates and
displays a second form (FormB) via formB.Show(). When we minimize FormA
it also minimizes FormB. Is there any way to prevent this? I have played
around with CreateParams with no luck.

TIA!
Brian


Mar 10 '06 #3
To be honest, there's not a lot to go on without some kind of illustrative
code here: for instance, what is the respecitve modality of the forms? Are
you using .Show, .ShowDialog, or Application.Run , etc? How the forms are
being created? disposed?

Marc
"Brian Patterson" <br***@redeyepo s.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
That is exactly my problem. I am not setting any owner information. If I
set a breakpoint in the constructor of my FormB - and view the Owner and
Parent properties - they are both null.

Ideas?

Brian Patterson
"Marc Gravell" <ma**@nonesuch. com> wrote in message
news:Os******** ******@tk2msftn gp13.phx.gbl...
This is the default behaviour when ownership is specified (as illustrated
by example below); so - do you really need the ownership, or can it be
managed else-wise?

static void Main(string[] args)
{
Form x = new Form();
x.Text = "Parent x";
Form y = new Form();
y.Text = "Child y";
y.Owner = x;
x.Show();
y.Show();
Form a = new Form();
a.Text = "Unrelated a";
Form b = new Form();
b.Text = "Unrelated b";
a.Show();
b.Show();
Form app = new Form();
app.Text = "Kill app";
Application.Run (app);
}

"Brian Patterson" <br***@redeyepo s.com> wrote in message
news:eI******** ******@tk2msftn gp13.phx.gbl...
I have an application with a main form (FormA). This form is borderless
because we have a lot of skin action going on. The form creates and
displays a second form (FormB) via formB.Show(). When we minimize FormA
it also minimizes FormB. Is there any way to prevent this? I have
played around with CreateParams with no luck.

TIA!
Brian



Mar 13 '06 #4

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

Similar topics

1
4572
by: VMI | last post by:
How can I add a small "Please wait..." form to a child form so that when I minimize the child form, the "Please Wait..." form will also disappear? This form will be displayed when the child form is running a lengthy process or when the child form is displayed. Once the child form finishes the process, or it's minimized, the "wait" form will also disappear. Thanks.
7
6888
by: Danielb | last post by:
I want my application to run most of the time as just an notify icon visible in the system tray, with some dialogs windows that open if the user selects an option from the context menu on the tray icon. I've had a look at the example on code project that creates an application that runs in the system tray: http://www.codeproject.com/csharp/desktop_mail_checker.asp So I copied how the above article sets up the main form: the form's...
7
4032
by: Bhargavan | last post by:
Hey Group, When I minimize and then maximize a form (in windows application), I see a significant drop in memory usuage in the task manager. I tried to do the same thing programatically during the form load event, but I don't see any significant drop in memory usage. Anybody know why? Thanks, Bhargavan
1
2897
by: Sumit | last post by:
Hi all, I have an MDI form in which i open some other forms. I dont want the Control Box (having minimize, restore/maximize and close button) Even though I have set the controlbox property of my child forms as false & the respective minimize & maximize box property to false, i get the control box with restore button as enabled (when i dock my child form in the MDI form with dockstyle as fill) which restores the
19
24741
by: Oliver Neumann | last post by:
Hello, im new to c# and i got an app with a notifyicon. Now i want to start the app only with the notifyIcon, so that the Main-Form doesnt show up. The form itself is used at the entrance point of the app: Application.Run(new MainFrame()); Now i tried to use this to hide the Form and show up the trayBarIcon with this in the constructor of the form.
4
4089
by: steve | last post by:
hi all, i was wondering how is it possible to add an extra box ( i think they are called boxes: upper right corner ...) in a form that will minimize it in the system tray? You know some applications have a 4th one (apart from the square , bar and X ) which contains a dot and once u click it minimizes the application to the tray. TIA
3
5429
by: Don | last post by:
If you have a form that calls another form via the following code: Dim myForm as Form2 myForm = New Form2 myForm.Owner = Me MyForm.ShowDialog and you minimize the second form, the first form remains visible (albeit completely disabled).
9
12842
by: mohit.akl | last post by:
Hey guys & gals I am havng trouble modifying the control box. I want to make the maximise button invisible and have minimisise button instead of it. Like this _ X (not like _ o X ) How to do this... and eventually i want to modify the control box in the form of ? _ X ... I.e. adding a new button to control box. I need to detect the click events.
11
4285
by: M O J O | last post by:
Hi, I'm creating my own Sidebar (like in Vista). In my XP's quick menu, I have a button called "Show Desktop". When I click it all forms are minimized. Since I don't want my SideBar to be minimized, how do I prevent this? Thanks!
8
4182
by: News Microsoft | last post by:
Hi there. I would like to know how can I test if a Form exists. This is the situation: I have a single Form in my application. My objective is, when I minimize the form, it will disapear and a TrayIcon apears in the task bar. When I click that icon, the form apears again. The problem is that when I click the icon more than once, the form apears serveral times (several instances).
0
8683
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, 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...
0
8609
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,...
0
9031
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 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...
1
8901
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7739
agi2029
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...
1
6528
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4371
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
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
3
2007
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 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...

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.