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

Visual Basic

 
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 
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 
This code runs in my class which is running the thread
Public Sub LoginUser(ByVal Str As String)
If Mid(Str, 1, 2) = "UD" Then
Dim Userdets() As String
Str = TruncData(Str)
Userdets = Microsoft.VisualBasic.Split(Str, ",", -1, CompareMethod.Binary)
CnDetails.UserName = Userdets(3)
CnDetails.Curr_Id = Userdets(0)
CnDetails.Department = Userdets(1)
CnDetails.level = Userdets(2)
'Tell LoginForm That all is ok and continue
RaiseEvent LoggedIn(True)
End If

This is the code that the event raises in the form that created the class object

Dim WithEvents Login As New SocketControls.SocketControl

Private Sub Login_LoggedIn(ByVal Ok As Boolean) Handles Login.LoggedIn
If Ok = True Then
Hideloggin()
End If
End Sub

Private Sub Hideloggin()
'232, 168

Dim NewForm As Form

Try
'Application.DoEvents()
NewForm = New Form2
NewForm.Show()
Me.Refresh()
'Me.WindowState = FormWindowState.Maximized
'Me.FormBorderStyle = FormBorderStyle.Fixed3D
'Me.MinimizeBox = True
'GroupBox1.Visible = False
'GroupBox2.Visible = False
'lblErr.Visible = False

Catch ex As Exception

End Try

End Sub

I was reading some of the blogs on this and a few people said that the child thread even though raising an event the event will still run on the child thread, so the child thread needs to pass the request through to the parent thread to execute that bit of code so it runs there. I am not to sure on how to do this though
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 
QuestionDLL Problem Pin
Sasmi19-Sep-06 21:46
Sasmi19-Sep-06 21:46 
AnswerRe: DLL Problem Pin
Christian Graus19-Sep-06 21:49
protectorChristian Graus19-Sep-06 21:49 
GeneralRe: DLL Problem Pin
Sasmi19-Sep-06 21:58
Sasmi19-Sep-06 21:58 
QuestionDLL Problem Pin
Sasmi19-Sep-06 21:10
Sasmi19-Sep-06 21:10 

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.