TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Maha
NA
0
329.1k
Windows Button
Sep 22 2014 7:04 AM
What is reason
for if we move the
Button
button1 =
new
Button
(); within the constructor. Program is not working. Problem is highlighted.
Why is it called
button1 is a private field?
using System;
using System.Windows.Forms;
using System.Drawing;
public class WindowWithButton : Form
{
//Button button1 = new Button();
public WindowWithButton()
{
Button button1 = new Button();
this.Size = new Size(300, 300);
this.Text = "Window Object With Button";
button1.Text = "Press";
this.Controls.AddRange(new System.Windows.Forms.Control[] { this.button1 });
this.button1.Location = new Point(100, 50);
}
public static void Main()
{
Application.Run(new WindowWithButton());
}
}
Reply
Answers (
5
)
how to implement the login using biometric?..
Google Api + Route calculator