Thread: some qusetions about frame and forms

  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,218
    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, 07:26 PM
  2. Replies: 3
    Last Post: 09-17-2006, 08:13 AM
  3. Frame? Are they in c++?
    By MK4554 in forum Windows Programming
    Replies: 3
    Last Post: 07-08-2006, 07: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