Click here to Skip to main content
15,921,279 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to protect a windows service from being SIG-KILL'd, even by Full Control Account? Pin
Dave Kreskowiak7-Dec-08 12:28
mveDave Kreskowiak7-Dec-08 12:28 
GeneralRe: How to protect a windows service from being SIG-KILL'd, even by Full Control Account? Pin
_Khallaf7-Dec-08 12:55
_Khallaf7-Dec-08 12:55 
GeneralRe: How to protect a windows service from being SIG-KILL'd, even by Full Control Account? Pin
Dave Kreskowiak7-Dec-08 13:06
mveDave Kreskowiak7-Dec-08 13:06 
GeneralRe: How to protect a windows service from being SIG-KILL'd, even by Full Control Account? Pin
Tom Deketelaere8-Dec-08 1:24
professionalTom Deketelaere8-Dec-08 1:24 
AnswerRe: How to protect a windows service from being SIG-KILL'd, even by Full Control Account? Pin
Christian Graus7-Dec-08 11:22
protectorChristian Graus7-Dec-08 11:22 
GeneralRe: How to protect a windows service from being SIG-KILL'd, even by Full Control Account? Pin
_Khallaf7-Dec-08 11:33
_Khallaf7-Dec-08 11:33 
GeneralRe: How to protect a windows service from being SIG-KILL'd, even by Full Control Account? Pin
Christian Graus7-Dec-08 11:48
protectorChristian Graus7-Dec-08 11:48 
QuestionUrgent: RAS COnnection, one problem Pin
Member 21678366-Dec-08 8:50
Member 21678366-Dec-08 8:50 
Hello,

I have used following code, it works for one time. As I want loop to work for 4 times. The code should dial number and show dialing status in Listbox. It do this for one time only. When It loop for second time, it do not show any dialing status in Listbox though dialing code executes(I saw thisin debug section).

Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click
Dim th1 As New Threading.Thread(AddressOf Dialsub)
th1.IsBackground = True
th1.Start()


End Sub

Private Sub Dialsub()
For i As Integer = 0 To 4
sw.Start()
System.Threading.Thread.Sleep(5000)
sw.Stop()

Dim tm As TimeSpan
tm = sw.Elapsed

'MsgBox(tm.Seconds)

If tm.Seconds = 4 Or tm.Seconds = 9 Then
' Dim rasconnection1 As New Ras.RasConnection

RasConnection1.PhoneNumber = "#777"
RasConnection1.UserName = "vwireless@ptcl.com"
RasConnection1.Password = "ptcl"
RasConnection1.Dial()


End If
Button9.Text = i
Next
End Sub

Private Sub RasConnection1_DialNotify1(ByVal sender As Object, ByVal e As Ras.RasDialNotify1EventArgs) Handles RasConnection1.DialNotify1
ListBox1.Items.Add(String.Format("{0}", e.ConnectionState, e.Message.ToString))
If e.[Error] > 0 Then
MessageBox.Show(String.Format("{0},{1}", e.[Error], e.Message))
End If
' RasConnection1.Dispose()

End Sub

Please me out to solve this.
QuestionRandom number but in increments of X Pin
gerryR.com6-Dec-08 7:24
gerryR.com6-Dec-08 7:24 
GeneralRe: Random number but in increments of X Pin
Luc Pattyn6-Dec-08 7:50
sitebuilderLuc Pattyn6-Dec-08 7:50 
GeneralRe: Random number but in increments of X Pin
gerryR.com6-Dec-08 8:32
gerryR.com6-Dec-08 8:32 
GeneralRe: Random number but in increments of X Pin
Luc Pattyn6-Dec-08 8:54
sitebuilderLuc Pattyn6-Dec-08 8:54 
QuestionHow to determin The cell and the row user entered info in Datagridview Pin
Silva_A6-Dec-08 6:25
Silva_A6-Dec-08 6:25 
AnswerMaybe Use e.rowindex Pin
David Mujica7-Dec-08 5:15
David Mujica7-Dec-08 5:15 
QuestionHow do Save info from datagridview and textbox in sql 2000 databse Pin
Silva_A6-Dec-08 6:17
Silva_A6-Dec-08 6:17 
QuestionHow do Save info from datagridview and textbox in sql 2000 databse Pin
Silva_A6-Dec-08 6:11
Silva_A6-Dec-08 6:11 
AnswerRe: How do Save info from datagridview and textbox in sql 2000 databse Pin
Mycroft Holmes6-Dec-08 15:16
professionalMycroft Holmes6-Dec-08 15:16 
Questionalphabetical button search Pin
acevedo6-Dec-08 3:03
acevedo6-Dec-08 3:03 
AnswerRe: alphabetical button search Pin
Wendelius6-Dec-08 3:45
mentorWendelius6-Dec-08 3:45 
Questionok how do i add images to a listview from a text file ? Pin
ls780h6-Dec-08 2:51
ls780h6-Dec-08 2:51 
AnswerRe: ok how do i add images to a listview from a text file ? Pin
Wendelius6-Dec-08 3:40
mentorWendelius6-Dec-08 3:40 
QuestionHi help need in .OCX Pin
Senthil S5-Dec-08 22:24
Senthil S5-Dec-08 22:24 
AnswerRe: Hi help need in .OCX Pin
Christian Graus5-Dec-08 22:37
protectorChristian Graus5-Dec-08 22:37 
QuestionBluetooth... Pin
Agus Budianto5-Dec-08 4:43
Agus Budianto5-Dec-08 4:43 
QuestionHow can I add DoubleClick event for a button Pin
Abraham15-Dec-08 4:02
Abraham15-Dec-08 4:02 

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.