How to pass project_id from one form to another form in vb.
How to pass project_id from one form to another form in vb.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Aug 21, 2013, 11:05 PM
I have little idea about VB but in this case you can pass project id by constructor or public property of another form.
for example I have 2 forms form1 and form2 and i want to pass project id from form1 to from2
1)
public Form2(int projectId)
{
}
in from1
Form2 f2 =new Form2(projectId);
f2.Show();
2) pass project id through property
public class form2
{
public int ProjectId {get;set;}
}
Form2 f2 =new Form2();
f2.ProjectId =projectId;
f2.Show();
hope this will help you.
VulpesPosted Aug 21, 2013, 3:40 PM