Click here to Skip to main content
15,895,283 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: CODEDOM or EMIT to create Compact framework from regular frmwrk Pin
Dave Kreskowiak21-Nov-05 12:59
mveDave Kreskowiak21-Nov-05 12:59 
GeneralRe: CODEDOM or EMIT to create Compact framework from regular frmwrk Pin
Lo Rez22-Nov-05 2:59
Lo Rez22-Nov-05 2:59 
GeneralRe: CODEDOM or EMIT to create Compact framework from regular frmwrk Pin
Dave Kreskowiak22-Nov-05 15:17
mveDave Kreskowiak22-Nov-05 15:17 
Questionis there any method by which we can change RecordCount in VB??? Pin
Sushmadm21-Nov-05 2:50
Sushmadm21-Nov-05 2:50 
AnswerRe: is there any method by which we can change RecordCount in VB??? Pin
KaptinKrunch21-Nov-05 9:01
KaptinKrunch21-Nov-05 9:01 
QuestionVBSCRIPT Pin
marctonnard20-Nov-05 10:30
marctonnard20-Nov-05 10:30 
QuestionArrays Pin
chrischik20-Nov-05 9:31
chrischik20-Nov-05 9:31 
AnswerRe: Arrays Pin
Joshua Quick20-Nov-05 9:53
Joshua Quick20-Nov-05 9:53 
First, the following line does not make sense.

chrischik wrote:
If ComboBoxSelectType.SelectedItem Is Comedy Then


Keyword "Is" is used to check if 2 references refer to the same object. In this case, they're 2 completely different classes which will cause the above code to always evaluate False.
You see SelectedItem will return a String reference because that's what you added into the ComboBox in Form_Load. Comedy is an Array reference.

Second, I don't think you need to use an array at all in this case. It looks like you just want to add the selected ComboBox string into your ListBox. So, why not do this?

Private Sub ComboBoxSelectType_SelectedValueChanged(ByVal sender As Object, _
               ByVal e As System.EventArgs) Handles ComboBoxSelectType.SelectedValueChanged
   If (ComboBoxSelectType.SelectedIndex >= 0) Then
      ListBoxAvailableDVDs.Items.Add(ComboBoxSelectType.SelectedItem)
   End If
End Sub

AnswerRe: Arrays Pin
Briga20-Nov-05 23:27
Briga20-Nov-05 23:27 
GeneralRe: Arrays Pin
Joshua Quick21-Nov-05 4:44
Joshua Quick21-Nov-05 4:44 
Questiondictionary Pin
FaribaYousefi20-Nov-05 2:17
FaribaYousefi20-Nov-05 2:17 
AnswerRe: dictionary Pin
Joshua Quick20-Nov-05 10:19
Joshua Quick20-Nov-05 10:19 
Questionhow to scrool in datagrid Pin
asa141320-Nov-05 1:33
asa141320-Nov-05 1:33 
QuestionReal-time graphing Pin
devilhaunts19-Nov-05 11:36
devilhaunts19-Nov-05 11:36 
AnswerRe: Real-time graphing Pin
Joshua Quick20-Nov-05 9:58
Joshua Quick20-Nov-05 9:58 
GeneralRe: Real-time graphing Pin
devilhaunts26-Nov-05 4:35
devilhaunts26-Nov-05 4:35 
GeneralRe: Real-time graphing Pin
Joshua Quick26-Nov-05 15:44
Joshua Quick26-Nov-05 15:44 
Questionrelation between sql server and vb.net app Pin
hamidrezaghorouri19-Nov-05 0:13
hamidrezaghorouri19-Nov-05 0:13 
QuestionHeader with combo Pin
THEMYTH18-Nov-05 23:34
THEMYTH18-Nov-05 23:34 
AnswerRe: Header with combo Pin
Joshua Quick20-Nov-05 10:43
Joshua Quick20-Nov-05 10:43 
GeneralRe: Header with combo Pin
THEMYTH20-Nov-05 11:33
THEMYTH20-Nov-05 11:33 
QuestionAny Idea about vb.net remoting??? Pin
Sufyan_shani18-Nov-05 21:44
Sufyan_shani18-Nov-05 21:44 
AnswerRe: Any Idea about vb.net remoting??? Pin
Joshua Quick20-Nov-05 10:32
Joshua Quick20-Nov-05 10:32 
QuestionPrint Form Pin
himanshu_softin18-Nov-05 21:24
himanshu_softin18-Nov-05 21:24 
Questionlogin form Pin
himanshu_softin18-Nov-05 21:20
himanshu_softin18-Nov-05 21:20 

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.