vb6 - Running an invisible form on the foreground -
i'm wondering how able run invisible form in foreground (meaning runs wherever heck might in computer). i've tried playing around formless applications using modules unfortunately nothing happens. i've tried doing
form1.visible = false form1.windowstate = 2 (maximized)
but not run in foreground (it if it's focused on) , windows "warning error" sort of sound (the "ehh." sort of sound in monotone) keeps playing when hit key. coding tried out in case want know:
private sub form1_keypress(keyascii integer, shift integer) if keyascii <> 0 playsound app.path & "\sounds\ding.wav", byval 0&, snd_filename or snd_async end sub
and of course using windows apis playing wav files (winnm.dll or believe)
my main question (which means want answered) how possibly make run anywhere on computer , not make "ehh." monotone sounds. because not wanted achieve.
oh, , quick update, i've made play proper sound (hooray!). disregard latter part of question.
please tell why want this? trying accomplish?
have @ following api:
'api keeping form on top private declare function setwindowpos lib "user32" (byval hwnd long, byval hwndinsertafter long, byval x long, byval y long, byval cx long, byval cy long, byval wflags long) long
for example call follows:
'put form on top screen setwindowpos me.hwnd, -1, 0, 0, .width, .height, 3 end 'screen
Comments
Post a Comment