Click here to Skip to main content
15,923,689 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionXP control look in VB.net controls Pin
deepak_rai9-Sep-05 4:28
deepak_rai9-Sep-05 4:28 
QuestionImage conversion help, pixel byte array to image Pin
Anonymous9-Sep-05 2:47
Anonymous9-Sep-05 2:47 
AnswerRe: Image conversion help, pixel byte array to image Pin
Dave Kreskowiak9-Sep-05 4:16
mveDave Kreskowiak9-Sep-05 4:16 
GeneralRe: Image conversion help, pixel byte array to image Pin
Anonymous12-Sep-05 10:30
Anonymous12-Sep-05 10:30 
GeneralRe: Image conversion help, pixel byte array to image Pin
charles09298827-Sep-10 20:35
charles09298827-Sep-10 20:35 
QuestionNOT VB .... VBA Pin
OMalleyW9-Sep-05 2:07
OMalleyW9-Sep-05 2:07 
AnswerRe: NOT VB .... VBA Pin
Dave Kreskowiak9-Sep-05 2:23
mveDave Kreskowiak9-Sep-05 2:23 
GeneralRe: NOT VB .... VBA Pin
OMalleyW9-Sep-05 2:59
OMalleyW9-Sep-05 2:59 
Thank you for the reply.

Couple things:
1) The view that I an using is linked from SQL Server and yes the table has been normalized
2) I am searching a listbox that has been populated and not hitting the view at all

Let me post some code to clear this up a little

TEXTBOX EVENT:
<br />
<br />
Private Sub txtPartSearch_Change()<br />
'<br />
' Created by William O'Malley<br />
' I would like to user to be able to type in part of a Part Number<br />
' and have the list activly search for a match baised on what is typed in<br />
'<br />
' Ex:<br />
' If I type in 12 then go to the first match<br />
' if I type in 1234 then go to the first match<br />
'<br />
' This will happen as they type<br />
'<br />
Dim sLength As Integer  'how long is the string<br />
Dim sSearch As String   'what am I looking forgy<br />
Dim iListCount As Long<br />
'<br />
'<br />
sLength = Len(Me.txtPartSearch.Text)<br />
sSearch = Me.txtPartSearch.Text<br />
iListCount = Me.lstPartNumbers.ListCount<br />
'<br />
Me.lblSearchingOf.Caption = Me.lstPartNumbers.ListCount<br />
'<br />
findInListBox sLength, sSearch, iListCount<br />
'<br />
End Sub<br />
<br />


FUNCTION USED TO SEARCH:
<br />
Function findInListBox(ByVal sLength As Integer, ByVal sSearch As String, ByVal NumberOfRowsToSearch As Long)<br />
    '<br />
    ' This function will be used to perform the search on<br />
    ' the list box<br />
    '<br />
    Dim i As Long<br />
    Dim sStringToCheck As String<br />
    '<br />
    For i = 0 To NumberOfRowsToSearch<br />
        '<br />
        Me.lblSearching.Caption = CStr(i + 1)<br />
        sStringToCheck = Left(Me.lstPartNumbers.Column(0, i), sLength)<br />
        '<br />
        If (sStringToCheck = sSearch) Then<br />
            '<br />
            Me.lstPartNumbers.Selected(i) = True<br />
            '<br />
            Exit For<br />
            '<br />
        End If<br />
        '<br />
    Next i<br />
    '<br />
End Function<br />


Although this only takes a few seconds I want it faster. So I figured that I could call my findInListBox function in a new thread that and return control to the screen. So the user would be able to continue typing as fast as they want with no problem because the search would be in the background.


Thank you again for the reply.

William O'Malley

-- modified at 9:00 Friday 9th September, 2005
GeneralRe: NOT VB .... VBA Pin
Dave Kreskowiak9-Sep-05 4:10
mveDave Kreskowiak9-Sep-05 4:10 
GeneralRe: NOT VB .... VBA Pin
OMalleyW9-Sep-05 4:34
OMalleyW9-Sep-05 4:34 
QuestionHow to cumulate input values Pin
directred9-Sep-05 1:01
directred9-Sep-05 1:01 
AnswerRe: How to cumulate input values Pin
Dave Kreskowiak9-Sep-05 2:15
mveDave Kreskowiak9-Sep-05 2:15 
GeneralRe: How to cumulate input values Pin
directred9-Sep-05 3:09
directred9-Sep-05 3:09 
QuestionWindows Form Inheritance Issue Pin
Jason Stamp9-Sep-05 0:33
Jason Stamp9-Sep-05 0:33 
Questiongetting homepath for currently logged in user Pin
Shivani Arora8-Sep-05 23:59
Shivani Arora8-Sep-05 23:59 
AnswerRe: getting homepath for currently logged in user Pin
Dave Kreskowiak9-Sep-05 2:10
mveDave Kreskowiak9-Sep-05 2:10 
GeneralRe: getting homepath for currently logged in user Pin
jcrussell11-Sep-05 15:49
jcrussell11-Sep-05 15:49 
Questionsetting the image of crystal report object during the runtime Pin
Hemesh8-Sep-05 20:30
Hemesh8-Sep-05 20:30 
QuestionMovable Toolbar Pin
kenexcelon8-Sep-05 20:25
kenexcelon8-Sep-05 20:25 
QuestionBYPASS LOGIN Pin
tatchung8-Sep-05 19:35
tatchung8-Sep-05 19:35 
AnswerRe: BYPASS LOGIN Pin
Dave Kreskowiak9-Sep-05 2:01
mveDave Kreskowiak9-Sep-05 2:01 
Questionhoe to access last record in Access 2000 table Pin
Swiss Mantoro8-Sep-05 17:57
Swiss Mantoro8-Sep-05 17:57 
AnswerRe: hoe to access last record in Access 2000 table Pin
crash_cverride8-Sep-05 22:27
crash_cverride8-Sep-05 22:27 
GeneralRe: hoe to access last record in Access 2000 table Pin
Swiss Mantoro8-Sep-05 23:15
Swiss Mantoro8-Sep-05 23:15 
Generalhoe to access last record in Access 2000 table Pin
Swiss Mantoro8-Sep-05 23:21
Swiss Mantoro8-Sep-05 23:21 

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.