-
February 9th, 2010, 11:26 AM
#1
[RESOLVED] Modal and Modaless Problem!
Hello, I have a window which is to be shown if I click a Button...
Code:
SelectTest sTest = new SelectTest(); //modal
sTest.ShowDialog();
If I use the above code new window shows up fine and I cannot use the earlier form. But in the task bar there are two icons...what I want is only one icon in the task bar without closing the first window.
I have done same in the window form where it works fine....When I minimize the program and select the only icon in the task bar it takes me to the form where I am currently on(not on the 1st form) but the icon in the taskbar is of 1st form( because I have not changed icon for second window)...I am totally buzzed why it is not working in here.....
Please Help!
-
February 9th, 2010, 05:06 PM
#2
Re: Modal and Modaless Problem!
Check out the Window class properties in msdn.
http://msdn.microsoft.com/en-us/libr...ws.window.aspx
There is a property that you can set that specifies whether to show the window in the task bar. You'll want to set this property to false.
While you are in there looking for the task bar related property, take a look at some of the other properties and read their descriptions. It'll be good to get familar with what the Window class offers.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|