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
yokzu
NA
306
0
Getting variable in another function
Dec 27 2009 6:43 PM
Hi.
I want to get var1 variable in button1_Click function but its getting null in there. How can I do that?
public string var1;
public void func()
{
while (true)
{
...
string var1 = "this is example";
}
private void button1_Click(object sender, EventArgs e)
{
label2.Text = var1;
// -----> var1's value is null in here.
}
Reply
Answers (
2
)
i want this code please
Socket programming