I've to create button without using toolbox in c#.net. Any body can help.
To create buttion using coding in c#.net?
Button myButton = new Button();
Point btnLoc = new Point();
myButton.Text = "Hello";
btnLoc.X = 100;
btnLoc.Y = 100;
myButton.Visible = true;
also, dont forget to add the lines
using System.Windows.Forms;
using System.Drawing;
if not already being used.
avender
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment