Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Connect forms in MDI

Status
Not open for further replies.

Vasavi2003

Programmer
Joined
Aug 14, 2003
Messages
3
Location
IN
hello world,
I am using MDI interface and has different forms with different CRecordSet classes attached to tables(MS_SQL) with ODBC.
But problem is how to open other from from one form.
on clicking the button. i.e
the forms have IDs as IDC_FORM1_FORM and so on..
i have a form1 with buttons subform1,subform2.Where I have to reach the subform1 on clicking the button subform1 and so..

Actually I have SDI and used command
WinExec("form1.exe",SW_SHOW);
But it seems it is not the right one as the previous mainform is left open even the subform1 opens....

So please Suggest me how to use MDI to connect different forms and how to close the form called by WinExec command...


Any help appreciated in advance...

WITH REGARDS,
VASAVI.

 
>>MDI to connect different forms and how to
>>close the form called by WinExec
It is impossible. MDI has nothing to do with WinExec. Try to use some EnumWindows* like functions.

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top