Solved

Modal Dialog with Modeless 'Floating' Child Forms

Posted on 1998-11-24
7
366 Views
Last Modified: 2010-05-18
I have to create a modal application form.  I would like this modal form to have 'floating' toolpads, each having titlebars that are the same color as the active modal main application form.  I know how to reparent these forms so that they stay on top of main app, and are minimized/destroyed when the main app is minimized destroyed.

How do I allow input to be received from these modeless toolpads without changing the modal nature of the main application window (this is important as this main applcation is part of an Active X DLL, which has to halt execution of any client applications that call it).

Finally, how do I set the grey titlebar colors of the modeless forms to match that of the modal main app form?

I think the answers to these questions relate to windows API calls, which I know very little about.  Code examples are greatly appreciated.

Thanks very much.
0
Comment
Question by:danG
  • 3
  • 2
  • 2
7 Comments
 
LVL 4

Expert Comment

by:idcanada
Comment Utility

Hi,
I had a simular problem and resolved it by setting the focus to the form on every
loss of focus event inside the form.

So, on the form.deactivate and lostfocus I give the form focus.
Me.SetFocus.

You could also use a timer for this...
but I prefer the other way.

Good Luck
0
 

Author Comment

by:danG
Comment Utility
Thanks for your answer, I can see its usefulness, but I would like to open the question up for the possibility of receiving an API related solution.
0
 

Author Comment

by:danG
Comment Utility
Adjusted points to 205
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 4

Expert Comment

by:idcanada
Comment Utility

People never want the fastest answer,
just the more complicated it looks... the better it is.

You could use the SetFocus API call, however,
Place a timer and test which preforms better. (Speed)

The simple setfocus of VB does the job better.

0
 
LVL 13

Expert Comment

by:Mirkwood
Comment Utility
Give them the toolbox window style. In vb, it's a border setting I think
0
 
LVL 13

Expert Comment

by:Mirkwood
Comment Utility
0
 
LVL 13

Accepted Solution

by:
Mirkwood earned 200 total points
Comment Utility
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now