473,405 Members | 2,261 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,405 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 1490
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
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...

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.