html form button
<button type="submit" form="form1" value="Submit">Submit</button>
<!-- OR YOU CAN DO -->
<input type="submit" value="Submit">
<!-- OR YOU CAN DO -->
<input type="button" value="Submit">
html form button
<button type="submit" form="form1" value="Submit">Submit</button>
<!-- OR YOU CAN DO -->
<input type="submit" value="Submit">
<!-- OR YOU CAN DO -->
<input type="button" value="Submit">
how to add new button to form
private void Form1_Load(object sender, EventArgs e)
{
Button testbutton = new Button();
testbutton.Text = "button1";
testbutton.Location = new Point(70, 70);
testbutton.Size = new Size(100, 100);
testbutton.Visible = true;
testbutton.BringToFront();
this.Controls.Add(testbutton);
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us