Click here to Skip to main content
16,006,535 members
Home / Discussions / C#
   

C#

 
AnswerRe: Datagrid Problem Pin
microsoc8-Feb-06 23:21
microsoc8-Feb-06 23:21 
GeneralRe: Datagrid Problem Pin
Anil Dhiman9-Feb-06 0:14
Anil Dhiman9-Feb-06 0:14 
GeneralRe: Datagrid Problem Pin
microsoc9-Feb-06 0:15
microsoc9-Feb-06 0:15 
QuestionHow to get RGB values from image file Pin
nps_ltv8-Feb-06 22:27
nps_ltv8-Feb-06 22:27 
AnswerRe: How to get RGB values from image file Pin
jinzhecheng9-Feb-06 16:43
jinzhecheng9-Feb-06 16:43 
QuestionAssigning a handle to a structrue Pin
Stefan Venter8-Feb-06 21:13
Stefan Venter8-Feb-06 21:13 
AnswerRe: Assigning a handle to a structrue Pin
[Marc]9-Feb-06 5:10
[Marc]9-Feb-06 5:10 
QuestionStopping/canceling a running database query Pin
Robert Rohde8-Feb-06 18:58
Robert Rohde8-Feb-06 18:58 
Hi folks,

what would be a good way to make a database query cancelable? Purpose is that the user should abort the function if it takes too long.
I've already stuffed the whole database access logic into a separate thread. When the user clicks the abort button then the Thread.Abort function is called.
Problem 1: The thread ignores the Abort call until the query is completely processed.
Problem 2: Somehow I cannot fire a second query while the first hasn't finished (e.g. User quickly clicks Search->Cancel->Search). I'm not sure why - it might be the underlying Access database (please don't mock me for that - the db is set by the customer).

I'm working with .Net 1.1. Any ideas?
AnswerRe: Stopping/canceling a running database query Pin
J4amieC8-Feb-06 22:03
J4amieC8-Feb-06 22:03 
GeneralRe: Stopping/canceling a running database query Pin
Robert Rohde9-Feb-06 0:05
Robert Rohde9-Feb-06 0:05 
Questionhow can i read a .DAT file and convert it into proper text format ? Pin
geek-age8-Feb-06 18:25
geek-age8-Feb-06 18:25 
AnswerRe: how can i read a .DAT file and convert it into proper text format ? Pin
DigitalKing8-Feb-06 18:58
DigitalKing8-Feb-06 18:58 
GeneralRe: how can i read a .DAT file and convert it into proper text format ? Pin
geek-age8-Feb-06 20:22
geek-age8-Feb-06 20:22 
Questioncursors problem Pin
edel_ong8-Feb-06 18:16
edel_ong8-Feb-06 18:16 
AnswerRe: cursors problem Pin
Robert Rohde8-Feb-06 18:49
Robert Rohde8-Feb-06 18:49 
GeneralRe: cursors problem Pin
edel_ong8-Feb-06 19:06
edel_ong8-Feb-06 19:06 
AnswerRe: cursors problem Pin
DigitalKing8-Feb-06 19:20
DigitalKing8-Feb-06 19:20 
Questionthis.close not working as expected Pin
TheJudeDude8-Feb-06 17:24
TheJudeDude8-Feb-06 17:24 
AnswerRe: this.close not working as expected Pin
Robert Rohde8-Feb-06 20:29
Robert Rohde8-Feb-06 20:29 
QuestionWhy I can not implement a managed C++ interface with C#? Pin
tiancaidao8-Feb-06 17:12
tiancaidao8-Feb-06 17:12 
AnswerRe: Why I can not implement a managed C++ interface with C#? Pin
Guffa8-Feb-06 21:10
Guffa8-Feb-06 21:10 
GeneralRe: Why I can not implement a managed C++ interface with C#? Pin
tiancaidao8-Feb-06 21:55
tiancaidao8-Feb-06 21:55 
AnswerRe: Why I can not implement a managed C++ interface with C#? Pin
leppie8-Feb-06 22:19
leppie8-Feb-06 22:19 
GeneralRe: Why I can not implement a managed C++ interface with C#? Pin
tiancaidao9-Feb-06 1:14
tiancaidao9-Feb-06 1:14 
GeneralRe: Why I can not implement a managed C++ interface with C#? Pin
leppie9-Feb-06 1:31
leppie9-Feb-06 1:31 

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.