if in vb.net, I can call like this form2.show (), but how in wpf vb.net?
th开发者_如何转开发ank you
Did you try the Object Oriented method:
Dim f2 as New Form2
f2.Show()
it worked for me.
Here in Wpf we cannot open/show the other form directly. so in Wpf we have to create an object that refer to the form2. because in Wpf even our form is considered as class.
Dim objForm2 As New Form2
objForm2.Show()
精彩评论