Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / December 2004

Tip: Looking for answers? Try searching our database.

MDI Forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MVB - 03 Dec 2004 14:59 GMT
Hi
I am working on mdi forms.
I have a couple of child forms.
when I make the FormBorderStyle property of a child form as fixed dialog,the
child form becomes movable on the parent form.Is there a way by which I will
be able to make the child form fixed as well have the user be able to close
the child form if they want to?Cause if I make the FormBorderStyle property
as none,the child form becomes fixed on the parent form,but then the user is
not able to close the form.
Can anyone please provide me a solution for this??

Thanks and Regards
Morten Wennevik - 03 Dec 2004 15:41 GMT
Hi,

You can always add a button in the upper right corner of the child that  
looks like the closing X and close the child in the click event.

Signature

Happy Coding!
Morten Wennevik [C# MVP]

MVB - 03 Dec 2004 17:12 GMT
Thanks.Thats a good Idea

Regards

> Hi,
>
> You can always add a button in the upper right corner of the child that  
> looks like the closing X and close the child in the click event.
rajamanickam - 03 Dec 2004 15:43 GMT
Hi,
If you really thinking about the movable and close the of a form... then you
can use
Form_move event.

Just put the following code in side the Form_Move event..

    this.Top= ((Screen.PrimaryScreen.WorkingArea.Height- this.Height)/2);
    this.Left=((Screen.PrimaryScreen.WorkingArea.Width-this.Width)/2);

even this is not correct solution ... this may help you..

-rajaManickam

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.