Advertisement

07.14.2008 at 11:31PM PDT, ID: 23565159
[x]
Attachment Details

How to enable/disable MDIParent menus from a child form

Asked by PaulEll in Visual Studio 2008, Microsoft Visual Basic.Net, Visual Studio .NET 2005

Tags: Microsoft, Visual Studio VB.net, 2008, MDI Form, VB.Net

Hi there,

I'm trying to enable / disable the file menu options on a MDIParent form based on the
value of a boolean variable calculated in a child form.

The attache code does not work.

Can someone please point me in the right direction.

ThanksStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
' If we are unable to connect display a red error message
        ' If we are connected then display a blue message
        If ConnectionStatus = False Then
            Label5.Text = "Unable to connect to the database"
            Label5.ForeColor = Color.Red
            ConnectionStatus = False
            MDIParent1.ReportsToolStripMenuItem.Enabled = False
        ElseIf ConnectionStatus = True Then
            Label5.Text = "You are connected to the database"
            Label5.ForeColor = Color.Blue
            Write_Database_XML_Doc()
            ConnectionStatus = True
            MDIParent1.ReportsToolStripMenuItem.Enabled = True
        End If
[+][-]07.15.2008 at 12:35AM PDT, ID: 22004791

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 12:51AM PDT, ID: 22004860

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 01:32AM PDT, ID: 22005015

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 01:45AM PDT, ID: 22005073

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 01:46AM PDT, ID: 22005077

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 03:22AM PDT, ID: 22005473

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 04:06AM PDT, ID: 22005718

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 04:31AM PDT, ID: 22005845

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 05:48AM PDT, ID: 22006337

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 07:46AM PDT, ID: 22007522

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio 2008, Microsoft Visual Basic.Net, Visual Studio .NET 2005
Tags: Microsoft, Visual Studio VB.net, 2008, MDI Form, VB.Net
Sign Up Now!
Solution Provided By: Idle_Mind
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628