Click here to Skip to main content
16,005,697 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: please help Pin
Rizwan Bashir16-Jul-06 22:01
Rizwan Bashir16-Jul-06 22:01 
GeneralRe: please help Pin
harish13916-Jul-06 23:48
harish13916-Jul-06 23:48 
AnswerRe: please help Pin
PlayByTheRules16-Jul-06 23:18
PlayByTheRules16-Jul-06 23:18 
QuestionParametrise stored procedure Pin
Sasmi16-Jul-06 20:25
Sasmi16-Jul-06 20:25 
AnswerRe: Parametrise stored procedure Pin
Dave Kreskowiak17-Jul-06 1:39
mveDave Kreskowiak17-Jul-06 1:39 
Questionsetting "Allow service to interact with the desktop" property through coding in windows service [modified] Pin
Kapil Thakur16-Jul-06 20:11
Kapil Thakur16-Jul-06 20:11 
AnswerRe: setting "Allow service to interact with the desktop" property through coding in windows service Pin
Dave Kreskowiak17-Jul-06 1:34
mveDave Kreskowiak17-Jul-06 1:34 
QuestionSearching function at ListView by using VB.Net Pin
khwo16-Jul-06 16:18
khwo16-Jul-06 16:18 
Hi All,

I’m using the following coding for my searching function at listview, but I facing some problem here, if I use this code I only able to search the item at column 0 for the listview. But for my case, I want to let user click on the header of the column then the user only can key in the data for that column they select, what mean is if user click on the column 0 at the header of the listview then user only can search what ever data appear at the column 0 for the listview. As well for column 1, column 2 for the listview. The following coding only allow me to search the data at column 0 even I use the select case for the column click. What mistake I have made? Can anyone give me some advice on this? Thanks.

This is my coding for the searching function at lisview:-


Private Sub ListView_Master_ColumnClick(ByVal sender As Object, ByVal e As System.Windows.Forms.ColumnClickEventArgs) Handles ListView_Master.ColumnClick

Dim Search_Code As String
Dim exactMatch As Boolean
Dim mySearchText As String

Select Case e.Column
Case 0 'column one BOM ID

'MsgBox(e.Column)

Case 1 'column two Cust Part # = BOM

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
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")
'ListView_Master.Select()
'ListView_Master.Focus()
End If
End If
Next

Case 2 'column three Child Part#A = CodeAChild Part#B = CodeB
MsgBox(e.Column)

Case 3 'column three Child Part#B = CodeB
MsgBox(e.Column)

End Select

End Sub

QuestionGetting a row count from a text file Pin
John Waclawski16-Jul-06 13:02
John Waclawski16-Jul-06 13:02 
AnswerRe: Getting a row count from a text file Pin
Dave Kreskowiak16-Jul-06 15:22
mveDave Kreskowiak16-Jul-06 15:22 
QuestionSearch an array [modified] Pin
crash89316-Jul-06 10:27
crash89316-Jul-06 10:27 
AnswerRe: Search an array Pin
Keith Malwitz16-Jul-06 18:46
Keith Malwitz16-Jul-06 18:46 
GeneralRe: Search an array Pin
crash89317-Jul-06 8:24
crash89317-Jul-06 8:24 
AnswerRe: Search an array Pin
Werries17-Jul-06 8:53
Werries17-Jul-06 8:53 
QuestionImport Text File into Sql Server 2000 Pin
_mubashir16-Jul-06 9:14
_mubashir16-Jul-06 9:14 
AnswerRe: Import Text File into Sql Server 2000 Pin
amfy18-Jul-06 4:34
amfy18-Jul-06 4:34 
QuestionOffice-like menu... Pin
Agus Budianto16-Jul-06 4:51
Agus Budianto16-Jul-06 4:51 
AnswerRe: Office-like menu... Pin
The ANZAC16-Jul-06 21:40
The ANZAC16-Jul-06 21:40 
GeneralRe: Office-like menu... Pin
Agus Budianto18-Jul-06 0:15
Agus Budianto18-Jul-06 0:15 
AnswerRe: Office-like menu... Pin
giddy_guitarist16-Jul-06 21:44
giddy_guitarist16-Jul-06 21:44 
AnswerRe: Office-like menu... Pin
Agus Budianto18-Jul-06 0:18
Agus Budianto18-Jul-06 0:18 
QuestionHelp Please Pin
mayoush16-Jul-06 2:27
mayoush16-Jul-06 2:27 
AnswerRe: Help Please Pin
Dave Kreskowiak16-Jul-06 10:40
mveDave Kreskowiak16-Jul-06 10:40 
QuestionFile transfer Pin
mayoush16-Jul-06 1:37
mayoush16-Jul-06 1:37 
AnswerRe: File transfer Pin
Dave Kreskowiak16-Jul-06 2:13
mveDave Kreskowiak16-Jul-06 2:13 

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.