473,387 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Why don't my DomainUpDown controls behave correctly?

I have used the DomainUpDown control in my UI to allow a user
to switch units from KB to MB to GB.
The initial text is set to MB.

When the form presents and I click on the upper arrow of the spin portion of
the control
nothing happens.

If I click on the down arrow a couple of times it changes selection and then
the up and down work
correctly.

I have seen this behavior in the simplest example I could produce.
A WinForm with nothing on it but a DomainUpDown.
There are three items defined for the control: KB,MB,GB.
I set the text in the designer to MB.

Is this control just plain broke?
Aug 17 '05 #1
1 1488
Hi,

"Tim Osborne" <Ti*********@xcellenet.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I have used the DomainUpDown control in my UI to allow a user
to switch units from KB to MB to GB.
The initial text is set to MB.
The DomainControl starts with nothing selected (SelectedIndex = -1), so you
can use the Text property to display something that's not in the list, like
"Please select something ....".

But if you want the DomainControl to start with a certain item selected,
then you don't need to set the Text property, but set SelectedIndex to the
index of the item you want, in your case that would be 1 since it's 0 based
:

Form_load (....)
{
domainUpDown1.SelectedIndex = 1; // MB
}
HTH,
Greetings


When the form presents and I click on the upper arrow of the spin portion
of the control
nothing happens.

If I click on the down arrow a couple of times it changes selection and
then the up and down work
correctly.

I have seen this behavior in the simplest example I could produce.
A WinForm with nothing on it but a DomainUpDown.
There are three items defined for the control: KB,MB,GB.
I set the text in the designer to MB.

Is this control just plain broke?

Aug 17 '05 #2

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

Similar topics

0
by: Paul C | last post by:
Hello, everybody. I am having trouble running some of the VS.NET samples, specifically the CarSelector web app, which is very simple. The symptom is that the web controls (drop down listboxes and...
0
by: Bamse | last post by:
Hello! is there a way to enable individual arrows in DomainUpDown Control? i want to disable up/down arrows when the current item in the control reaches certain value. Thank you, Daniel
1
by: slamb | last post by:
I was hoping someone could describe how DomainUpDown control, ReadOnly=true, is supposed to react to key input. I'm using a DomainUpDown to contain a list of grades, A, B, C, D, F. When the...
0
by: Frnak McKenney | last post by:
I just spent four hours trying to find out why the checkboxes representing a bound DataGrid DataGridBoolColumn weren't acting properly. When the Form containing the DataGrid was initialized the...
7
by: dj Bass | last post by:
simple, they don't like things that restrict the server-side controls... and when it comes to frames, you need client side stuff and that stuff's up the asp.net strategy. right or wrong?
1
by: Abu Haider | last post by:
It took a while to find out the actual problem. I found built in server controls won't render properly in the latest version of Netscape and Mozilla etc. I thought they don't render css correctly....
1
by: Li Pang | last post by:
Hi, I used a domainUpDown control to populate number starts from 0 increasing by a step of 10. I want to know how to generate the value (integer) programatically, i.e., when clciking or pressing...
1
by: Tim Osborne | last post by:
I have used the DomainUpDown control in my UI to allow a user to switch units from KB to MB to GB. The initial text is set to MB. When the form presents and I click on the upper arrow of the...
6
by: gerbski | last post by:
Hi all, I am relatively new to ADO, but up to now I got things working the way I wanted. But now I've run into somethng really annoying. I am working in MS Access. I am using an Access...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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...

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.