Click here to Skip to main content
15,914,943 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to search specific record faster Pin
MAP Tiger25-Jul-08 1:15
MAP Tiger25-Jul-08 1:15 
GeneralRe: How to search specific record faster Pin
Mycroft Holmes25-Jul-08 13:39
professionalMycroft Holmes25-Jul-08 13:39 
GeneralRe: How to search specific record faster Pin
MAP Tiger25-Jul-08 13:50
MAP Tiger25-Jul-08 13:50 
GeneralRe: How to search specific record faster Pin
Mycroft Holmes25-Jul-08 15:41
professionalMycroft Holmes25-Jul-08 15:41 
GeneralRe: How to search specific record faster Pin
MAP Tiger25-Jul-08 16:19
MAP Tiger25-Jul-08 16:19 
GeneralRe: How to search specific record faster Pin
Mycroft Holmes25-Jul-08 16:33
professionalMycroft Holmes25-Jul-08 16:33 
GeneralRe: How to search specific record faster Pin
MAP Tiger25-Jul-08 16:45
MAP Tiger25-Jul-08 16:45 
QuestionThreading question Pin
Cory Kimble24-Jul-08 9:23
Cory Kimble24-Jul-08 9:23 
Dealing with threading always gets my raveled in trying to unravel the logic of threading.

Here is what I am doing. I am accessing a database all throughout my code. At the beginning I save my connection string in a variable.

When I get data from a Com port it creates a separate thread. That I want to initiate a database lookup but don't find anything in the variable, probably because it was created on a different thread. I think I need to invoke but am not clear how.

Here is another example that I solved with an invole

I wanted to call: TextChange(stringCom) in this same new thread.

To solve it I wrote (or got help to write from CP) this code and it worked.

Sub TextChange(ByVal Str As String)
        If batch.txtboxWeight.InvokeRequired Then
            Dim d As New TextChangeDelegate(AddressOf TextChange)
            Me.Invoke(d, Str)
        Else
            batch.txtboxWeight.Text = Str
        End If
    End Sub


But, this time I just want to call a sub and get the saved variable.

When I code
Dim connection As New SqlConnection(Splash.cust.getconnstr)

Spash.cust.getconnstr is null.

How can this be fixed?
AnswerRe: Threading question Pin
Luc Pattyn24-Jul-08 16:51
sitebuilderLuc Pattyn24-Jul-08 16:51 
QuestionRunning Windows Script on local network Computer Pin
Nerber24-Jul-08 9:01
Nerber24-Jul-08 9:01 
AnswerRe: Running Windows Script on local network Computer Pin
Uros Calakovic25-Jul-08 4:52
Uros Calakovic25-Jul-08 4:52 
QuestionButton inside of a group box Pin
sa_runner24-Jul-08 7:56
sa_runner24-Jul-08 7:56 
AnswerRe: Button inside of a group box Pin
sa_runner24-Jul-08 8:09
sa_runner24-Jul-08 8:09 
QuestionOdd question of the day: In a custom control, how do you get the + sign for nested properties? Pin
Jon_Boy24-Jul-08 4:16
Jon_Boy24-Jul-08 4:16 
AnswerRe: Odd question of the day: In a custom control, how do you get the + sign for nested properties? Pin
Tom Deketelaere24-Jul-08 5:23
professionalTom Deketelaere24-Jul-08 5:23 
AnswerRe: Odd question of the day: In a custom control, how do you get the + sign for nested properties? Pin
Thomas Stockwell24-Jul-08 5:31
professionalThomas Stockwell24-Jul-08 5:31 
GeneralRe: Odd question of the day: In a custom control, how do you get the + sign for nested properties? Pin
Jon_Boy24-Jul-08 5:54
Jon_Boy24-Jul-08 5:54 
Question[Message Deleted] Pin
vidhish24-Jul-08 1:09
vidhish24-Jul-08 1:09 
AnswerRe: concatanation Pin
John Ad24-Jul-08 1:13
John Ad24-Jul-08 1:13 
QuestionAccess Permission Pin
monika_vasvani24-Jul-08 0:05
monika_vasvani24-Jul-08 0:05 
AnswerRe: Access Permission Pin
~Khatri Mitesh~24-Jul-08 1:08
~Khatri Mitesh~24-Jul-08 1:08 
AnswerRe: Access Permission Pin
jzonthemtn24-Jul-08 3:41
jzonthemtn24-Jul-08 3:41 
QuestionPrinting with ZedGraph ! Pin
CrocodileBuck23-Jul-08 21:44
CrocodileBuck23-Jul-08 21:44 
AnswerRe: Printing with ZedGraph ! Pin
Steven J Jowett24-Jul-08 22:39
Steven J Jowett24-Jul-08 22:39 
Questionis there any function in vb where you can retrieve if a specific removable drive or disk is write protected = true or false?? [modified] Pin
vbDigger'z23-Jul-08 21:16
vbDigger'z23-Jul-08 21:16 

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.