Click here to Skip to main content
15,911,531 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to set a condition formula for report objects... Pin
Anonymous15-Oct-04 15:13
Anonymous15-Oct-04 15:13 
Generalmulti connection server Pin
fo0lish15-Oct-04 14:17
fo0lish15-Oct-04 14:17 
GeneralRe: multi connection server Pin
Anonymous16-Oct-04 16:25
Anonymous16-Oct-04 16:25 
GeneralProblem in "HTML HELP WORKSHOP" Pin
eshban28415-Oct-04 11:49
eshban28415-Oct-04 11:49 
Generaladding sound to a button click Pin
jameshaynes15-Oct-04 8:22
jameshaynes15-Oct-04 8:22 
GeneralRe: adding sound to a button click Pin
Dave Kreskowiak15-Oct-04 9:22
mveDave Kreskowiak15-Oct-04 9:22 
GeneralRe: adding sound to a button click Pin
jameshaynes15-Oct-04 10:28
jameshaynes15-Oct-04 10:28 
GeneralRe: adding sound to a button click Pin
Dave Kreskowiak18-Oct-04 2:44
mveDave Kreskowiak18-Oct-04 2:44 
You can't just cut and paste the code and expect it to work. You must understand what's going on in the code and why in order to get it to work with your code. In this case, start a new Windows Forms project and add a button to the form (don't rename it.)

Then copy and paste the button-click code from the example into the code of the form. Then copy and paste then SoundClass code and paste it in above the Form1 class code. You should end up with (2) classes, layed out something like this:
Public Class SoundClass
    .
    . yada yada yada
    .
End Class
 
Public Class Form1
    .
    . yada yada yada
    .
    Private Sub Button1_Click(ByVal sender As System.Object, _
        ByVal e As System.EventArgs) Handles Button1.Click
        Dim SoundInst As New SoundClass()
        SoundInst.PlaySoundFile("C:\ringout.wav")
    End Sub
End Class



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralIntegrating VB.NET Application with RightFax Pin
spinski15-Oct-04 8:16
spinski15-Oct-04 8:16 
GeneralRe: Integrating VB.NET Application with RightFax Pin
Dave Kreskowiak15-Oct-04 9:19
mveDave Kreskowiak15-Oct-04 9:19 
GeneralRe: Integrating VB.NET Application with RightFax Pin
spinski15-Oct-04 9:48
spinski15-Oct-04 9:48 
GeneralRe: Integrating VB.NET Application with RightFax Pin
Dave Kreskowiak15-Oct-04 10:34
mveDave Kreskowiak15-Oct-04 10:34 
QuestionHow to create application file ? Pin
unambiguos15-Oct-04 7:03
unambiguos15-Oct-04 7:03 
AnswerRe: How to create application file ? Pin
Dave Kreskowiak15-Oct-04 9:15
mveDave Kreskowiak15-Oct-04 9:15 
GeneralRe: How to create application file ? Pin
unambiguos15-Oct-04 18:37
unambiguos15-Oct-04 18:37 
GeneralWebClient And IIS.... Please.... Urgent Pin
joe123sys15-Oct-04 4:29
joe123sys15-Oct-04 4:29 
GeneralRe: WebClient And IIS.... Please.... Urgent Pin
Mekong River15-Oct-04 6:24
Mekong River15-Oct-04 6:24 
Generalcatch for letters Pin
Britnt715-Oct-04 3:36
Britnt715-Oct-04 3:36 
GeneralRe: catch for letters Pin
Mekong River15-Oct-04 6:43
Mekong River15-Oct-04 6:43 
GeneralRe: catch for letters Pin
Britnt718-Oct-04 7:59
Britnt718-Oct-04 7:59 
GeneralVB6 & Visio OCX Pin
RichardGrimmer15-Oct-04 3:16
RichardGrimmer15-Oct-04 3:16 
GeneralRe: VB6 & Visio OCX Pin
Mekong River15-Oct-04 6:50
Mekong River15-Oct-04 6:50 
GeneralVB Script, obtaining description property of user Pin
James Gohl15-Oct-04 2:43
James Gohl15-Oct-04 2:43 
GeneralRe: VB Script, obtaining description property of user Pin
Mekong River15-Oct-04 6:54
Mekong River15-Oct-04 6:54 
GeneralData transfer between to sql server through vb.net Pin
Prakash Chajer15-Oct-04 0:58
Prakash Chajer15-Oct-04 0:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.