Solved

vb.net Variables

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

Independent Software Vendors: 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

When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

691 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