473,549 Members | 2,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Spin Buttons

I have autorepeat turned on for a command button that increments the value in a
textbox. When I click on the button and hold the mouse button down, the value in
the textbox does not change. When I release the mouse button, the value in the
textbox changes to where it incremented depending on the length of time I held
the mouse button down. How do I make the value "spin" in the textbox while I
hold the mouse button down?

Thanks!

Mark
Nov 12 '05 #1
2 6899
On Tue, 06 Jan 2004 05:06:00 GMT, "Mark" <mm*****@earthl ink.net> wrote:
I have autorepeat turned on for a command button that increments the value in a
textbox. When I click on the button and hold the mouse button down, the value in
the textbox does not change. When I release the mouse button, the value in the
textbox changes to where it incremented depending on the length of time I held
the mouse button down. How do I make the value "spin" in the textbox while I
hold the mouse button down?

Thanks!

Mark


Form performance reasons, Access does not update the display while a VBA
function is executing. You can force it to update the display by calling the
..Repaint method of the form.

Also, using a button for a spin control is annoying for 2 reasons. First, the
button takes the focus away from the control being "spun", which is hard to
get arouns. Second, the button border is too fat for such a small button. A
better thing to use is an Image or Label control. Either of these control
types can receive mouse events without tking the focus away from the control
being spun. Unfortunately, I don't think you can use auto-repeat with these
controls, so you have to use a timer even to spin while the mouse button is
down on the spinner.
Nov 12 '05 #2
There are samples of SpinButtons in this sample here:
http://www.lebans.com/formdimensions.htm

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Mark" <mm*****@earthl ink.net> wrote in message
news:Ym******** *******@newsrea d1.news.atl.ear thlink.net...
I have autorepeat turned on for a command button that increments the value in a textbox. When I click on the button and hold the mouse button down, the value in the textbox does not change. When I release the mouse button, the value in the textbox changes to where it incremented depending on the length of time I held the mouse button down. How do I make the value "spin" in the textbox while I hold the mouse button down?

Thanks!

Mark


Nov 12 '05 #3

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

Similar topics

1
1531
by: Ghost | last post by:
Hi all I hope in an answer that could help me about my problem. I'm creating a GUI in Visual C++ .NET and I'd like to split the "Spin Control" in two buttons, has someone some ideas to do this? The normal spin control ------ | up | ------- |down|
2
1880
by: Drily Lit Raga | last post by:
VC++ calls this a spin control, I think VB calls it an updown? Anyway it is the control with two arrows on the right for entering numeric values. I have another text control that uses the spin control contents to form a file name, i.e. spin #1 is page # and spin #2 is total number of pages, and the text control spells it out as
1
2204
by: adicss | last post by:
Hello! I am new in Javascript programming so I don't have any experience in writing or understanding scripts. I have found a 3D Spin Menu at the web page http://javascriptkit.com/script/script2/spinmenu.shtml and i want to involve it into my page with one difference. I want to replace the rotating Text boxes with Photos or Flash Documents....
3
1408
by: mpaine | last post by:
Hi everyone, I wrote some code and it seems ok to me but since it is going into a high-use production environment, I wanted some peer-review if possible. Basically, I wanted a way to know if an object is being "reset" and only allow one thread to reset it at any one time. This is what I came up with: Private _lockResetSync As Object =...
3
2845
by: =?Utf-8?B?Q2hyaXM=?= | last post by:
I have VS 2005 (C#) There is a control numericUpDown so you can spin numeric values. What I need to do is to spin date (+- one day). How to do that? Moreover, I want a user to type the date as well. So the control should validate the typed values on the fly. Is it possible?
0
1157
by: devour | last post by:
i am using glade+pygtk+python ,what i wanna do is get a float type number from user, make some mathematical operations using python then output the result using glade. i tried text entry but i found it only accepts strings so i used spin button and it worked but the problem is it takes &displays only integers though i used get value () & set...
2
2296
by: Steve Kershaw | last post by:
Hello, I've been trying to spin off an Excel worksheet on the client from an ASP.NET website. I was successfull in displaying an Excel worksheet on the client in a test website (not using IIS, but using Visual Studio 2005) with the following code: protected void Button1_Click(object sender, EventArgs e) { Application exc = new...
0
1477
by: CharlieC | last post by:
I seem to have an issue with the MonthCalendar control. When I click on the year, to change the year, the dates not not seem to redraw properly, especially if I go back in time. All seems Ok if I use the Month navigation buttons. It seems to be ok if I go foward in time. Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600)...
4
12356
by: Stewart Berman | last post by:
Is there a control equivalent to the old Spin control? The one with two hour heads and an optional textbox in the middle? The closest I can find is the NumericUpDown control and it's not the same as the Spin control. I just want a sizeable up/down arrow pair.
0
7446
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7715
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. ...
0
7956
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7808
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6040
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...
0
5087
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...
0
3498
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...
1
1935
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
0
757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.