Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: RR VB.net plugin, need help !

  1. #11
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,609
    ok this may not be proper programming practice (or even work) bu try this.


    Add to your declarations in the RRExtension

    Dim MainForm AsNew Webpage


    and then change you processcommand code as follows


    Code:
      Public Function ProcessCommand(ByRef CMD As String, ByRef frm As Object) As Short
            Dim F As New WebPage
            Select Case LCase(CMD)
                Case "webpage_load"
                    mainform.Show()
                    ProcessCommand = 2
    
                Case "webpage_yahoo"
                    mainform.WebBrowser1.Navigate("http://www.yahoo.com")
                    ProcessCommand = 2
    
                Case "webpage_youtube"
                    mainform.WebBrowser1.Navigate("http://www.youtube.com")
                    ProcessCommand = 2
    
            End Select
    
        End Function

  2. #12
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,852
    I have the same issue !!!

  3. #13
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,609
    Oh, just re-read your previous code, you'd already tried that.



    Make sure that that subs on the form are public

  4. #14
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,852
    Where can i see that my subs are public ?
    May be like that ?
    Code:
    Public Class WebPage
    
        Public Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
            If e.Url.Host = "www.yahoo.com" Then
                WebBrowser1.Navigate("http://www.youtube.com")
            End If
            If e.Url.Host = "www.youtube.com" Then
                MsgBox("HELLO WORLD !!!", vbOKOnly, "Info")
            End If
        End Sub
    
        Public Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            WebBrowser1.Navigate("http://www.yahoo.com")
        End Sub
    
        Public Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            WebBrowser1.Navigate("http://www.youtube.com")
        End Sub
    
        Public Sub WebPage_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    
        End Sub
    
    End Class

  5. #15

  6. #16
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,852
    Same issue !!!

  7. #17

  8. #18
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,852
    This is my full job !
    Attached Files Attached Files

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 6
    Last Post: 03-08-2009, 01:05 PM
  2. Replies: 6
    Last Post: 02-06-2009, 08:32 AM
  3. Replies: 16
    Last Post: 01-02-2006, 07:04 PM
  4. Winamp LCD display plugin / IRMan plugin - together?
    By Jarrod in forum Software & Software Development
    Replies: 9
    Last Post: 06-03-2002, 05:39 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •