Solved

Diplay a modal FormView by DLL for VB 4

Posted on 1998-04-09
2
290 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Question regarding Copy/Paste 16 91
List out all word 7 255
changeXy challenge 13 67
Annoying "thing" blocks my view 4 81
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

919 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

19 Experts available now in Live!

Get 1:1 Help Now