Ok. And if there are already 5 threads (shared property is 5) , how to wait the end of one of them before start the new thread? This is the problem.
Tks
Hi!
I have a program with a FileSystemWatcher. Everytime a new file is created in my folder I create a new thread to read him.
Private Sub fSysWatcher_Changed(...) Handles oSysWatcher.Changed
oTh = New Thread(AddressOf ReadFile)
oTh.Name = e.Name
oTh.Start()
end sub
But I have...
Hi.
I have Windows Service with this code. fSysWatcher is a FileSystemWatcher
---------------------------------
---------------------------------
Protected Overrides Sub OnStart(ByVal args() As String)
' Inserire qui il codice necessario per avviare il proprio servizio. Il metodo deve...
Thank you very much but... problem number two: the code I sent you is only a test. In my project i don't know the exact number of controls to load, then I can't use the Select Case!
Thank you very much... and excuse me if my English is not very well, I'm an Italian boy!
Thank you Bob Langlade. But I have a problem using your code: how to identifier the clicked button? I think to use the tag property, but the result of this code is always a messagebox with 5. Can you help me?
Private WithEvents btnTest As Button
Private Sub btnTest_Click(...) Handles...
Hi!
I have a problem: i have to generate dinamically 5 button.
Private WithEvents btnTest As Button
Private Sub Form1_Load(...) Handles MyBase.Load
Dim i As Integer
For i = 1 To 5
btnTest = New Button
btnTest.Name = "btnTest"
btnTest.Tag = i...
I have a folder containing 10 files. For each file I have to invoke Start() method of another class library. How to wait until it finish elaboration? Do I have to use multithreading?
Help Me!!!
TKS!
I'm Italian... my English is not very well... I want to use the CreateObject because in my program I don't know preventively the name of the class library to istance cause I read it from DB. Did you understand?
CreateObject cannot be used to create instances of classes in Visual Basic unless those classes are explicitly exposed as COM components. Is there any way to use CreateObject method or other similar methods with .Net components?
TKS
I'm an Italian boy... my English is not very well...
Is there any way to intercept events of an object instanced by the CreateObject statment?
Thanks!!
The DeriveParameters Function has a note bug: it does not check
to see if the command is enlisted in a transaction before requesting the
parameters from the server, so if I try to use it during a transaction...
Error:
Execute requires the command to have a transaction object when the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.