TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
spatterson
NA
12
0
Passing Parameters to form
Feb 19 2004 11:02 PM
I am trying to figure out how to pass parameters to a form before the form is displayed. For instance I am opening 1 form from another form: Form g = new frmMainForm(); g.ShowDialog() ; In VB 6 I would create properties with PropertyGet and ProperyLet and would set for instance the value of a property before opening the form: Form g = new frmMainForm(); g.UserID = 1; g.ShowDialog() ; How can I accomplish making the property UserID a property and making it accessible when instantiating this form. I tried using the get and set Accessors but that doesn't seem to work.
Reply
Answers (
1
)
Custom menuitem
way to not lose selection in a listview?