Bob Tesch

I am having problems with a domainupdown control. No matter what I try, the users have to click on the up/down buttons several times before the control begins to respond. Any help would be appreciated.

Bob



Re: .NET Base Class Library DomainUpDown control

Feng Chen - MSFT

Hi Bob,

Based on my standing, what you¡¯re talking about is the DomainUpDown Class which represents a Windows spin box (also known as an up-down control) that displays string values. If I have misunderstood you, please feel free to let me know.

To troubleshoot this issue, we really need the source code to reproduce the problem, so that we can investigate the issue in house. It is not necessary that you send out the complete source of your project. We just need a simplest sample to reproduce the problem. You can remove any confidential information or business logic from it.

Thanks!






Re: .NET Base Class Library DomainUpDown control

Bob Tesch

Chen,

I really have no code with that control. The spinner is dropped on the form during the design and I have set the "Items" collection to have the values 1 - 12. Each of those on a new line per the instructions. The at runtime when the user clickes on either of the spinner buttons, they have to click 2 - 3 times, before the buttons begin to react and navigate up and/or down through the collection of values. Maybe that it the problem, no code. I could not find any samples on MSDN that would hint to specific properties that had to be set at runtime to ensure proper operation.

Bob





Re: .NET Base Class Library DomainUpDown control

JohnWein

Are you sure that it isn't your form that is unresponsive Do you have another control that responds immediately





Re: .NET Base Class Library DomainUpDown control

Bob Tesch

There are several other controls on the form and all react normally. In fact this spinner control seems to be accepting the clicks, just not navigating through the values for a couple of clicks. I can recreate the behavior in debug. 95% of my experience with spinner controls has been with VB6. Which is why I am asking the question, "Have I missed something in instantiating the control "




Re: .NET Base Class Library DomainUpDown control

JohnWein

This works as I would expect it to:

Code Snippet

Public Class Form1

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

For I As Integer = 0 To 11

DomainUpDown1.Items.Add("Item " & I.ToString)

Next

DomainUpDown1.SelectedIndex = 5

End Sub

End Class





Re: .NET Base Class Library DomainUpDown control

Bob Tesch

Thank you. That fixed the behavior. Basically you have to add the values to a domainupdown programmatically when the control is instantiated.