Click here to Skip to main content
15,909,051 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This may be a stupid question, but please clear me up.

In VBA (Microsoft Access), there is something like "openargs" which can pass arguments from one form to another form. The newly opened form can make use of that open args like...

Dim abc 
abc = me.openargs
'do something with abc
...


Now I'm moving to VS2008 building WPF application in VB.NET environment. I was just wondering if there are any similar functionalities? How?
Posted
Updated 3-Feb-10 22:07pm
v2

1 solution

You can define properties or constructors of your form objects which take parameters. The difference is that WPF is based on .NET, and it's a lot cleaner (VBA is kind of rubbish). You can't pass random arguments, you create defined properties or constructors and have to pass exactly what is required.

You should perhaps buy a basic book on Object Oriented programming.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900