XardasLord
XardasLord

Reputation: 1937

How to create inputbox which contains a list

I want to select a value from a list in inputbox. Something like that:

Dim test As String
test = InputBox("Here I want to have a list")

I don't know how to do that. Or what should use instead of InputBox?

Upvotes: 1

Views: 195

Answers (3)

tinstaafl
tinstaafl

Reputation: 6948

I would suggest a ComboBox which is designed to select an item and display it in a separate area. Put it in a Modal Form and you can replicate what you get from an InputBox.

Upvotes: 0

Shawpnendu
Shawpnendu

Reputation: 15

Yes i also suggest ListBox Control.... Please read below Article on ListBox Control: http://www.c-sharpcorner.com/uploadfile/abhikumarvatsa/listbox-control-in-asp-net3/

So that you can understand why we suggest ListBox Control.

Upvotes: 1

DineshKumar
DineshKumar

Reputation: 487

You can use ListBox control which is available in .NET

This article might be useful for you. http://www.aspdotnet-suresh.com/2010/12/how-to-move-listitems-from-one-listbox.html

Upvotes: 1

Related Questions