I've never used this method befor, but it seems cool. Try this code it may help you: private sub text1_Gotfocus() text1.selstart = 0 text1.sellengh = len(text1.text) end sub private sub text2_Gotfocus() text2.selstart = 0 text2.sellengh = len(text2.text) end sub
From MSDN,
'This function declaration must be entered onto a single line.
Declare Function sndPlaySound32 Lib "winmm.dll" Alias "sndPlaySoundA" _
(ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Sub PlaySound()
If Application.CanPlaySounds Then
'Substitute the path and filename of the sound you want to play
Call sndPlaySound32("c:\windows\media\chimes.wav", 0)
End If
End Sub
Michael :-)
Its been a while since I worked with VB -> C++ dlls, but I think you need to pass ByVal because of the way that strings (COM VT_BSTR's) are handled. Not sure on array's of them, but I remember this for regular strings. James Sonork ID: 100.11138 - Hasaki and a digital cookie (not chocolate chip, its computer chip) goes to whoever can be the first to tell me what Hasaki means. I know someone registered on here can tell me :)
Simple, add a Inet Control to the form Code : Dim str1 as string str1=Inet1.OpenURL("http://www.chadhaajay.net") Now the entire html page is in string "str1" Contact for any kind of website design, softare development, custom IE Toolbars at www.chadhaajay.net:-O
You can not fire the event from another thread directly, you must use PostMessage notify the main thread in the OCX. True multithread programming in VB6 here: http://www.banasoft.com/Comm.htm:cool: