Click here to Skip to main content
16,004,924 members
Home / Discussions / C#
   

C#

 
GeneralRe: hooking keyboard and mouse messages Pin
oOomen28-Mar-04 22:08
oOomen28-Mar-04 22:08 
GeneralRe: hooking keyboard and mouse messages Pin
Heath Stewart29-Mar-04 4:13
protectorHeath Stewart29-Mar-04 4:13 
Questionscrolling listView ?? Pin
azusakt28-Mar-04 21:21
azusakt28-Mar-04 21:21 
AnswerRe: scrolling listView ?? Pin
Heath Stewart29-Mar-04 3:45
protectorHeath Stewart29-Mar-04 3:45 
GeneralRe: scrolling listView ?? Pin
azusakt29-Mar-04 15:05
azusakt29-Mar-04 15:05 
GeneralRe: scrolling listView ?? Pin
Heath Stewart29-Mar-04 17:20
protectorHeath Stewart29-Mar-04 17:20 
GeneralThe connection is already Open (state=Open). Pin
dabuskol28-Mar-04 21:04
dabuskol28-Mar-04 21:04 
GeneralRe: The connection is already Open (state=Open). Pin
Colin Angus Mackay28-Mar-04 21:56
Colin Angus Mackay28-Mar-04 21:56 
Are you sure the error is not actually occurring on DBConnect.Open();?

I say this because the debugger will often highlight the line after the one where the error is if the error occurred in a method for which there is no source code.

I cannot see anything in SaveTOSQL() that would generate the message you are getting, and if the error did occur there then you would be saying which line in SaveTOSQL() generated the error.

I suggest that you enclose the DBConnect.Open(); in an if statement checking the State property of the connection before trying to open it.


"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar

"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)


GeneralRe: The connection is already Open (state=Open). (EDITED) Pin
dabuskol28-Mar-04 22:13
dabuskol28-Mar-04 22:13 
GeneralSubstring Pin
bertcox28-Mar-04 21:00
bertcox28-Mar-04 21:00 
GeneralRe: Substring Pin
dabuskol28-Mar-04 21:15
dabuskol28-Mar-04 21:15 
GeneralRe: Substring Pin
bertcox28-Mar-04 21:25
bertcox28-Mar-04 21:25 
GeneralRe: Substring Pin
Heath Stewart29-Mar-04 3:38
protectorHeath Stewart29-Mar-04 3:38 
GeneralRe: Substring Pin
Colin Angus Mackay28-Mar-04 22:00
Colin Angus Mackay28-Mar-04 22:00 
GeneralRe: Substring Pin
bertcox28-Mar-04 22:04
bertcox28-Mar-04 22:04 
GeneralRe: Substring Pin
Colin Angus Mackay28-Mar-04 22:44
Colin Angus Mackay28-Mar-04 22:44 
Generalletter space in richtextbox Pin
Member 71932728-Mar-04 20:48
Member 71932728-Mar-04 20:48 
GeneralRe: letter space in richtextbox Pin
Dave Kreskowiak29-Mar-04 2:19
mveDave Kreskowiak29-Mar-04 2:19 
GeneralRe: letter space in richtextbox Pin
Member 71932729-Mar-04 14:01
Member 71932729-Mar-04 14:01 
GeneralDropDown List on DataGrid Pin
Inpreet Singh28-Mar-04 17:32
Inpreet Singh28-Mar-04 17:32 
GeneralRe: DropDown List on DataGrid Pin
Mazdak28-Mar-04 20:02
Mazdak28-Mar-04 20:02 
GeneralRe: DropDown List on DataGrid Pin
Inpreet Singh28-Mar-04 20:19
Inpreet Singh28-Mar-04 20:19 
GeneralRe: DropDown List on DataGrid Pin
Mazdak28-Mar-04 21:49
Mazdak28-Mar-04 21:49 
GeneralMDI Form Pin
DucLinh28-Mar-04 16:08
DucLinh28-Mar-04 16:08 
GeneralRe: MDI Form Pin
Meysam Mahfouzi28-Mar-04 17:37
Meysam Mahfouzi28-Mar-04 17:37 

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.