Click here to Skip to main content
12,248,681 members (50,905 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB VB.NET
Hi,

I have an application in which an input box is supposed to come up on the screen when i press a certain button. But the problem that i am facing is that the input box always comes below the application.
Is there any way to keep the input box always on top of all the applications ?

Thanks
Posted 1-Sep-12 22:12pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Taken this is Windows.Forms, if the dialog goes under your application, you should define the owner. See: Form.ShowDialog [^]

You can also set the TopMost[^] property to force the dialog on the highest level in Z-order.
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

InputBox always comes on topmost position for VB.NET.
TO check it out, create a new form & show InputBox on form load, you can see until you close the InputBox you cannot work on that form, from which InputBox is shown
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

This works but is probably not ideal

me.hide()
text=inputbox("enter the password ..",,,,)
me.show()
me.update()
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160426.1 | Last Updated 27 Sep 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100