Perfect! Thank you.
Main Topics
Browse All TopicsHi, I'm using vs2005, .net 2 for windows application. In my application I have 3 forms that I used to display different datatable as the datasource for the grids on the form. I hide the other 2 forms and only set show() to one form at a time. There are Next and Previous buttons on the forms. I want to find a way to inform the form that is to be shown as to which datatable to use for the grid's datasource. I thought I wold set up a bool property in a form but I'm not able to access it in the other form. Why am I doing wrong here? Also, when I created the 3rd form I passed in the form2's handle(this) to it which I save as a "Form" type in variable "formFilter" in the form 3.
Thanks.
//form 2
public bool showUsers //For scrolling between forms to indicate which info. to disply
{
get
{
return showUsers;
}
set
{
showUsers = value;
}
}
//form 3 trying to access it.
if(formFilter.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: steelheart38Posted on 2007-06-24 at 20:31:14ID: 19353250
can you try assigning "Form2" "type" (or the class name is for the form containing the bool property) (instead of just "Form") in variable "formFilter" in the form 3. If this is possible to achieve your goal then formFilter.showUsers should be available.