Values in other forms?
Posted on 2002-06-28
I have a program that is not MDI. I have two forms one called frmMain and one called frmBrowser. For some reason I can't access values in frmMain from frmBrowser. For example, on frmMain there are 3 text boxes and 1 list box. If I try to access the values of these from frmBrowser it doesn't work. For example, frmMain.txtUsername is blank when I use it in frmBrowser. If I select the first item in the listbox, frmMain.lstItems.selected(0) is false. But the weird thing is I can access the properties. I can get the values like frmMain.txtUsername.height and frmMain.lstItems.listcount. Whats going on here, do the forms need to be MDI childs to be able to access each others values?