C#notes From Bookmarks
C#notes From Bookmarks
Line - 4: - This code will print Hello C# onto the Console. Here Console is the class
belonging to System namespace and writeLine is the static method belonging to Console
Class.
Line - 5:- The Opening and Closing curly races are similar to that of C++/Java.
this.Paint+=new PaintEventHandler(Text_bru);
}
public void Text_bru(object sender,PaintEventArgs e)
{
Graphics g = e.Graphics;
g.FillEllipse(bgbrush,50,50,500,300);
}
public static void Main()
{
Application.Run(new Texturedbru());
}
// End of class
}
You can easily insert images by following the procedure given below
g.DrawImage(img,20,20,100,90);
Conclusion