hello I came from the world of c/c++, I have the following snippet of the code, is it good idea to initialize button this way? thanks in advance
private Button initializeButton() {
Button button = new Button();
button.FlatStyle = System.Windows.Forms.FlatStyle.System;
button.Location = new System.Drawing.Point(16, 16);
button.Name = "button";
button.Size = new System.Drawing.Size(168, 24);
button.TabIndex = 5;
button.Text = "button";
return button;
}