Saturday, August 18, 2012

C# How to use Controlers (Ex- Panels)

C# Using Panels

I'm going to teach you how to use C# Controllers to make easier developing your windows form applications and to make it more eye catching...

So  assume you have two Panels in your Form and you have a requirement to show ONE Panel at a time. And want to change to the other Panel when user wants to.

Step 1-> Create a New Project and Right Click on the Windows Form and Select -> View Code


Step 2 -> Develop the Code to Visible only one Panel at a time according to the Panel Name we Pass.

Step 3 -> Then Call the Function with the Panel Name you want to display at the Page Load Event


Step 4 -> The call the function again the the button click event in the Panel 1 to display the next Panel, and then in the click event of button 2 on the Panel 2 to make visible the Panel 1

Step 5 -> Run the Project and See Yourself






Hope you guys had Learned Something.... Meet you Guys soon in another Post.....

Keep In Touch....






4 comments:

  1. Hey Bro nice post..
    But as i know you no need to cast that control to panel coz u already check that your above if condition..

    anyway KIT...

    ReplyDelete
  2. Ya i've just remembered that machan... but anyway thnx a lot for ur valuable Comment.... keep in touch

    ReplyDelete
  3. \m/ useful post man.& I'm requesting some php tutorials bro.
    keep posting \m/.

    ReplyDelete
  4. aniwa macho... Keep in touch for PHP...

    ReplyDelete