If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

[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!

Re: Modal and Modaless Problem!

There is a property that you can set that specifies whether to show the window in the taskbar. 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.