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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

make active more than one form

Status
Not open for further replies.

tougo

Technical User
Sep 9, 2002
27
GB
the subject tells it all
i want to be able to access multiple form created by my main form1 without closing the one and opening the other one..
how can this be achieved?

thank you in advance
 
Are you talking about creating a multi-window form (MDI [Multi Document Interface]). This is where the main form has children forms. You can open of close any child windows but when you close the parent form, everything closes.

The parent's FormStyle property should be set to fsMDIForm. The other forms should be child forms so their FormStyle property should be set to fsMDIChild.
James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
i know about MDI...and i do not want that...
what i want is from an SDI application to open from the menu to different forms and to be able to access the both without closing the one or the other
 
Just show() the form from the main form? Showmodal() makes it so u can't use any other forms till u close it. but show() should still allow you to access other forms.

Perhaps try changing the border style to fixed toolbar or sizable toolbar? [Thanks in advance|Hope I helped you]
Exodus300
World-Wide Alliance of Evil and Twisted People
[red]"Experimentation by Example is the best learning tool" - Exodus300[/red]
Code:
if (pop_tarts == 0)
{
   tantrum = 1;
}
[pc3]
 
thank you very much ...i was using show modal (iam not at all c++ expert)so i feel kinda stupid for this :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top