Community Server

The platform that enables you to build rich, interactive communities
Welcome to Community Server Sign in | Join | Help
in Search

hakimin

Creating a Form

Here i will write an example doin a form programming. No more such bull *** of explaination. I Will give an example and it will make you all more easy to understand.

Example :

From last blog we have create a simple form application. Today is some but little bit different;

using System.Windows.Form;

class FirstFormApplication: Form {
   
    public class FirstFormApplication()
    {
       this.Text = "Hello World Form Programming";
    }

and we can call the FormApplication class to other application class we want to as example

class MyApplication{
    static void Main() {
    Form form = new FirstFormApplication();
    Application.Run(form);
    }
}

so we can do a lot of change and more on FirstFormApplication class and it can be call into MyApplication class and run it on because the entry point is there. So we can modified FirstFormApplication as i create an example :

 class FirstFormApplication: Form {
   
    public class FirstFormApplication()
    {
       this.Text = "Hello World Form Programming";
       Button button = new Button();
       button.Text = "Click Me";
       this.Controls.Add(button);
    }
}

 that for today dude...

adios
 

Published Saturday, November 04, 2006 9:12 AM by hakimin

Comments

No Comments
Anonymous comments are disabled

About hakimin

Software Developer
Powered by Community Server, by Telligent Systems