Hi Cor,
Thanks for your response. I have been looking at the My.Forms object, but I
didn't see how I could use it, since it doesn't seem to have an enumerator.
I have the form name in a string variable and I thought to make a function
something like this:
Private Function OpenForm(ByVal FormName as String) as Boolean
For Cntr=0 to My.Forms.Count - 1
If My.Forms(Cntr).Name = FormName then
My.Forms(Cntr).Show()
Exit Function
End If
End Function
In other words, I need to convert a form name in a string to an object....
Tia,
Martin
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:eb**************@tk2msftngp13.phx.gbl...
Martin,
Seen as disproportion by probably all longer using VBNet developpers in
this newsgroup, a part from the My namespace.
As I have read yesterday so nice described by Herfried in another message,
as "faking VB6 behaviour in VBNet".
http://msdn2.microsoft.com/en-us/library/87y2hdsf.aspx
I hope this helps,
Cor