Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modeless Dialog Active when Modal Dialog Displayed

Status
Not open for further replies.

Tim8w

Programmer
Apr 8, 2003
44
US
Is there a way to launch a Modeless Dialog that stays active even when a Modal Dialog is launched? Can I put the Modeless Dialog in a seperate Thread or something like that?
 
I don't think that is possible. According to MSDN Form .Modal Property, "When a form is displayed modally, no input (keyboard or mouse click) can occur except to objects on the modal form. The program must hide or close a modal form (usually in response to some user action) before input to another form can occur." Based on that statement, you will need to find another way to achieve your task.

--------------------------------------------------
Stubbornness is a virtue -- if you are right. --Chuck Noll
--------------------------------------------------
 
ousoonerjoe,
Not strictly true. I want the behaviour to be similar to the old-style HelpFiles. They remain accesible even when Modal forms are running...
 
But weren't those an "Outside Process" that was called from the application immediately before the modal box was loaded?

--------------------------------------------------
Stubbornness is a virtue -- if you are right. --Chuck Noll
--------------------------------------------------
 
ousoonerjoe,
Which is why I thought it might be able to be done with a thread or something like that...
 
You might be able to do it with an ActiveX Dll/Exe. Something that runs asynchronously to your application.

--------------------------------------------------
Stubbornness is a virtue -- if you are right. --Chuck Noll
--------------------------------------------------
 
Never could get it to respond correctly so I just ended up compiling the Form in question and calling it as an "exe" using the Shell command:

Code:
Shell(My.Application.Info.DirectoryPath & "/MyForm.exe", AppWinStyle.NormalFocus, False)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top