Click here to Skip to main content
15,893,487 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCheck box getting unchecked while sorting column in datagridview Pin
hisuman10011-Jun-08 1:18
hisuman10011-Jun-08 1:18 
AnswerRe: Check box getting unchecked while sorting column in datagridview Pin
C1AllenS11-Jun-08 5:08
C1AllenS11-Jun-08 5:08 
GeneralRe: Check box getting unchecked while sorting column in datagridview Pin
hisuman10013-Jun-08 0:45
hisuman10013-Jun-08 0:45 
QuestionVBA (Excel) filter by date Pin
progDes11-Jun-08 0:13
progDes11-Jun-08 0:13 
AnswerRe: VBA (Excel) filter by date [modified] Pin
~Khatri Mitesh~11-Jun-08 0:57
~Khatri Mitesh~11-Jun-08 0:57 
GeneralRe: VBA (Excel) filter by date Pin
progDes11-Jun-08 1:06
progDes11-Jun-08 1:06 
Questionshowing animated waiting form Pin
Tom Deketelaere10-Jun-08 23:04
professionalTom Deketelaere10-Jun-08 23:04 
Questionhandling connection object exception Pin
vermaratan10-Jun-08 22:21
vermaratan10-Jun-08 22:21 
hi,

i have written a code to connect to sql server 2005 database and
do some update and insert operation, i want to handle an exception, such
that whenever the connection to the database fails, the program should
wait for the connection to be available and reconnect..

constring = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Password=pwd;Initial Catalog=db;Data Source=pc1"

Try
cn.ConnectionString = constring
cn.Open()
Catch ex As Exception

Err.Clear()
System.Threading.Thread.Sleep(300000)
' cn.Close()
' cn.ConnectionString = constring
cn.Open()

End Try
End Sub

it does not seem to work, please help

asfdasdf

AnswerRe: handling connection object exception Pin
Colin Angus Mackay11-Jun-08 0:47
Colin Angus Mackay11-Jun-08 0:47 
GeneralRe: handling connection object exception Pin
vermaratan11-Jun-08 0:59
vermaratan11-Jun-08 0:59 
AnswerRe: handling connection object exception Pin
Ashfield11-Jun-08 3:17
Ashfield11-Jun-08 3:17 
QuestionIs there any field limitaion in Structure (VB.NET) Pin
Michael Sync10-Jun-08 21:10
Michael Sync10-Jun-08 21:10 
AnswerRe: Is there any field limitaion in Structure (VB.NET) Pin
Chinners10-Jun-08 22:41
Chinners10-Jun-08 22:41 
GeneralRe: Is there any field limitaion in Structure (VB.NET) Pin
Michael Sync10-Jun-08 23:23
Michael Sync10-Jun-08 23:23 
GeneralRe: Is there any field limitaion in Structure (VB.NET) Pin
Chinners10-Jun-08 23:56
Chinners10-Jun-08 23:56 
GeneralRe: Is there any field limitaion in Structure (VB.NET) Pin
Michael Sync11-Jun-08 4:52
Michael Sync11-Jun-08 4:52 
GeneralRe: Is there any field limitaion in Structure (VB.NET) Pin
Chinners11-Jun-08 5:31
Chinners11-Jun-08 5:31 
GeneralRe: Is there any field limitaion in Structure (VB.NET) Pin
Michael Sync11-Jun-08 15:57
Michael Sync11-Jun-08 15:57 
AnswerRe: Is there any field limitaion in Structure (VB.NET) Pin
Colin Angus Mackay10-Jun-08 23:03
Colin Angus Mackay10-Jun-08 23:03 
AnswerRe: Is there any field limitaion in Structure (VB.NET) [more] Pin
Colin Angus Mackay10-Jun-08 23:05
Colin Angus Mackay10-Jun-08 23:05 
GeneralRe: Is there any field limitaion in Structure (VB.NET) [more] Pin
Michael Sync10-Jun-08 23:21
Michael Sync10-Jun-08 23:21 
GeneralRe: Is there any field limitaion in Structure (VB.NET) [more] Pin
Colin Angus Mackay11-Jun-08 0:43
Colin Angus Mackay11-Jun-08 0:43 
GeneralRe: Is there any field limitaion in Structure (VB.NET) [more] Pin
Michael Sync11-Jun-08 4:53
Michael Sync11-Jun-08 4:53 
GeneralRe: Is there any field limitaion in Structure (VB.NET) [more] Pin
Colin Angus Mackay11-Jun-08 13:41
Colin Angus Mackay11-Jun-08 13:41 
GeneralRe: Is there any field limitaion in Structure (VB.NET) [more] Pin
Michael Sync11-Jun-08 15:54
Michael Sync11-Jun-08 15:54 

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.