Solved

Diplay a modal FormView by DLL for VB 4

Posted on 1998-04-09
2
286 Views
Last Modified: 2013-11-20
I am writting a DLL for VB4 with MFC 4.2, to display a form like window for VB. I use MFC full server as the base and run into poblem of the window display is always under the VB form that starts it. I got around by using SetForegroundWindow(), then I am not able to make it Modal (like a Dialog box), I tried RunModalLoop, it works, but when it ends it throws an error to VB, the other option I have was BeginModalState(), but there is very little example of how to use it, and the form disable itself. Any body know how to make the form modal?
0
Comment
Question by:hshliang
2 Comments
 
LVL 4

Expert Comment

by:piano_boxer
Comment Utility
What kind of error do you get?
0
 

Accepted Solution

by:
dr_funfrock earned 100 total points
Comment Utility
hshliang,

   The best answer is create an activex control. When the contorl is initiated create a dialog box to display your 'form' information and controls.

Doc
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 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

7 Experts available now in Live!

Get 1:1 Help Now