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

Visual Basic

 
GeneralRe: MDI QueryUnloads Pin
Nick Parker31-Jul-02 5:30
protectorNick Parker31-Jul-02 5:30 
GeneralRe: MDI QueryUnloads Pin
Jason McBurney31-Jul-02 11:22
Jason McBurney31-Jul-02 11:22 
Generalpath help needed !! Pin
drmzunlimited31-Jul-02 2:43
drmzunlimited31-Jul-02 2:43 
GeneralRe: path help needed !! Pin
chris foote1-Aug-02 10:32
chris foote1-Aug-02 10:32 
Generalpath help needed !! Pin
drmzunlimited31-Jul-02 2:42
drmzunlimited31-Jul-02 2:42 
GeneralMSComm with DTREnable Pin
Anonymous30-Jul-02 23:09
Anonymous30-Jul-02 23:09 
GeneralTry Catch Finally and variable declaration Pin
Zyxil30-Jul-02 10:26
Zyxil30-Jul-02 10:26 
GeneralRe: GotDotNet won the race Pin
Zyxil30-Jul-02 10:31
Zyxil30-Jul-02 10:31 
con needs to have been declared outside of the try block, as thus:

<br />
Dim con As SqlConnection <br />
Dim cmd As SqlCommand <br />
<br />
Try <br />
            con = New SqlConnection(Configuration.Settings("ConnectionString")) <br />
            cmd = New SqlCommand("INSERT INTO Messages (MessageType, Message) VALUES('" & _ <br />
                    MessageType & "','" & Message & "')", con) <br />
<br />
            cmd.ExecuteNonQuery() <br />
        Catch e As Exception <br />
            LogEvent(e.ToString(), EventLogEntryType.Error) <br />
        Finally <br />
            con.Close() <br />
        End Try <br />


-John
GeneralDebug a VC++ DLL from VBA Pin
Ryan B.30-Jul-02 10:13
Ryan B.30-Jul-02 10:13 
GeneralRe: Debug a VC++ DLL from VBA Pin
Vi230-Jul-02 19:57
Vi230-Jul-02 19:57 
GeneralVB Textbox Accept Code Pin
rlewistx30-Jul-02 9:03
rlewistx30-Jul-02 9:03 
GeneralRe: VB Textbox Accept Code Pin
Colin Leitner30-Jul-02 9:27
Colin Leitner30-Jul-02 9:27 
GeneralRe: VB Textbox Accept Code Pin
Richard Deeming31-Jul-02 0:59
mveRichard Deeming31-Jul-02 0:59 
QuestionWhy Doesnt This Work Again? Pin
Ryan B.30-Jul-02 8:35
Ryan B.30-Jul-02 8:35 
AnswerRe: Why Doesnt This Work Again? Pin
Colin Leitner30-Jul-02 9:02
Colin Leitner30-Jul-02 9:02 
GeneralRe: Why Doesnt This Work Again? Pin
Ryan B.30-Jul-02 9:34
Ryan B.30-Jul-02 9:34 
GeneralRe: Why Doesnt This Work Again? Pin
Colin Leitner30-Jul-02 9:48
Colin Leitner30-Jul-02 9:48 
GeneralRe: Why Doesnt This Work Again? Pin
Jason McBurney31-Jul-02 11:28
Jason McBurney31-Jul-02 11:28 
GeneralGetting events from a web page. Pin
Ray Cassick30-Jul-02 4:11
Ray Cassick30-Jul-02 4:11 
GeneralRe: Getting events from a web page. Pin
Colin Leitner30-Jul-02 9:30
Colin Leitner30-Jul-02 9:30 
QuestionHow to FTP in VB.Net? Pin
Felix200229-Jul-02 18:40
Felix200229-Jul-02 18:40 
Generaladd object to listbox Pin
mgriffith29-Jul-02 5:48
mgriffith29-Jul-02 5:48 
GeneralRe: add object to listbox Pin
Colin Leitner30-Jul-02 9:13
Colin Leitner30-Jul-02 9:13 
GeneralRe: add object to listbox Pin
mgriffith30-Jul-02 9:19
mgriffith30-Jul-02 9:19 
GeneralClipboardproblems = ( Pin
Anonymous27-Jul-02 0:50
Anonymous27-Jul-02 0:50 

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.