Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Professionals
|
ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Professionals section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 28th, 2011, 03:30 AM
Registered User
 
Join Date: May 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with ToolStrip selection under Menue Strip

Hi all,
I am working with C# (Asp.Net 3.5 ) Window Application.

I have a problem to De-Select ToolStrip under menueStrip. I am calling a page by clicking a link from ToolStrip under menueStrip and makeing the toolstrip disable, and the new page is opening. Now problem is that when I am closing the new page clicking Exist button that time I want to enable that particular ToolStrip.

code:-

ParentMenu.cs:-

namespace MFI_Windows
{
public partial class ParentMenu : Form
{
public partial class ParentMenu : Form
{
NEW_AGENT obj_new_agent = new NEW_AGENT();
}

private void newAgentToolStripMenuItem_Click(object sender, EventArgs e)
{
obj_new_agent = new NEW_AGENT();
obj_new_agent.MdiParent = this;
obj_new_agent.Show();
if (newAgentToolStripMenuItem.IsDisposed == false)
{
newAgentToolStripMenuItem.Enabled = false;
}
else
{
newAgentToolStripMenuItem.Enabled = true;
}


}
}
}


New Agent.cs:-

private void btn_Exit_Click(object sender, EventArgs e)
{
this.Hide();

//next_page();

}
I want after the exit button code execution again the toolstrip for new agent will be enable.
Please someone help me to overcome this issue.

With regards
Somesh Chatterjee
 
Old May 29th, 2011, 06:19 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Are you sure this is ASP.NET? Looks like Win Forms to me. What makes you think this is ASP.NET?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Overflow Problem in ToolStrip Save button zaki79 VB Databases Basics 2 June 5th, 2008 01:38 PM
Toolstrip and TabControl pamskate5 Visual Basic 2005 Basics 0 October 12th, 2006 04:35 PM
Custom ToolStrip bmains Pro Visual Basic 2005 1 January 17th, 2006 01:39 PM
how to create tool bar menue in access method Access VBA 1 June 18th, 2005 10:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.