开发者

problem with vb.net doing action for other forms

I have 2 forms, 1 is for control and the other is for display. Its 2 because the 1 for display will consume the whole screen and there's no space for buttons. Im trying to control form4 using form2 or some other form, navigating a certain webpage in the process.

I have this code for the control: but it does not work, what would I do?

F开发者_开发问答orm4.WebBrowser1.Navigate("http://www.animedreaming.com/fairy-tail-episode-19/")


If I get your meaning you can access one form from another by making a local class along the lines of...

FORM#1 -->

Public Class FORM#1 Inherits System.Windows.Forms.Form

Public Shared Form as FORM#1

Public Sub someAction (byVal someParameter as someKindOfThingy)

' do something

End Sub

End Class

FORM #2 -->

FORM#1.someAction(someParameter)

===================================

There are any number of variations on this basic theme... from declaring a local class in FORM#2 as type FORM#1 through the use of delegates.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜