Click here to Skip to main content
15,899,474 members
Home / Discussions / C#
   

C#

 
QuestionTranslating key codes to a System.Windows.Forms.Keys value. Pin
Shy Agam24-Oct-06 6:25
Shy Agam24-Oct-06 6:25 
AnswerRe: Translating key codes to a System.Windows.Forms.Keys value. Pin
Ed.Poore24-Oct-06 6:32
Ed.Poore24-Oct-06 6:32 
GeneralRe: Translating key codes to a System.Windows.Forms.Keys value. Pin
Shy Agam24-Oct-06 6:48
Shy Agam24-Oct-06 6:48 
GeneralRe: Translating key codes to a System.Windows.Forms.Keys value. Pin
Ed.Poore24-Oct-06 12:08
Ed.Poore24-Oct-06 12:08 
GeneralRe: Translating key codes to a System.Windows.Forms.Keys value. Pin
Ed.Poore24-Oct-06 12:09
Ed.Poore24-Oct-06 12:09 
GeneralRe: Translating key codes to a System.Windows.Forms.Keys value. Pin
Shy Agam24-Oct-06 12:43
Shy Agam24-Oct-06 12:43 
GeneralRe: Translating key codes to a System.Windows.Forms.Keys value. Pin
Ed.Poore24-Oct-06 13:06
Ed.Poore24-Oct-06 13:06 
GeneralRe: Translating key codes to a System.Windows.Forms.Keys value. Pin
Shy Agam24-Oct-06 13:19
Shy Agam24-Oct-06 13:19 
Questionodbcdatareader hangs on close Pin
BlackDice24-Oct-06 5:19
BlackDice24-Oct-06 5:19 
AnswerRe: odbcdatareader hangs on close Pin
ednrgc24-Oct-06 6:27
ednrgc24-Oct-06 6:27 
GeneralRe: odbcdatareader hangs on close Pin
BlackDice24-Oct-06 6:47
BlackDice24-Oct-06 6:47 
GeneralRe: odbcdatareader hangs on close Pin
ednrgc24-Oct-06 6:54
ednrgc24-Oct-06 6:54 
GeneralRe: odbcdatareader hangs on close Pin
BlackDice24-Oct-06 8:33
BlackDice24-Oct-06 8:33 
GeneralRe: odbcdatareader hangs on close Pin
ednrgc24-Oct-06 8:39
ednrgc24-Oct-06 8:39 
GeneralRe: odbcdatareader hangs on close Pin
BlackDice24-Oct-06 9:04
BlackDice24-Oct-06 9:04 
GeneralRe: odbcdatareader hangs on close Pin
BlackDice24-Oct-06 9:15
BlackDice24-Oct-06 9:15 
GeneralRe: odbcdatareader hangs on close Pin
BlackDice24-Oct-06 9:02
BlackDice24-Oct-06 9:02 
AnswerRe: odbcdatareader hangs on close Pin
Eric Dahlvang24-Oct-06 10:40
Eric Dahlvang24-Oct-06 10:40 
MSDN2: DataReader.Close Method [^]

Remarks
You should close data readers when the consumer has completed reading data or no longer wishes to read any more data. Closing the reader ensures that output parameters, if any, are populated.

Depending on the provider implementation, the Close method may wait for the data reader to finish returning all of the specified data before closing. Compare to the Terminate[^] method.

Suggestion:
If you cannot find a provider that supports the Terminate method, you could split your SQL into chunks of 10,000 or so:
select TOP 10000 * from tblPeople where PeopleID > @nLastID order by PeopleID
Looping and creating a new reader each time until you're done, or the user cancels.



--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters

GeneralRe: odbcdatareader hangs on close Pin
BlackDice24-Oct-06 11:20
BlackDice24-Oct-06 11:20 
QuestionGridView and outer joins Pin
lsugirljte24-Oct-06 5:02
lsugirljte24-Oct-06 5:02 
QuestionRe: GridView and outer joins Pin
lsugirljte25-Oct-06 3:31
lsugirljte25-Oct-06 3:31 
QuestionSorting through a Dataset with 1 method Pin
Gareth H24-Oct-06 3:11
Gareth H24-Oct-06 3:11 
AnswerRe: Sorting through a Dataset with 1 method Pin
Not Active24-Oct-06 3:14
mentorNot Active24-Oct-06 3:14 
GeneralRe: Sorting through a Dataset with 1 method Pin
Gareth H24-Oct-06 4:30
Gareth H24-Oct-06 4:30 
GeneralRe: Sorting through a Dataset with 1 method Pin
Not Active24-Oct-06 4:51
mentorNot Active24-Oct-06 4:51 

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.