It's all fairly simple stuff, I do it by hand. You can just click view->view code and type all thew code up there, or just type it all up in trusty notepad like me. Try this, and I think you'll get the hang of it. Any questions just ask:
Code:
using System;
using System.Windows.Forms;
using System.ComponentModel;
using System.Drawing;
class MainForm : Form
{
public TextBox tbox = new TextBox();
public MainForm()
{
Button butt = new Button();
tbox.Location = new Point(10,10);
this.Controls.Add(tbox);
butt.Location=new Point(tbox.Left+tbox.Width+20,10);
butt.Size=new Size(150,24);
butt.Text="Ok";
butt.Click += new System.EventHandler(this.ButtClick);
this.Controls.Add(butt);
Text = "Cool Stuff";
}
protected void ButtClick(object sender, System.EventArgs e)
{
MessageBox.Show(tbox.Text,"You typed",MessageBoxButtons.OK);
}
public static void Main()
{
Application.Run(new MainForm());
}
}