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
Abhijeet Ghatage
NA
110
1.3k
how to pass value to the function which is in another fuctio
Jun 16 2015 12:37 AM
i want to pass value to the function through thread... following is the original code without thread..
private void btnsearch_Click(object sender, EventArgs e)
{
SearchRecord(QuerySearch);
}
following is the code i m trying.. using thread..
private void btnsearch_Click(object sender, EventArgs e)
{
Thread Proceso1 = new Thread(new ThreadStart(load));
Proceso1.Start();
Thread Proceso2 = new Thread(new ThreadStart(loadTable ));
Proceso2.Start();
}
private void loadTable(int QuerySearch)
{
SearchRecord(QuerySearch);
}
public void load()
{
if (pictureBox1.InvokeRequired)
{
MethodInvoker assign = new MethodInvoker(load);
pictureBox1.Invoke(assign);
}
else
{
pictureBox1.Visible = true;
}
Thread.Sleep(100);
}
plz help me to pass value of querysearch through main thread to function
Reply
Answers (
1
)
About the data from different tables
How to save the changed value of DataGrid cell into a string