开发者

call Form2 from Form1 in wpf vb.net

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()
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜