473,803 Members | 4,591 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Grrr... NumericUpDown cursor

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...
Nov 16 '05 #1
6 3735
Chuck Bowling wrote:

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.
Nov 16 '05 #2
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.

--
Justin Rogers
DigiTec Web Consultants, LLC.
Blog: http://weblogs.asp.net/justin_rogers

"Julie" <ju***@nospam.c om> wrote in message news:41******** *******@nospam. com...
Chuck Bowling wrote:

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.

Nov 16 '05 #3
ty Justin. For me the blinking is akin to water dripping in a leaky
faucet... It's making me crazy... :D

"Justin Rogers" <Ju****@games4d otnet.com> wrote in message
news:O0******** ******@tk2msftn gp13.phx.gbl...
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.

--
Justin Rogers
DigiTec Web Consultants, LLC.
Blog: http://weblogs.asp.net/justin_rogers

"Julie" <ju***@nospam.c om> wrote in message
news:41******** *******@nospam. com...
Chuck Bowling wrote:

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.


Nov 16 '05 #4
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_...
"Julie" <ju***@nospam.c om> wrote in message
news:41******** *******@nospam. com...
Chuck Bowling wrote:

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.

Nov 16 '05 #5
On Wed, 10 Nov 2004 14:04:34 -0500, "Chuck Bowling"
<ch**********@s bcglobal-NO-SPAM.net> wrote:
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...
--
http://www.kynosarges.de
Nov 16 '05 #6
Yes, I tried ReadOnly. The cursor doesn't go away. But, thanks for the
suggestion...

"Christoph Nahr" <ch************ @kynosarges.de> wrote in message
news:km******** *************** *********@4ax.c om...
On Wed, 10 Nov 2004 14:04:34 -0500, "Chuck Bowling"
<ch**********@s bcglobal-NO-SPAM.net> wrote:
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...
--
http://www.kynosarges.de

Nov 16 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
9925
by: | last post by:
Hi, I am setting the NumericUpDown .Value property and the ValueChanged event is NOT being fired. Does this ONLY get fired when I change it on the UI and not programatically? Thanks
1
5093
by: Tantra Veda | last post by:
Hello C# gurus, I have a question about finding cursor position in NumericUpDown control. On my form I have a numericUpDown control with 2 decimal places. I want to increment value in the numeric box by 1 if my cursor is in front of the decimal point. If the cursor is after the decimal point, I want to increment the value by 0.1. How do I accomplish this? Is there a way to find out the cusror position in the control relative to decimal...
10
7146
by: Bonj | last post by:
I'm using a number of NumericUpDown controls on my form, which controls printer settings such as number of pages. However I want to override one of the default behaviours of the control, namely when it is tabbed into (selected), I want the number that is displayed in it to become selected, so the user can just type straight over it. For this I'm using the event handler: private void UpDown_Enter(object sender, System.EventArgs e) {...
0
1438
by: Koert | last post by:
Hi In the NumericUpDown control I have to detect that Tab was pressed so I have inherited the NumericUpDown and overroden the PreProcessMessage function. In the DateTimePicker (for example) this works fine but not in the NumericUpDown. It seams that the debugger does not access the PreProcessMessage function. Is this a bug in the NumericUpDown control? Is there an other way to detect that the Tab was pressed in the control thanks, Koer
3
30177
by: abc my vclass | last post by:
My win-form have many numericupdown controls to applied. But numericupdown control don't like textbox, text box control can automatic selected text when got focus. Is there any method can let me set all numericupdown autoselect text when gotfocus?
4
4691
by: illegal.prime | last post by:
Hey all, I have a NumericUpDown control on a Panel or potentially a Form that have AutoScroll enabled. When the NumericUpDown is active I would like the Form/Panel/whatever not to scroll when I scroll the value in the NumericUpDown. I can add an additional handler to the MouseWheel event on the NumericUpDown, but how do I stop the Form/Panel/Whatever from scrolling when the value is changing in the NumericUpDown?
5
2182
by: Len Weltman | last post by:
I am trying to pass a NumericUpDown object into a class method using Visual Studio 2005, but the control type is not found in Intellisense and the type declaration is flagged as an error. Here is a code sample (which doesn't work): *** Begin code ***
2
2781
by: Stephan Zaubzer | last post by:
Hi all, I encountered a problem with NumericUpDown yesterday and managed to reproduce the error with a very easy examle. I have a Windows Application with only one Form, which contains only one NumericUpDown control and nothing else. This is the only code I wrote: (everything else was done with the designer of Visual Studio).
2
2394
by: =?Utf-8?B?U2hhcm9u?= | last post by:
Hello experts, I posted a disturbing question in here: http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.dotnet.languages.csharp&mid=dedc665f-91c0-4fa4-a103-a98a6808759c But no one have answered it. Is not clear? or maybe it a Framework bug? Please help.
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10548
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10295
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9125
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7604
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6842
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.