ok., this is the original code(i am copy/pasting it)
what i am doing is., i am navigating to a different form based on the
formname stored in a variable called strFormNameHolder., but it doesnt work(I
cant see the second form).
Dim myForm As Type = Type.GetType(strFormNameHolder)
Dim myFormObject As Object =
Activator.CreateInstance(Type.GetType(strFormNameH older))
Dim frmNavigateto As New Form
frmNavigateto = DirectCast(myFormObject, Form)
frmNavigateto.Show()
frmNavigateto.Visible=true
Me.Close
Me.Dispose
This code is in a button_click sub, as soon as the event is fired., the
application seems to run and immediately close.
Thanks again.
~Ken
"ocertain" wrote:
Dim myform as New frmsecondform
frmsecondform=mynamespace.originalsecondformname
myform.show
Instead of the above try :
Dim myform as New frmsecondform
myform.show
The second line "frmsecondform=mynamespace.originalsecondformn ame" is
unnecessary and I suspect it is the reason your form does not show.