Buttons in ChildWindow?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aeris
    New Member
    • Dec 2009
    • 18

    Buttons in ChildWindow?

    Hello! Can anyone here do me a favor?

    I have a MainWindow with a HideButton and RetrieveButton. When I click on either one button, it will goes to another ChildWindow. My ChildWindow have a OKButton.

    The question here,
    How to set if else statement in C# for pseudocode below?

    Code:
    private void OKButton_Click(object sender, EventArgs e)
    {
       //pseudocode
       if (HideButton in MainWindow is clicked)
       {
          //Perform the works
       }
    
       if(RetrieveButton in MainWindow is clicked)
       {
          // Perform other works
       }
    Thanks in advance.
    By, Aeris
    Last edited by tlhintoq; Jan 24 '10, 01:43 AM. Reason: [CODE] ...Your code goes between code tags [/CODE]
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    TIP: When you are writing your question, there is a button on the tool bar that wraps the [code] tags around your copy/pasted code. It helps a bunch. Its the button with a '#' on it. More on tags. They're cool. Check'em out.

    Comment

    • tlhintoq
      Recognized Expert Specialist
      • Mar 2008
      • 3532

      #3
      Tutorial on raising events, including section on events from one window to another.

      Comment

      Working...