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
Patel
NA
81
17.8k
Tell me on which thread button1 and button2 created
Nov 25 2020 1:20 AM
I have added one button in designer.cs file and second button creating runtime on first button click. Tell me on which thread button1 and button2 created
using
System;
using
System.Drawing;
using
System.Windows.Forms;
namespace
WinformTest {
public
partial
class
Form1 : Form{
public
Form1()
{
InitializeComponent();
//button1 added at designer.cs
}
private
void
button1_Click(
object
sender, EventArgs e)
{
//Dynamically creating button2.
Button button2 =
new
Button();
button2.Location =
new
Point(112, 33);
button2.Name =
"button2"
;
button2.Size =
new
Size(78, 33);
button2.TabIndex = 1;
button2.Text =
"button2"
;
}
Reply
Answers (
3
)
How to control desktop application when user terminates from task mngr
System.ObjectDisposedException: 'Cannot access a disposed object.