Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 190
  • Last Modified:

Using a listbox to select as you scroll

I am using a listbox to set the number of copies to print of a report.
I would like to have the value showing rather than the value selected to be the value used.
Do I have the selected value programatically change when a scroll button is pushed or is there a method of determining what is showing vs what is selected.
Cheers,
Rob
0
Nobert
Asked:
Nobert
  • 2
1 Solution
 
shanesuebsahakarnCommented:
I'm not sure I understand why you are using a list box. What values does it store ?

You can refer to the displayed value by using:
Me!MyListBox.Column(1) (if the displayed value is the second column of the listbox data)
0
 
Arthur_WoodCommented:
what you want to use is a SprintButton control, and an associated TextBox.  Make the orientation VERTICAL.

In the SpinButton_Change() event:

txtValue.Text = SpinButton1.Value

the value is increased when the UP arrow or the SpinButton is clicked, and decreased when the DOwn Arrow of the SpinButton is clicked.  You can set the Upper and Lower limits for the SpinButton, either in code, or as  design-time Properties (Max and Min values)

AW
0
 
NobertAuthor Commented:
Thanks. Took a while to find the spinbutton control and the event is a spinbutton_updated() but it all works now.
0
 
Arthur_WoodCommented:
good to see that you figured it out.

AW
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now