Click here to Skip to main content
16,006,065 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVB 6 Pin
Khalefa_1313-Jul-06 20:18
Khalefa_1313-Jul-06 20:18 
AnswerRe: VB 6 Pin
myfend_liang13-Jul-06 20:57
myfend_liang13-Jul-06 20:57 
QuestionDataBindings do not appear to function properly Pin
TJO113-Jul-06 19:28
TJO113-Jul-06 19:28 
Questioncan commandbuilder generate incorrect sql statement? Pin
Agus Budianto13-Jul-06 17:52
Agus Budianto13-Jul-06 17:52 
AnswerRe: can commandbuilder generate incorrect sql statement? Pin
Dave Kreskowiak14-Jul-06 0:51
mveDave Kreskowiak14-Jul-06 0:51 
GeneralRe: can commandbuilder generate incorrect sql statement? Pin
Agus Budianto14-Jul-06 4:36
Agus Budianto14-Jul-06 4:36 
Questionexcel col width changin Pin
_tasleem13-Jul-06 16:47
_tasleem13-Jul-06 16:47 
QuestionListView in VB.Net Pin
khwo13-Jul-06 16:23
khwo13-Jul-06 16:23 
Hi all,

I am using the following code for my searching function, but when I try to run it, it are allow me to search the item for column 1, but I want to search the item for column 2 as well columun 3, what mistake I have make, can anyone give me some advice on this?

This is my code:,
Private Sub ListView_Master_ColumnClick(ByVal sender As Object, ByVal e As System.Windows.Forms.ColumnClickEventArgs) Handles ListView_Master.ColumnClick

Dim exactMatch As Boolean
Dim mySearchText As String

Select Case e.Column
Case 0 'column one BOM ID
'Search for item at column 0 when user click on column 0
'MsgBox(e.Column)

Case 1 'column two Cust Part # = BOM
'Search for item at column 1 when user click on column 1

MsgBox(e.Column)

mySearchText = Trim(InputBox("Please enter your Customer Part #", "Search Product Master Entry Data"))

For Each itm As ListViewItem In ListView_Master.Items
If exactMatch Then
If itm.Text = mySearchText Then
' an exact match was found ...
MsgBox("Exact")
End If
Else
mySearchText &= "*"
If itm.Text Like mySearchText Then
' a partial match was found ...
MsgBox("Partial")
End If
End If
Next

Case 2 'column three Child Part#A = CodeAChild Part#B = CodeB
'Search for item at column 2 when user click on column 2
MsgBox(e.Column)

Case 3 'column three Child Part#B = CodeB
'Search for item at column 3 when user click on column 3

MsgBox(e.Column)

End Select

End Sub
AnswerRe: ListView in VB.Net Pin
Kschuler14-Jul-06 8:58
Kschuler14-Jul-06 8:58 
Questionregarding tabcontrol Pin
rcshek13-Jul-06 15:27
rcshek13-Jul-06 15:27 
AnswerRe: regarding tabcontrol Pin
Dave Sexton13-Jul-06 21:24
Dave Sexton13-Jul-06 21:24 
QuestionSystem.NullReferenceException Pin
andrew_dk13-Jul-06 12:36
andrew_dk13-Jul-06 12:36 
AnswerRe: System.NullReferenceException [modified] Pin
Dave Kreskowiak13-Jul-06 14:11
mveDave Kreskowiak13-Jul-06 14:11 
GeneralRe: System.NullReferenceException Pin
andrew_dk13-Jul-06 14:44
andrew_dk13-Jul-06 14:44 
GeneralRe: System.NullReferenceException Pin
Dave Kreskowiak13-Jul-06 15:31
mveDave Kreskowiak13-Jul-06 15:31 
GeneralRe: System.NullReferenceException Pin
andrew_dk16-Jul-06 16:28
andrew_dk16-Jul-06 16:28 
Questioncolor changing in .net Pin
_tasleem13-Jul-06 9:19
_tasleem13-Jul-06 9:19 
AnswerRe: color changing in .net Pin
Guffa13-Jul-06 12:21
Guffa13-Jul-06 12:21 
QuestionHow to split a wave file? Pin
sheikh7813-Jul-06 9:17
sheikh7813-Jul-06 9:17 
AnswerRe: How to split a wave file? Pin
Guffa13-Jul-06 12:30
Guffa13-Jul-06 12:30 
QuestionPopulating a comboBox with an ArrayList Pin
newbjohny13-Jul-06 8:31
newbjohny13-Jul-06 8:31 
AnswerRe: Populating a comboBox with an ArrayList Pin
Dave Kreskowiak13-Jul-06 10:32
mveDave Kreskowiak13-Jul-06 10:32 
GeneralRe: Populating a comboBox with an ArrayList Pin
newbjohny13-Jul-06 11:56
newbjohny13-Jul-06 11:56 
QuestionSQL SERVER Monitor Pin
MalikRizwan13-Jul-06 8:14
MalikRizwan13-Jul-06 8:14 
AnswerRe: SQL SERVER Monitor Pin
Duncan Edwards Jones13-Jul-06 22:03
professionalDuncan Edwards Jones13-Jul-06 22:03 

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.