[Gtk-sharp-list] Help

George Farris farrisg@mala.bc.ca
03 Feb 2003 10:00:43 -0800


Get the latest gtk# tar ball from http://gtk-sharp.sourceforge.net/
unpack it and look in the samples directory, it has all sorts of
examples.

On Sun, 2003-02-02 at 20:49, rasheed wrote:
> 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
--