Click here to Skip to main content
16,008,469 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: vb6 freezing help Pin
DxSolo18-Jun-03 5:07
DxSolo18-Jun-03 5:07 
GeneralRe: Several sub routines in same loop Pin
dynamic17-Jun-03 21:43
dynamic17-Jun-03 21:43 
GeneralRe: Several sub routines in same loop Pin
oliver_twistor17-Jun-03 22:08
oliver_twistor17-Jun-03 22:08 
GeneralRe: Several sub routines in same loop Pin
dynamic18-Jun-03 3:31
dynamic18-Jun-03 3:31 
GeneralRe: Several sub routines in same loop Pin
oliver_twistor18-Jun-03 22:07
oliver_twistor18-Jun-03 22:07 
GeneralRe: Several sub routines in same loop Pin
oliver_twistor22-Jun-03 9:18
oliver_twistor22-Jun-03 9:18 
GeneralSounds and .WAV using MMControl 6.0 Pin
Jm6k17-Jun-03 13:16
Jm6k17-Jun-03 13:16 
GeneralRe: Sounds and .WAV using MMControl 6.0 Pin
dynamic17-Jun-03 13:50
dynamic17-Jun-03 13:50 
in vb.net do this :
VB:
<font color="blue">Private</font> <font color="blue">Declare</font> <font color="blue">Function</font> sndPlaySound <font color="blue">Lib</font> "winmm.dll" <font color="blue">Alias</font> "sndPlaySoundA" _
              (<font color="blue">ByVal</font> lpszSoundName <font color="blue">As String</font>, <font color="blue">ByVal</font> uFlags <font color="blue">As Integer</font>) <font color="blue">As Integer</font>
    <font color="blue">Const</font> SND_SYNC <font color="blue">As Integer</font> = &H0
    <font color="blue">Const</font> SND_ASYNC <font color="blue">As Integer</font> = &H1
    <font color="blue">Const</font> SND_NODEFAULT <font color="blue">As Integer</font> = &H2
    <font color="blue">Const</font> SND_LOOP <font color="blue">As Integer</font> = &H8
    <font color="blue">Const</font> SND_NOSTOP <font color="blue">As Integer</font> = &H10
    <font color="blue">Dim</font> SoundName <font color="blue">As String</font>, wFlags <font color="blue">As Integer</font>, x <font color="blue">As String</font>

<font color="blue">Private</font> <font color="blue">Sub</font> Button2_Click(<font color="blue">ByVal</font> sender <font color="blue">As</font> System.Object, <font color="blue">ByVal</font> e <font color="blue">As</font> System.EventArgs) <font color="blue">Handles</font> Button2.Click
    SoundName = "D:\Knock.wav"
    wFlags = SND_ASYNC <font color="blue">Or</font> SND_NODEFAULT
    x = sndPlaySound(SoundName, wFlags)
    

<font color="blue">End</font> <font color="blue">Sub</font>



putting your sound file's name where it says "D:\Knock.wav"

hope that helpsSmile | :)



<font color="blue">Private void</font> ExpectingTwins(<font color="blue">string</font> twins)
    {    
    <font color="blue">switch</font>(twins)
    {
    <font color="blue">Case</font> ("twins on the way"):
        MessageBox.Show("for mr and mrs dynamic","twins on the way");
    <font color="blue">break</font>;
    }
    }




GeneralRe: Sounds and .WAV using MMControl 6.0 Pin
Jm6k18-Jun-03 7:10
Jm6k18-Jun-03 7:10 
GeneralHllapi program to screen scrape in XP Pin
jbyears17-Jun-03 9:28
jbyears17-Jun-03 9:28 
GeneralRe: Hllapi program to screen scrape in XP Pin
Daniel Turini17-Jun-03 10:54
Daniel Turini17-Jun-03 10:54 
GeneralVB COM Object Pin
thowra17-Jun-03 3:02
thowra17-Jun-03 3:02 
GeneralToolbar with Close Button &amp; Title Bar Pin
Anand_Thakur17-Jun-03 0:53
Anand_Thakur17-Jun-03 0:53 
QuestionHow to use multi_thread in VB? Pin
Thomas Lau16-Jun-03 15:48
Thomas Lau16-Jun-03 15:48 
AnswerRe: How to use multi_thread in VB? Pin
Dave Kreskowiak17-Jun-03 6:41
mveDave Kreskowiak17-Jun-03 6:41 
AnswerRe: How to use multi_thread in VB? Pin
WillemM20-Jun-03 7:59
WillemM20-Jun-03 7:59 
Generaldatabase problem Pin
summo16-Jun-03 5:49
summo16-Jun-03 5:49 
Generalgraphing and page layout Pin
shirleyLo16-Jun-03 5:23
shirleyLo16-Jun-03 5:23 
GeneralScanning Bitmaps or JPegs for Barcode Pin
Eric Brasher16-Jun-03 4:58
sussEric Brasher16-Jun-03 4:58 
GeneralRe: Scanning Bitmaps or JPegs for Barcode Pin
newalfi20-Jun-03 6:09
newalfi20-Jun-03 6:09 
GeneralVB precompiler Constants Pin
parths15-Jun-03 21:49
parths15-Jun-03 21:49 
GeneralFrom VB to VB.net Pin
Jonavis14-Jun-03 10:28
Jonavis14-Jun-03 10:28 
GeneralRe: From VB to VB.net Pin
Nick Parker14-Jun-03 10:44
protectorNick Parker14-Jun-03 10:44 
GeneralRe: From VB to VB.net Pin
Anonymous14-Jun-03 17:55
Anonymous14-Jun-03 17:55 
GeneralRe: From VB to VB.net Pin
Nick Parker15-Jun-03 1:52
protectorNick Parker15-Jun-03 1:52 

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.