Question:
Im using Visual Studio 2008 and Im starting on C#, Im reading this not so good tutorial but it was the only one i found that really started on the basics and so on in a good speed rate. Im a C++ programmer so i know somethings and some are new for me. But my main problem is now, i reached a part where the tutorial author started working with some windows app (or i think he did
List of Options:
Windows Forms Application(used this one but i comes with some predefined stuff i dont yet understand)
WPF Application
Console Application
Windows Service
WPF Control Library
Class Library
WPF Browser Application
Empty Proyect (I have been using this one for console applications that the tutorial showed, when i tried to use this one for the windows code shown below, it didnt had intelisence so im guessing it doesn't work for that)
WPF Custom Control Library
Windows Forms Control Library
If some could point out the one i should use would be nice
Just wondering: What does WPF stands for?
This is the code that is in the tutorial
using System;
using System.Windows.Forms;
using System.Drawing;
namespace NotePadWindowsForms
{
public class NotePadWindowsForms : System.Windows.Forms.Form
{
private System.Windows.Forms.Button Button1;
public NotePadWindowsForms()
{
Button1 = new System.Windows.Forms.Button();
Button1.Location = new System.Drawing.Point(8, 32);
Button1.Name = "Button";
Button1.Size = new System.Drawing.Size(104, 32);
Button1.TabIndex = 0;
Button1.Text = "Click Me";
Controls.AddRange(new System.Windows.Forms.Control[] { Button1 });
Button1.Click += new System.EventHandler(Button1_Click);
}
private void Button1_Click(object sender, System.EventArgs e)
{
MessageBox.Show("Button is Clicked");
}
public static int Main()
{
Application.Run(new NotePadWindowsForms());
return 0;
}
}
}

New Topic/Question
Reply




MultiQuote




|