Solved

vb.net Variables

Posted on 2014-09-16
4
132 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 500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

734 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