English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i have to make a program that convertor that takes all the score i put in and then it needs to take them from a listbox and it needs to calculate the mean and then display it in a text box!

2006-11-06 01:01:45 · 3 answers · asked by will n 1 in Computers & Internet Programming & Design

3 answers

The easiest way to do it is:

txtName.Text = lstNames.List(lstNames.ListIndex)

The ListIndex property of a Listbox has the currently selected item in the Listbox.

The List() property gives the contents of what is at position x in the listbox

Simple!

2006-11-07 02:54:24 · answer #1 · answered by Anonymous · 0 0

my visual basic skills have gotten rusty but simply take the values you entered (small text boxes?), have it make the necessary calculations, and have the results textbox value equal the output.

2006-11-06 09:07:12 · answer #2 · answered by free_indeed2000 4 · 0 0

Assuming this is VB6 (.NET may be similar) you need to do this to move it directly:

Textbox1.Text = List1.List(Integer listposition)

2006-11-06 09:11:30 · answer #3 · answered by Nick W 2 · 0 0

fedest.com, questions and answers