Getting forms through their name (not loaded ones)
I'm making controls which may interact with other forms (e.g. load them). At the moment I have to raise an event and it's caused me to repeat a huge amount of code which shouldn't need to be repeated. Ideally I would like to have the name of the form as a property of the control. For this to work I would need to be able to load a form with it's name stored in a string.
Before you point me in the direction of the code on this site it can only access forms which are already loaded.
Also can VB pass an array to a function? I need to pass the Controls collection of a form to a function.
Any help on this would be greatly appreciated.
Thanx
Subliminal
Moon pie and chips...£67.99!!!
VB Code:
'In module
Public function GetCollection(ByRef MyCollection As Collection)
'Code here
End Function
'In form
'To use the above use the below :D
GetCollection mcolMyCollectionFromForm
Not sure about your 1st problem :(
Woka