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

Visual Basic

 
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 
GeneralRe: Detecting disconnection from database Pin
Dave Kreskowiak22-Sep-10 2:04
mveDave Kreskowiak22-Sep-10 2:04 
You would normally just have one method that returns a Connection object in your data layer. That connection object would check the state of the connection before it queries and the try/catch block around it would also grab exceptions just like you have here. Also, it's not a good idea to leave the Catch block blank. It really should log failure information somewhere or at least show a dialog that the exception happened.

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 
AnswerRe: broadcasting data using UDP winsocket control... Pin
DaveAuld20-Sep-10 11:00
professionalDaveAuld20-Sep-10 11:00 

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.