?
Solved

Diplay a modal FormView by DLL for VB 4

Posted on 1998-04-09
2
Medium Priority
?
302 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

752 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