Problem in showing the Show dialog window on front when clicking with Mouse

Pankaj Garg

Member
Joined
Mar 25, 2009
Messages
6
Programming Experience
1-3
Hi,

My Front end is VB.net 2008
I have a form. In this form, I have a menu control, this menu control has four buttons.

On clicking the first three buttons, open the window with Show() event.
and the fourth button open the screen with ShowDialog()

Now, One by one I am clicking the button , so finally i have now four windows of this application.(Three with Show() and one with ShowDialog())
Right?

Now I am minimizing all the windows with the help of Window + D Button.

After this, If I use the keyboard(Alt+ Tab) keys. This is opening the showDialog window on top because , Show dialog's TopMost = True.


Now I come back to my problem. That's why I cannot use the show/Showdialog overloaded menthod to pass the Me/form-id
Again, I use the keyboard(Alt+ Tab) keys, to minimized all windows. In the taskbar and Startmenu properties , I have selected the Group Similar Taskbar buttons

This resulted in the heap of my application windows, one on the other.
I hope you have understood this point. By doing this , same kind of windows lie one on the other.

Now i click on one of my application window , and If I click the window other then the Show Dialog opened Window, this is not bringing the show dialog window to topMost.

Note:- There is no parent child window requirement. That's why I can't use the Show/Show Dialog overloaded method to pass the Me/Form-id
This is the problem.
Please let me know if you still face any problem in understanding the question.
 
I'm not sure exactly what you are asking, but have you tried setting ShowInTaskBar to false?
 
Hi,

I want to bring the show dialog to front of my screen.

Please tell me the point , where you find the problem in understanding the question. So that I can clarify it.

Thanks .
 
In my experience, "show desktop"/Windows+D tends to muck up the window order with dialogs in all programs - I think it is more of an O/S bug than something to worry about when coding.
 
In my experience, "show desktop"/Windows+D tends to muck up the window order with dialogs in all programs - I think it is more of an O/S bug than something to worry about when coding.
With some tests of this I agree, remember to set ShowInTaskBar to False for tool windows and dialog windows. For multi-SDI setup such as this it is also possible to use multiple UI threads, one for each "document" window.
 
Hi,

Thanks a lot . As suggested by you all, Problem is resolve dby setting the following form properties
ShowInTaskBar=false
TopMost = True
 
How to bring the openfiledialog to front in vb.net 2008

Hi,

My Front end is VB.net 2008
How should I use the showIntaskBar= false and TopMost = true for OpenFileDialogBox?

I am asking this question because When the openfiledialogbox is opened and the user has minimized all windows, in this case, user can not perform any action in other windows, because he is unaware of this opened ShowDialog window

Please Let me know if you face any problem in understanding the question.
 
Last edited by a moderator:
Hi,

Yes, But I am explaining you again.
Suppose In a form , I have a button and I click on it , this opens a window.
This opened windows again has a button, on clicking this button , opens a open file dialog (To browse the files).
Now I minimize all the windows with the help of Window + D button. Right?
In the task bar , on clicking the properties , I have an option, Group similar taskbar buttons.Right?
Now there are 3-4 windows looking in a heap.Right?
I click on the first window (form), Which I discussed in the very first point.
this opens it, but I cannot perform any activity in this form. Because an open file dialog box is lying opened. So sometimes user gets confused , that why i am unable to perform any activity.
For a showdialog forms , I am using the following properties
ShowInTakBar = False
TopMost = True

But these properties does seems to be present in Open file dialog box.

This is the problem.
Please let me know if you still face any problem in understanding the question.
 
Hi,

Yes, But I am explaining you again.
I don't recall ever speaking to you before, and given that the thread had only 1 post at the time that I replied, I'm not sure what this means


This is the problem.
Please let me know if you still face any problem in understanding the question.


Did you open the second form as a dialog of the first?
 
Yes, Problem is ,User wants that opened dialogbox at top when he is clicking on any of the opened windows forms.How we can implement this,please suggest.
 
Back
Top