Solved

Diplay a modal FormView by DLL for VB 4

Posted on 1998-04-09
2
300 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Expert Comment

by:piano_boxer
ID: 1317590
What kind of error do you get?
0
 

Accepted Solution

by:
dr_funfrock earned 100 total points
ID: 1317591
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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 is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

726 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