Click here to Skip to main content
15,920,602 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to save any file in registy Pin
hannesHTG17-Aug-06 3:48
hannesHTG17-Aug-06 3:48 
Questionwebclient on multiple threads? Pin
cstrader23216-Aug-06 5:12
cstrader23216-Aug-06 5:12 
AnswerRe: webclient on multiple threads? Pin
Stephen McGuire16-Aug-06 5:56
Stephen McGuire16-Aug-06 5:56 
GeneralRe: webclient on multiple threads? Pin
cstrader23216-Aug-06 6:31
cstrader23216-Aug-06 6:31 
GeneralRe: webclient on multiple threads? Pin
Stephen McGuire16-Aug-06 6:49
Stephen McGuire16-Aug-06 6:49 
GeneralRe: webclient on multiple threads? Pin
cstrader23216-Aug-06 17:23
cstrader23216-Aug-06 17:23 
GeneralRe: webclient on multiple threads? Pin
Stephen McGuire17-Aug-06 0:48
Stephen McGuire17-Aug-06 0:48 
GeneralRe: webclient on multiple threads? Pin
Keith Malwitz17-Aug-06 18:01
Keith Malwitz17-Aug-06 18:01 
If all you are trying to do is ensure that only one thread can execute your method at any given time, the easiest solution would be to prefix the method definition with the MethodImpl attribute.

For example:

<methodimpl(methodimploptions.synchronized)> _
Public Function MyFunction as foo
'Function functionality coded as normal
End Function

This attribute ensures that only one thread may execute the method at any given time.

You could also use SyncLock to achieve the same result:

Public Function MyFunction as foo
SyncLock Me
'Function functionality coded as normal
End SyncLock
End Function

Any code within the SyncLock block can only be executed by one thread at a time.

Hope this helps.
GeneralRe: webclient on multiple threads? Pin
cstrader23218-Aug-06 3:12
cstrader23218-Aug-06 3:12 
QuestionUpdate database in designer Pin
cstrader23216-Aug-06 5:11
cstrader23216-Aug-06 5:11 
AnswerRe: Update database in designer Pin
Stephen McGuire16-Aug-06 5:47
Stephen McGuire16-Aug-06 5:47 
GeneralRe: Update database in designer Pin
cstrader23216-Aug-06 6:34
cstrader23216-Aug-06 6:34 
QuestionDateTime datatype returns Date only Pin
TAtechsupport16-Aug-06 5:11
TAtechsupport16-Aug-06 5:11 
AnswerRe: DateTime datatype returns Date only Pin
Stephen McGuire16-Aug-06 5:40
Stephen McGuire16-Aug-06 5:40 
GeneralRe: DateTime datatype returns Date only Pin
TAtechsupport16-Aug-06 6:57
TAtechsupport16-Aug-06 6:57 
AnswerRe: DateTime datatype returns Date only Pin
Guffa16-Aug-06 8:38
Guffa16-Aug-06 8:38 
GeneralRe: DateTime datatype returns Date only Pin
TAtechsupport16-Aug-06 8:56
TAtechsupport16-Aug-06 8:56 
GeneralRe: DateTime datatype returns Date only Pin
Stephen McGuire16-Aug-06 9:52
Stephen McGuire16-Aug-06 9:52 
GeneralRe: DateTime datatype returns Date only Pin
TAtechsupport16-Aug-06 10:25
TAtechsupport16-Aug-06 10:25 
GeneralRe: DateTime datatype returns Date only Pin
Stephen McGuire16-Aug-06 10:37
Stephen McGuire16-Aug-06 10:37 
GeneralRe: DateTime datatype returns Date only Pin
TAtechsupport16-Aug-06 10:42
TAtechsupport16-Aug-06 10:42 
GeneralRe: DateTime datatype returns Date only Pin
Stephen McGuire16-Aug-06 10:50
Stephen McGuire16-Aug-06 10:50 
GeneralRe: DateTime datatype returns Date only Pin
TAtechsupport16-Aug-06 11:23
TAtechsupport16-Aug-06 11:23 
GeneralRe: DateTime datatype returns Date only Pin
Stephen McGuire16-Aug-06 12:08
Stephen McGuire16-Aug-06 12:08 
GeneralRe: DateTime datatype returns Date only Pin
TAtechsupport16-Aug-06 13:23
TAtechsupport16-Aug-06 13:23 

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.