Simple Question VB. Net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • HardySpicer

    Simple Question VB. Net

    I have the following call from a Button1

    Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
    System.EventArg s) Handles Button1.Click
    Dim strMp3 As String

    strMp3 = "chop2.mp3"

    Me.AxWindowsMed iaPlayer1.URL = strMp3
    End Sub
    This works fine as part of a larger program and the file plays.

    However, if I want to automatically push the button in the code how do
    I do this?

    I trie

    Button1_click ()

    but it compains tyhat a declaration is expected? How do I do this...

    regards

    Hardy
  • Sheng Jiang[MVP]

    #2
    Re: Simple Question VB. Net

    This is a VC newsgroup
    ask in the VB newsgroup.

    --
    Sheng Jiang
    Microsoft MVP in VC++
    "HardySpice r" <gyansorova@gma il.comwrote in message
    news:8e21f2cc-cf9c-4354-b9c6-cd414ffae428@s3 6g2000prg.googl egroups.com...
    I have the following call from a Button1
    >
    Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
    System.EventArg s) Handles Button1.Click
    Dim strMp3 As String
    >
    strMp3 = "chop2.mp3"
    >
    Me.AxWindowsMed iaPlayer1.URL = strMp3
    End Sub
    This works fine as part of a larger program and the file plays.
    >
    However, if I want to automatically push the button in the code how do
    I do this?
    >
    I trie
    >
    Button1_click ()
    >
    but it compains tyhat a declaration is expected? How do I do this...
    >
    regards
    >
    Hardy

    Comment

    Working...