Windows C# with me coding... [Archive] - C Board

PDA

View Full Version : Windows C# with me coding...


(TNT)
12-01-2001, 02:18 PM
Hey,

I just got sent Visual Studio .NET beta 2 from ms free, and it kicks. I have learnt alot of console c# but i just tried a windows app, and saw that its all visually designed like vb.

Is it possible for me to just right the win32 code in a .cs file then compile it with the command promt e.g csc win32.cs like i can with dos apps?

Also i cant see to find any resources for learning windows c# can anyone reccomend anywhere?

Thanks alot
TNT

-KEN-
12-02-2001, 03:11 PM
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:


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());
}
}

Aran
12-06-2001, 03:53 PM
Can someone please post a link to where one can dowload VS.NET beta 2? i've really got a hankering to try it out.....

zen
12-06-2001, 04:04 PM
I think you need a MSDN subsription to download, but you can order the CD/DVD's for the cost of p&p here (http://msdn.microsoft.com/vstudio/nextgen/beta.asp)

-KEN-
12-06-2001, 04:16 PM
I got mine in the september issue of MSDN magazine that I picked up @ compUSA. you can always check some places and see if they have september back issues of it.