473,396 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Form hiding in background

Hi,

I am working on a project in VB.net 2008. I have a problem arising while opening a form as modal from a modeless form. I have attached a project to demonstrate the problem. This demonstration contains three forms with following characteristics.

• “Form1” is main form of the demo application and
• “Form2” is opened as modeless form through “Form1”. It is hidden (using me.hide() method) instead of closing and Cancel the closing in closing event of “Form2”.
• “Form3” is opened as modal form through “Form2”.

Now problem is when I hide “Form2” after closing “Form3”, “Form1” also hides in the background (when some other windows are also open i.e. Windows explorer). I am unable to find a reason for this behavior. This should looks like a common problem and must be encountered by someone else but I am unable to find it on internet. So please help as I need reason and solution for this problem.

Regards,

Hassan
Attached Files
File Type: zip DemoApp.zip (46.6 KB, 34 views)
Dec 3 '10 #1
0 881

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

Similar topics

6
by: Dan V. | last post by:
Why is the banner background image not always displayed on my web site (www.officeactivate.com) in the banner div in IE 6 but does fine in FireFox? You may have to move the mouse around on the...
0
by: Deborah V. Gardner | last post by:
I am using Access 2000 and have a form with an image background (the clouds that came with Office). I also have an OnChange event on the Item control. Me.txtLength = 55 - (Len(Me.Item.Text)) ...
5
by: oran johnson | last post by:
If Form.TopMost = true, will the form appear even if the associated application is not the active or foreground application? Thanks.
0
by: Anagnos | last post by:
In my program when I change a forms background image in the code everything slows down. I think that this is due to the fact that I am using transparency and the form has to load the transparency...
1
by: genojoe | last post by:
In Microsoft Access, I use Application.Echo False ......code that causes form to flash Application.Echo True to hide intermediate actions while a form is visible. I cannot find an...
0
by: =?Utf-8?B?UmljaA==?= | last post by:
I have a web browser control (VB2005) in a panel on a form. I use it only to open Reports from Reporting Services (sql Server 2000) or PDFs. So I am not using the web browser control for browsing...
13
by: wideasleep | last post by:
Hello Everyone, I have a form that has a radio button called "damage" My employer wants the background of the form to turn a different color when this radio button is selected. Does anyone have...
0
by: vsrprasad16 | last post by:
Hi All, I am running a background thread and this thread will process a method and then based on result it will load a form with some controls. after work, i need to close the form and also kill the...
7
by: Apolakkiatis | last post by:
Sorry that im asking a lot of questions, i know, but i have a lot of things im curious about... Well to begin, how do i make sure that the file that i am printing to keeps the original text that...
9
by: mulchgirl | last post by:
I have my fields set up so that the background is white, but for some reason my combo boxes are white when the form is first opened, but as soon as you enter info into into them and tab away, the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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...

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.