NeuralJack
Centurion
- Joined
- Jul 28, 2005
- Messages
- 138
I'm working with 2 active forms. Form1 has a combo box, Form2 has a button with a context menu on it.
Anytime I click the context menu on form2 and try to obtain the .SelectedIndex property of the combobox on Form1 it always just returns "-1" even though it is obviously isnt "-1". Because I can see that their is a valid selection in the combo box.
Any Ideas? I have tried making the context menu a public entity by declaring it in a module, but that didnt work either. The button is also a public entity btw, and declared in a module.
I'm sure it's some sort of scope problem?
Anytime I click the context menu on form2 and try to obtain the .SelectedIndex property of the combobox on Form1 it always just returns "-1" even though it is obviously isnt "-1". Because I can see that their is a valid selection in the combo box.
Any Ideas? I have tried making the context menu a public entity by declaring it in a module, but that didnt work either. The button is also a public entity btw, and declared in a module.
I'm sure it's some sort of scope problem?