C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




windows menustrip control


Posted Date: 28 Aug 2008      Total Responses: 2

Posted By: krish       Member Level: Gold     Points: 1


in my windows MDIparent form im placing one menustring control.
for every item in menustrip having childitems.
when i click on child items it will open related form. upto now working fine

my doubt is if any childitem is open already if again click from menu it will open one more.i dont want one more it will show already open form not open duplicate forms

in my childmenu item click events i wrote like this

child1 frmchild1 = new child1();
frmchild1.MdiParent = this;
frmchild1.Show();




Responses

Author: vipul    28 Aug 2008Member Level: DiamondRating:     Points: 3
hi,
for that you used this way
foreach (Form a in Application.OpenForms)
{
if (a is avernusAbout)
{
// About form is open
break;
}
// About form is not open...
}

vipul,
http://dongavipul.blogspot.com



Author: krish    29 Aug 2008Member Level: GoldRating:     Points: 1
what is avernusAbout ? it cannot open in my system


Post Reply
You must Sign In to post a response.
Next : Whthr usage of flash in .NET 2.0 degrade the performance?
Previous : windows menustrip control open child forms
Return to Discussion Forum
Post New Message
Category: Windows

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

teleconferencing service

Contact Us    Privacy Policy    Terms Of Use