Solved

vb.net Variables

Posted on 2014-09-16
4
123 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
  • 2
4 Comments
 
LVL 62

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 74

Accepted Solution

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

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now