Message 1 of 3
Not applicable
12-11-2011
02:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
VB.NET loses me again.
In my VBA program I had a function to read/write an external data file to retain and recall user settings on a form.
The nature of the function was quite simple:
For Each oObject as Control in Me.Controls
If TypeOf oObject is ComboBox
Do my thing
ElseIf etc.
......
end if
Next
This code is almost identical in my VB.NET references, but when I try to run it I find the "Controls.Count" value for the form is only 1 (that object is a Tab control) thus I'm unable to access the individual controls with this code.
There is also a "ControlCollection" object, but this appears as "Nothing".
Where should I go from here?
Solved! Go to Solution.