Click here to Skip to main content
15,890,506 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How can I correct these 5 lines of code in vb.net Pin
Fawxes18-Feb-08 4:15
Fawxes18-Feb-08 4:15 
GeneralPrepare an Evaluation Copy of a Windows based Application which is developed by using VB .Net 2003 and SQL Server2000 Pin
joby10017-Feb-08 0:50
joby10017-Feb-08 0:50 
GeneralRe: Prepare an Evaluation Copy of a Windows based Application which is developed by using VB .Net 2003 and SQL Server2000 Pin
Mark Churchill17-Feb-08 1:45
Mark Churchill17-Feb-08 1:45 
GeneralRe: Prepare an Evaluation Copy of a Windows based Application which is developed by using VB .Net 2003 and SQL Server2000 Pin
plural17-Feb-08 7:36
plural17-Feb-08 7:36 
GeneralRe: Prepare an Evaluation Copy of a Windows based Application which is developed by using VB .Net 2003 and SQL Server2000 Pin
joby10017-Feb-08 18:52
joby10017-Feb-08 18:52 
Questionfile transfer Pin
Agbaria Ahmad16-Feb-08 22:02
Agbaria Ahmad16-Feb-08 22:02 
AnswerRe: file transfer Pin
Sam Xavier29-Apr-08 18:58
Sam Xavier29-Apr-08 18:58 
GeneralChecked List Box Errors On Start-up [modified] Pin
AAGTHosting16-Feb-08 15:32
AAGTHosting16-Feb-08 15:32 
I have a checked list box that loads the first and last name into the list box in the displaymember property. Then it loads the id into the value member property. When I complile the program it wont load the first and last name.

If I comment the code to only show the first name the it displays the following in the checked list box instead of the name.

System.Data.DataRowView

It also shows the following error in a message box.

Conversion from string "clbTeachers.SelectedIndex" to type Integer is not valid.

When I click ok on the message box it displays the name and the same message box comes up again. When I click OK then the id number displays in the list box instead of the name.

I changed selectedIndex to selectedValue and removed some quotes that I missed and I stopped getting the conversion error. Now I get an error that says specified cast is not valid.

Why is this happening?

modified on Saturday, February 16, 2008 9:39 PM

GeneralRe: Checked List Box Errors On Start-up Pin
Luc Pattyn16-Feb-08 15:43
sitebuilderLuc Pattyn16-Feb-08 15:43 
GeneralRe: Checked List Box Errors On Start-up Pin
AAGTHosting16-Feb-08 15:51
AAGTHosting16-Feb-08 15:51 
GeneralRe: Checked List Box Errors On Start-up Pin
Luc Pattyn16-Feb-08 16:44
sitebuilderLuc Pattyn16-Feb-08 16:44 
GeneralRe: Checked List Box Errors On Start-up Pin
AAGTHosting16-Feb-08 16:55
AAGTHosting16-Feb-08 16:55 
GeneralRe: Checked List Box Errors On Start-up Pin
Luc Pattyn17-Feb-08 2:03
sitebuilderLuc Pattyn17-Feb-08 2:03 
GeneralRe: Checked List Box Errors On Start-up Pin
AAGTHosting16-Feb-08 15:53
AAGTHosting16-Feb-08 15:53 
QuestionIncreasing list height of AutoCompleteTextBox Pin
xbiplav16-Feb-08 13:44
xbiplav16-Feb-08 13:44 
GeneralRe: Increasing list height of AutoCompleteTextBox Pin
Christian Graus16-Feb-08 14:19
protectorChristian Graus16-Feb-08 14:19 
GeneralRe: Increasing list height of AutoCompleteTextBox Pin
xbiplav16-Feb-08 14:50
xbiplav16-Feb-08 14:50 
GeneralThread was being aborted error Pin
jzonthemtn16-Feb-08 8:02
jzonthemtn16-Feb-08 8:02 
GeneralRe: Thread was being aborted error Pin
Guffa16-Feb-08 12:10
Guffa16-Feb-08 12:10 
GeneralRe: Thread was being aborted error Pin
jzonthemtn16-Feb-08 12:23
jzonthemtn16-Feb-08 12:23 
GeneralRe: Thread was being aborted error Pin
Luc Pattyn16-Feb-08 12:36
sitebuilderLuc Pattyn16-Feb-08 12:36 
GeneralRe: Thread was being aborted error Pin
Guffa16-Feb-08 14:37
Guffa16-Feb-08 14:37 
GeneralRe: Thread was being aborted error Pin
Luc Pattyn16-Feb-08 14:47
sitebuilderLuc Pattyn16-Feb-08 14:47 
QuestionSub main doesn't run? Pin
cstrader23216-Feb-08 5:58
cstrader23216-Feb-08 5:58 
AnswerRe: Sub main doesn't run? Pin
Steven J Jowett16-Feb-08 11:10
Steven J Jowett16-Feb-08 11:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.