Grrr... NumericUpDown cursor

  • Thread starter Thread starter Chuck Bowling
  • Start date Start date
C

Chuck Bowling

ok, I've scoured VS help, the Internet, books... I really hate the idea that
I might have to end up creating an updown control from scratch just because
I can't figure out how to turn off the %$@# text cursor...

Is it possible to turn that damn blinking cursor off? I've tried everything
I can think of...
 
Chuck said:
ok, I've scoured VS help, the Internet, books... I really hate the idea that
I might have to end up creating an updown control from scratch just because
I can't figure out how to turn off the %$@# text cursor...

Is it possible to turn that damn blinking cursor off? I've tried everything
I can think of...

Are you talking about a _cursor_ (mouse pointer)

*or*

the _carat_ (text insertion point)???

Your post isn't clear as to what you are really referring to.
 
Yeah, you must be talking about the caret. The NumericUpDown is a composite
control made up of some smaller controls (actually it paints itself, and is
really only
made up of the one text-box, plus the custom drawing of the up-down arrows). The
act of turning off the caret would be equivalent to turning off the TextBox
control's
caret.

I use the thing all the time, and I don't even notice the caret. You must be
heavily
against the blinking ;-) To answer shortly though, there is no way to turn the
caret
off within managed code. There is probably a decent Win32 API, but then getting
the TextBox is going to be an issue.
 
ty Justin. For me the blinking is akin to water dripping in a leaky
faucet... It's making me crazy... :D
 
Sorry, my bad. I assumed that calling it a text cursor as opposed to a mouse
cursor would be clear...

Anyway, I'm referring to the _carat_...
 
ok, I've scoured VS help, the Internet, books... I really hate the idea that
I might have to end up creating an updown control from scratch just because
I can't figure out how to turn off the %$@# text cursor...

Have you looked at the ReadOnly property? If you set it to true, the
value can be changed only with the up/down buttons, not by typing text
in the control. Not sure if the text cursor goes away, though...
 
Yes, I tried ReadOnly. The cursor doesn't go away. But, thanks for the
suggestion...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top