Click here to Skip to main content
16,006,013 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: SQL query with where clause Pin
Steven Campbell17-Jul-04 12:24
Steven Campbell17-Jul-04 12:24 
GeneralRe: SQL query with where clause Pin
Dave Kreskowiak18-Jul-04 8:59
mveDave Kreskowiak18-Jul-04 8:59 
GeneralRe: SQL query with where clause Pin
Steven Campbell18-Jul-04 13:52
Steven Campbell18-Jul-04 13:52 
GeneralRe: SQL query with where clause Pin
Dave Kreskowiak19-Jul-04 2:37
mveDave Kreskowiak19-Jul-04 2:37 
GeneralOpening PDF file separated by pages Pin
franco_8216-Jul-04 19:02
franco_8216-Jul-04 19:02 
GeneralRe: Opening PDF file separated by pages Pin
Mekong River17-Jul-04 4:32
Mekong River17-Jul-04 4:32 
Generalassociate sounds with buttons Pin
samithas16-Jul-04 16:25
samithas16-Jul-04 16:25 
GeneralRe: associate sounds with buttons Pin
Dave Kreskowiak17-Jul-04 7:39
mveDave Kreskowiak17-Jul-04 7:39 
If your going to have 30 sounds, don't embedded them as resources, it'll just make compiling your app that much longer, especially if they're large sound files. Just leave them as files. The code is really easy when you don't have all the junk of resources to look through. If your just starting out -> KEEP IT SIMPLE!
    Private Declare Ansi Function PlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _
        (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long

    Private Enum PlaySoundFlags
        Sync = &H0
        Async = &H1
        [Loop] = &H8
        NoStop = &H10
        NoDefault = &H2
    End Enum

    Private Sub btnPlaySoundSync_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPlaySoundSync.Click
        Me.Cursor = Cursors.WaitCursor
        PlaySound("C:\Program Files\ahead\Nero\Beeth5th.wav", PlaySoundFlags.Sync)
        Me.Cursor = Cursors.Default
    End Sub
 
    Private Sub btnPlaySoundAsync_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPlaySoundAsync.Click
        Me.Cursor = Cursors.WaitCursor
        PlaySound("C:\Program Files\ahead\Nero\Beeth5th.wav", PlaySoundFlags.Async)
        Me.Cursor = Cursors.Default
    End Sub

This code assumes you have two buttons on your form, named btnPlaySoundSync and btnPlaySoundAsync.


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

GeneralHelp with coding for message box. Pin
superprogrammingdude16-Jul-04 6:02
superprogrammingdude16-Jul-04 6:02 
GeneralRe: Help with coding for message box. Pin
crazy-weasel16-Jul-04 7:06
crazy-weasel16-Jul-04 7:06 
GeneralRe: Help with coding for message box. Pin
superprogrammingdude16-Jul-04 8:40
superprogrammingdude16-Jul-04 8:40 
QuestionHow to Create Dynamic Toolbar in VB6.0 Pin
Member 119551216-Jul-04 5:18
Member 119551216-Jul-04 5:18 
AnswerRe: How to Create Dynamic Toolbar in VB6.0 Pin
Dave Kreskowiak16-Jul-04 10:20
mveDave Kreskowiak16-Jul-04 10:20 
GeneralCrystal Report viewer Navigation bar problem Pin
spn16-Jul-04 1:20
spn16-Jul-04 1:20 
QuestionHow to set Align property to User ActiveX control Pin
Member 119551215-Jul-04 23:33
Member 119551215-Jul-04 23:33 
GeneralCrystal reports chart Axis / series 'wrong way round' Pin
Martin Gibson15-Jul-04 21:56
Martin Gibson15-Jul-04 21:56 
GeneralInput string was not in a correct format Pin
DotNet15-Jul-04 18:33
DotNet15-Jul-04 18:33 
GeneralRe: Input string was not in a correct format Pin
Dave Kreskowiak16-Jul-04 1:03
mveDave Kreskowiak16-Jul-04 1:03 
GeneralEnableVisualStyles Pin
GregOsborne15-Jul-04 6:39
GregOsborne15-Jul-04 6:39 
GeneralRe: EnableVisualStyles Pin
Dave Kreskowiak16-Jul-04 1:03
mveDave Kreskowiak16-Jul-04 1:03 
GeneralRe: EnableVisualStyles Pin
The Man from U.N.C.L.E.19-Jul-04 6:50
The Man from U.N.C.L.E.19-Jul-04 6:50 
GeneralGet URL from hyperlink text Pin
Vyyk Drago15-Jul-04 4:45
sussVyyk Drago15-Jul-04 4:45 
GeneralRe: Get URL from hyperlink text Pin
Dave Kreskowiak17-Jul-04 7:12
mveDave Kreskowiak17-Jul-04 7:12 
GeneralRe: Get URL from hyperlink text Pin
Vyyk Drago17-Jul-04 8:57
sussVyyk Drago17-Jul-04 8:57 
GeneralRe: Get URL from hyperlink text Pin
Dave Kreskowiak17-Jul-04 9:24
mveDave Kreskowiak17-Jul-04 9:24 

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.