some qusetions about frame and forms

This is a discussion on some qusetions about frame and forms within the C# Programming forums, part of the General Programming Boards category; i got a main form called [frame] included a splitcontainer and its embled [menu] form and [main] form how can ...

  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    1

    Question some qusetions about frame and forms

    i got a main form called [frame] included a splitcontainer and its embled [menu] form and [main] form

    how can i control the [frame].splitcontainer when im clicked the button of [menu] form

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,175
    One way would be to pass either a reference to the splitcontainer or the form to your menu:
    Code:
    Frame frame = new Frame(splitContainer1);
    Code:
    public class Frame : Form
    {
      public Frame(SplitContainer splitcontainer)
      {
        splitcontainer.Visible = false;  // For example...
      }
    }
    If you understand what you're doing, you're not learning anything.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Get Frame Width
    By Brad0407 in forum Windows Programming
    Replies: 2
    Last Post: 07-10-2007, 08:26 PM
  2. Replies: 3
    Last Post: 09-17-2006, 09:13 AM
  3. Frame? Are they in c++?
    By MK4554 in forum Windows Programming
    Replies: 3
    Last Post: 07-08-2006, 08:22 AM
  4. More qusetions 2 ...
    By ComDriver in forum C++ Programming
    Replies: 5
    Last Post: 02-21-2005, 06:42 PM
  5. More qusetions...
    By ComDriver in forum C++ Programming
    Replies: 2
    Last Post: 02-21-2005, 02:56 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21