Click here to Skip to main content
15,898,222 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: VB6 MKGrid Pin
Dave Kreskowiak27-Sep-10 3:55
mveDave Kreskowiak27-Sep-10 3:55 
Questionhow to read xml in VB6 Pin
jainiraj23-Sep-10 4:01
jainiraj23-Sep-10 4:01 
QuestionSpecific version property when adding references Pin
Jon_Boy22-Sep-10 6:09
Jon_Boy22-Sep-10 6:09 
AnswerRe: Specific version property when adding references Pin
Eddy Vluggen22-Sep-10 9:14
professionalEddy Vluggen22-Sep-10 9:14 
GeneralRe: Specific version property when adding references Pin
Jon_Boy23-Sep-10 2:05
Jon_Boy23-Sep-10 2:05 
QuestionDetecting disconnection from database Pin
chrispowell1234522-Sep-10 0:56
chrispowell1234522-Sep-10 0:56 
AnswerRe: Detecting disconnection from database Pin
Simon_Whale22-Sep-10 1:09
Simon_Whale22-Sep-10 1:09 
GeneralRe: Detecting disconnection from database Pin
chrispowell1234522-Sep-10 1:44
chrispowell1234522-Sep-10 1:44 
I've seen the state methods and tried this in the applicaions unhandled exception handler event:


If solid.State = ConnectionState.Broken Or solid.State = ConnectionState.Closed Then
            Dim tryconnect As Boolean = True
            While tryconnect = True And (solid.State = ConnectionState.Broken Or solid.State = ConnectionState.Closed)
                If MsgBox("Connection to the database has closed unexpectedly. Retry to connect?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
                    Try
                        solid.Open()
                    Catch ex As Exception

                    End Try
                Else
                    tryconnect = False
                    Application.Exit()
                End If
            End While
        End If>


However it's too late and the app has exceptioned giving the user the windows error box. any way to disable this?
GeneralRe: Detecting disconnection from database Pin
Dave Kreskowiak22-Sep-10 2:04
mveDave Kreskowiak22-Sep-10 2:04 
AnswerRe: Detecting disconnection from database Pin
David Mujica22-Sep-10 3:26
David Mujica22-Sep-10 3:26 
GeneralRe: Detecting disconnection from database Pin
chrispowell1234522-Sep-10 3:55
chrispowell1234522-Sep-10 3:55 
GeneralRe: Detecting disconnection from database Pin
chrispowell1234522-Sep-10 5:37
chrispowell1234522-Sep-10 5:37 
GeneralRe: Detecting disconnection from database Pin
David Mujica22-Sep-10 8:35
David Mujica22-Sep-10 8:35 
AnswerRe: Detecting disconnection from database Pin
Tom Deketelaere22-Sep-10 3:57
professionalTom Deketelaere22-Sep-10 3:57 
QuestionRe: Detecting disconnection from database Pin
Eddy Vluggen22-Sep-10 9:17
professionalEddy Vluggen22-Sep-10 9:17 
AnswerRe: Detecting disconnection from database Pin
chrispowell1234523-Sep-10 0:02
chrispowell1234523-Sep-10 0:02 
GeneralRe: Detecting disconnection from database Pin
Dave Kreskowiak23-Sep-10 2:01
mveDave Kreskowiak23-Sep-10 2:01 
GeneralRe: Detecting disconnection from database Pin
chrispowell1234523-Sep-10 2:35
chrispowell1234523-Sep-10 2:35 
GeneralRe: Detecting disconnection from database Pin
Ian Shlasko23-Sep-10 2:58
Ian Shlasko23-Sep-10 2:58 
GeneralRe: Detecting disconnection from database [modified] Pin
Dave Kreskowiak23-Sep-10 5:28
mveDave Kreskowiak23-Sep-10 5:28 
QuestionVBScript - Gathering WMI & Registry information from networked computers - SOLVED [modified] Pin
eeffoc4221-Sep-10 4:30
eeffoc4221-Sep-10 4:30 
AnswerRe: VBScript - Gathering WMI & Registry information from networked computers Pin
Dave Kreskowiak21-Sep-10 6:32
mveDave Kreskowiak21-Sep-10 6:32 
AnswerRe: VBScript - Gathering WMI & Registry information from networked computers Pin
Eddy Vluggen22-Sep-10 9:21
professionalEddy Vluggen22-Sep-10 9:21 
QuestionRe: VBScript - Gathering WMI & Registry information from networked computers - SOLVED Pin
Member 330175419-Jan-11 6:57
Member 330175419-Jan-11 6:57 
Questionbroadcasting data using UDP winsocket control... [modified] Pin
jainiraj20-Sep-10 2:28
jainiraj20-Sep-10 2:28 

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.