How to pass project_id from one form to another form in vb.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Aug 21, 2013, 11:40 AM EDT
Jignesh TrivediRank #16 · 50.3K reputationPosted Aug 21, 2013, 7:05 PM EDT
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.