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

Visual Basic

 
QuestionVB6.0 timeout accessing SQL Server Pin
jgrogan19-Sep-06 23:43
jgrogan19-Sep-06 23:43 
AnswerRe: VB6.0 timeout accessing SQL Server Pin
Dave Kreskowiak20-Sep-06 4:59
mveDave Kreskowiak20-Sep-06 4:59 
GeneralRe: VB6.0 timeout accessing SQL Server Pin
jgrogan20-Sep-06 7:21
jgrogan20-Sep-06 7:21 
Questionfrom a word document i want to parse all the telephone numbers and names Pin
Batchu Rajesh19-Sep-06 23:38
Batchu Rajesh19-Sep-06 23:38 
AnswerRe: from a word document i want to parse all the telephone numbers and names Pin
Christian Graus19-Sep-06 23:43
protectorChristian Graus19-Sep-06 23:43 
GeneralRe: from a word document i want to parse all the telephone numbers and names Pin
Batchu Rajesh20-Sep-06 2:05
Batchu Rajesh20-Sep-06 2:05 
GeneralRe: from a word document i want to parse all the telephone numbers and names Pin
Christian Graus20-Sep-06 10:44
protectorChristian Graus20-Sep-06 10:44 
QuestionHelp On Forms and threads Pin
RG_SA19-Sep-06 23:36
RG_SA19-Sep-06 23:36 
Hi All.. I am having a few issues on creating a new form by raising an event from the child thread. I have created a small scenario demonstrating this, please could anyone give some sugestions.

' Main Form loaded

Dim f As New Form2
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
start.start()
End Sub

Dim WithEvents start As New Class1


Private Sub newf()
'Dim f As New Form2
f.Show()
f.Visible = True
End Sub

Private Sub start_cge() Handles start.cge

newf()
End Sub
End Class

' Class containg the thread create and event

Imports System.Threading

Public Class Class1

Public Event cge()
Public WithEvents tr1 As New System.Windows.Forms.Timer
Dim t As Thread
Public Sub start()
tr1.Interval = 2000
tr1.Start()
End Sub

Public Sub ttick(ByVal s As Object, ByVal e As System.EventArgs) Handles tr1.Tick
t = New Thread(AddressOf ev)
t.Start()
End Sub

Public Sub ev()
RaiseEvent cge()
End Sub

End Class

Any help would be greatly appreciated

AnswerRe: Help On Forms and threads Pin
Christian Graus19-Sep-06 23:45
protectorChristian Graus19-Sep-06 23:45 
GeneralRe: Help On Forms and threads Pin
RG_SA19-Sep-06 23:53
RG_SA19-Sep-06 23:53 
GeneralRe: Help On Forms and threads Pin
Christian Graus19-Sep-06 23:56
protectorChristian Graus19-Sep-06 23:56 
GeneralRe: Help On Forms and threads Pin
RG_SA20-Sep-06 0:06
RG_SA20-Sep-06 0:06 
GeneralRe: Help On Forms and threads Pin
Christian Graus20-Sep-06 0:11
protectorChristian Graus20-Sep-06 0:11 
GeneralRe: Help On Forms and threads Pin
RG_SA20-Sep-06 0:20
RG_SA20-Sep-06 0:20 
GeneralRe: Help On Forms and threads Pin
Christian Graus20-Sep-06 0:22
protectorChristian Graus20-Sep-06 0:22 
GeneralRe: Help On Forms and threads Pin
RG_SA20-Sep-06 0:33
RG_SA20-Sep-06 0:33 
GeneralRe: Help On Forms and threads Pin
Christian Graus20-Sep-06 0:41
protectorChristian Graus20-Sep-06 0:41 
GeneralRe: Help On Forms and threads Pin
RG_SA20-Sep-06 0:47
RG_SA20-Sep-06 0:47 
GeneralRe: Help On Forms and threads Pin
RG_SA20-Sep-06 0:35
RG_SA20-Sep-06 0:35 
AnswerRe: Help On Forms and threads Pin
RG_SA20-Sep-06 2:50
RG_SA20-Sep-06 2:50 
GeneralRe: Help On Forms and threads Pin
Dave Kreskowiak20-Sep-06 4:53
mveDave Kreskowiak20-Sep-06 4:53 
Questioncreate link on datagrid column Pin
mellvincent19-Sep-06 22:43
mellvincent19-Sep-06 22:43 
QuestionIndependent Application Instances Pin
hrodberaht19-Sep-06 22:11
hrodberaht19-Sep-06 22:11 
AnswerRe: Independent Application Instances Pin
Marco Turrini19-Sep-06 22:46
Marco Turrini19-Sep-06 22:46 
GeneralRe: Independent Application Instances Pin
hrodberaht19-Sep-06 22:53
hrodberaht19-Sep-06 22:53 

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.