[Gtk-sharp-list] Help

rasheed rasheed@reptile.ca
Sun, 02 Feb 2003 20:49:49 -0800


Hello Everyone.

I am quite new at this side of the track so please bear with me.
I have a winform code that  was written and compiled  fine with C#/SDK.
I  am now trying to convert it  to gtk#/mono and having a heck of a
time.

 for example, how do i convert these line of codes to gtk#/mono

  using System;
  using System.WIndows.Forms;
  using System.Drawing;

   public class Someform : Form{
   private Button btnA;
   private TextBox tbxB;

   public static void Main() {
    Application.Run(new Someform());
   }
  
   public Someform(){ 
   this.btnA = new Button();
   this.tbxB = new TexBox();

   btnA.Location = new Point(20,0);
   tbxB.Location = new Point(20,10);

   btnA.Text = "ClickOn";
   btnA.Click += new EventHandler(this.ClickOn);
  
   this.Controls.Add(btnA);
   this.Controls.Add(tbxB);
  
   }
     public void Add(object sender, EventArgs e){   
    and bla bla;
   }

}//~ class Someform

This simple code will compile fine under win32. So if i want to do this
under linux,using gkt#/mono, what will the code look like.

Sorry for taking too much of your time.

Rasheed
-- 
     Rasheed Soaga, MCP
     rasheed@reptile.ca

________________________________________________________________________
 Reptile Consulting & Services    604-REPTILE    http://www.reptile.ca/