?
Solved

vb.net Variables

Posted on 2014-09-16
4
Medium Priority
?
136 Views
Last Modified: 2014-09-19
Hi Experts

Passing variables between forms / Function etc

for example
I have a employee xlistpanel showing employee names
I then select the employee and a separate xlistpanel shows supplies allocated to the employee
select the supply and a form (Supply) shows all relevant details for that supply
supply.show()

How do in the supply form see the employee selected id variable and the Supply  selected Id

Hope I make sense
0
Comment
Question by:Kevinfeening
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 40327219
When you create the instance variable for the Supply form pass to it the employee in the Constructor that you need.
0
 

Author Comment

by:Kevinfeening
ID: 40327222
Thanks but new to this

How do you pass the Employee id variable (empid) from the xlist and the Supply id (suppId) from the 2nd xlist to the constructor in the supply form
0
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 2000 total points
ID: 40327316
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 40327892
Hi Kevinfeening;

Please see @kaufmed post and article and if you still having issues please post here.
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question