473,498 Members | 1,725 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WinForm Loses App Background

I've got a Windows Forms application. There is a form that may be shown by
clicking a command button on either of 2 other forms. I use ShowDialog in
all cases to get modal behavior. When the app starts up, I show a main form
that is maximized and serves as the background for all three other forms.

In the first case, everything works as expected when clicking the command
button. The initial form closes, the second form is shown and when I close
the 2nd form, the initial is shown again.

In the second case, when the initial form closes, the entire background of
the app disappears. The second form shows but the background is my VS IDE.
When I close the second form, the initial shows again and reverts to my main
app background.

I want explicit control over when each form is shown so I load the forms
into a stack. The command buttons actually call a method that displays the
top form on the stack using ShowDialog and when a form is closed it is popped
off the stack.

Any thoughts on why this could be occurring?
Jan 7 '08 #1
0 1024

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

Similar topics

1
433
by: Brian Hu | last post by:
Hi I am new to vb.net and trying to build a VB.net winform application. I really like the new look of buttons, readio buttons etc. on my WinXP box. But only thing is I cannot make it consistent...
0
1627
by: sneal | last post by:
A little background: We have an Access 2002 based user interface to our SQL Server 2000 database. The interface is a tabbed form with two of the tabs containing a subform. Data is pulled from the...
5
3198
by: Brian Hu | last post by:
Hi I am new to vb.net and trying to build a VB.net winform application. I really like the new look of buttons, readio buttons etc. on my WinXP box. But only thing is I cannot make it consistent...
0
1106
by: Serdge Kooleman | last post by:
Winform (DataGrid) when i'm editing the text in the curent cell, i need to change color/font/background in it. thank you
0
1524
by: news.sunsite.dk | last post by:
Hi all, I'm working on a windows application, thats essentially a drawing program. I'm not the original developer on it and have a few problems with the MetaDraw component. Upon creation of a...
0
1253
by: Jesper Rou | last post by:
Hi all, I'm working on a windows application, thats essentially a drawing program. I'm not the original developer on it and have a few problems with the MetaDraw component. Upon creation of a...
4
8992
by: Hitchkas | last post by:
I have a very beginner and fundamental question regarding porting and running C# programs in Linux. As a background I am a total idiot when it comes to Linux but somehow managed to install Ubuntu...
6
9906
by: Akhilbh | last post by:
Hi, I have a application which does extensive background processing, I want to show the user a Progress bar till the time processing takes place. I made use of the Progressbar control in VS...
4
6800
by: ari | last post by:
I have recently upgraded from vb.net 2002 to 2005, and have encountered the following problem. I have a listview with say a dozen items. Following a user action I programmatically update the...
0
7165
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
7205
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...
1
6887
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...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5462
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,...
0
4590
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
3093
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...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.