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

Visual Basic

 
AnswerRe: how to make a trial software Pin
SimonS11-Jun-02 6:10
SimonS11-Jun-02 6:10 
GeneralRe: how to make a trial software Pin
adol11-Jun-02 6:30
adol11-Jun-02 6:30 
AnswerRe: how to make a trial software Pin
Nick Parker11-Jun-02 18:05
protectorNick Parker11-Jun-02 18:05 
GeneralRe: how to make a trial software Pin
13-Jun-02 5:03
suss13-Jun-02 5:03 
GeneralRe: how to make a trial software Pin
SHaroz13-Jun-02 6:51
SHaroz13-Jun-02 6:51 
GeneralRe: how to make a trial software Pin
Nick Parker13-Jun-02 8:32
protectorNick Parker13-Jun-02 8:32 
GeneralCursor Question Pin
Nick Parker7-Jun-02 10:35
protectorNick Parker7-Jun-02 10:35 
GeneralRe: Cursor Question Pin
Jeremy Falcon11-Jun-02 5:22
professionalJeremy Falcon11-Jun-02 5:22 
Because its param isn't a boolean to just toggle the cursor on and off.

From MSDN about the param...

Specifies whether the internal display counter is to be incremented or decremented. If bShow is TRUE, the display count is incremented by one. If bShow is FALSE, the display count is decremented by one.

So, ShowCursor False isn't guaranteed to hide the cursor. If another application passed it True a couple of times it won't hide it. If the internal counter is 0 or greater the cursor will remain visible and it hides if it's -1, so check the return value of ShowCursor() and keep on calling it until the counter is -1.

That's why the timer method worked. It ensured the internal counter was -1 by calling it over and over again. The thing is though, once it's hidden you can stop calling ShowCursor() to avoid wasting CPU cycles.

Jeremy L. Falcon<nobr>
Homepage : Sonork = 100.16311

"It was a blind man who taught me how to see." - Aerosmith

GeneralRe: Cursor Question Pin
Nick Parker11-Jun-02 5:16
protectorNick Parker11-Jun-02 5:16 
GeneralRe: Cursor Question Pin
Jeremy Falcon11-Jun-02 5:54
professionalJeremy Falcon11-Jun-02 5:54 
GeneralRe: Cursor Question Pin
Nick Parker11-Jun-02 5:51
protectorNick Parker11-Jun-02 5:51 
GeneralWord Macro Pin
laphijia7-Jun-02 7:44
laphijia7-Jun-02 7:44 
GeneralRe: Word Macro Pin
Rama Krishna Vavilala7-Jun-02 7:48
Rama Krishna Vavilala7-Jun-02 7:48 
GeneralRe: Word Macro Pin
laphijia7-Jun-02 7:57
laphijia7-Jun-02 7:57 
GeneralRe: Word Macro Pin
laphijia7-Jun-02 8:02
laphijia7-Jun-02 8:02 
GeneralRe: Word Macro Pin
Rama Krishna Vavilala7-Jun-02 8:22
Rama Krishna Vavilala7-Jun-02 8:22 
GeneralRe: Word Macro Pin
laphijia7-Jun-02 8:37
laphijia7-Jun-02 8:37 
GeneralPermission Denied Pin
jlaica6-Jun-02 6:53
jlaica6-Jun-02 6:53 
GeneralRe: Permission Denied Pin
Nick Parker7-Jun-02 6:09
protectorNick Parker7-Jun-02 6:09 
GeneralRe: Permission Denied Pin
Gethsus13-Jun-02 3:58
Gethsus13-Jun-02 3:58 
Questionhow to use the SVGControl.dll in VB6 Pin
5-Jun-02 2:32
suss5-Jun-02 2:32 
AnswerRe: how to use the SVGControl.dll in VB6 Pin
6-Jun-02 2:21
suss6-Jun-02 2:21 
GeneralEvents in VBScript Pin
Hans Ruck4-Jun-02 2:52
Hans Ruck4-Jun-02 2:52 
GeneralRe: Events in VBScript Pin
4-Jun-02 8:47
suss4-Jun-02 8:47 
QuestionHey...can you use radio buttons on a menu? Pin
1-Jun-02 23:01
suss1-Jun-02 23:01 

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.