Click here to Skip to main content
15,888,521 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Stopping/canceling a running database query Pin
J4amieC8-Feb-06 22:03
J4amieC8-Feb-06 22:03 
Within your data access class, store a boolean variable such as Cancelling. Now, read your data in chunks using something like a DataReader, except after reading each chunk of data check whether the Cancelling flag has been set to true. If it has, close your data reader and connection and return from the method as quickly as possible.

You can now do exactly as you were, starting that data access on its own thread. When you want to cancel, set the flag in your data access class to true and Thread.Join the data access thread before firing off a new request.In this way, no Thread.Abort will be required.
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 
GeneralRe: Why I can not implement a managed C++ interface with C#? Pin
tiancaidao9-Feb-06 2:55
tiancaidao9-Feb-06 2:55 

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.