Vasavi2003
Programmer
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.
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.