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

C#

 
GeneralRe: looking for a decent book on c# for advanced programmers Pin
Ravi Bhavnani28-Apr-14 4:44
professionalRavi Bhavnani28-Apr-14 4:44 
AnswerRe: looking for a decent book on c# for advanced programmers Pin
thatraja27-Apr-14 20:59
professionalthatraja27-Apr-14 20:59 
GeneralRe: looking for a decent book on c# for advanced programmers Pin
Dnyaneshwar@Pune28-Apr-14 0:11
Dnyaneshwar@Pune28-Apr-14 0:11 
GeneralRe: looking for a decent book on c# for advanced programmers Pin
rutja_deore28-Apr-14 0:12
rutja_deore28-Apr-14 0:12 
GeneralRe: looking for a decent book on c# for advanced programmers Pin
thatraja28-Apr-14 4:29
professionalthatraja28-Apr-14 4:29 
AnswerRe: looking for a decent book on c# for advanced programmers Pin
Ravi Bhavnani28-Apr-14 4:43
professionalRavi Bhavnani28-Apr-14 4:43 
QuestionRunning thread to refresh image disable scrollbars in DataGridView Pin
neualex26-Apr-14 5:44
neualex26-Apr-14 5:44 
AnswerRe: Running thread to refresh image disable scrollbars in DataGridView Pin
OriginalGriff26-Apr-14 6:06
mveOriginalGriff26-Apr-14 6:06 
You can't just move runQuery into a separate thread - it doesn't work like that.
You can't update display controls from any thread except the one they were created on: the UI thread.

What I would do is use a BackgroundWorker, and use the RunWorkerCompleted event to set the DataSource to the (now complete) DataTable. If that is causing the bottleneck then I'd load each record individually from the DataReader and pass it to the UI thread via the ProgressChanged event (which has a UserState property to the ProgressChangedEventArgs) and add it manually to the display grid.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

GeneralRe: Running thread to refresh image disable scrollbars in DataGridView Pin
neualex28-Apr-14 3:28
neualex28-Apr-14 3:28 
GeneralRe: Running thread to refresh image disable scrollbars in DataGridView Pin
OriginalGriff28-Apr-14 3:34
mveOriginalGriff28-Apr-14 3:34 
QuestionI got this error on page load my photo gallery page . http://s.codeproject.com/script/Forums/Images/smiley_WTF.gif Pin
300sparta25-Apr-14 23:03
300sparta25-Apr-14 23:03 
AnswerRe: I got this error on page load my photo gallery page . http://s.codeproject.com/script/Forums/Images/smiley_WTF.gif Pin
OriginalGriff25-Apr-14 23:18
mveOriginalGriff25-Apr-14 23:18 
QuestionHow can I change the background color of the part of a ComboBox that is always visible? Pin
arnold_w25-Apr-14 4:34
arnold_w25-Apr-14 4:34 
QuestionRe: How can I change the background color of the part of a ComboBox that is always visible? Pin
Richard Deeming25-Apr-14 4:52
mveRichard Deeming25-Apr-14 4:52 
AnswerRe: How can I change the background color of the part of a ComboBox that is always visible? Pin
arnold_w25-Apr-14 4:56
arnold_w25-Apr-14 4:56 
GeneralRe: How can I change the background color of the part of a ComboBox that is always visible? Pin
Richard Deeming25-Apr-14 5:10
mveRichard Deeming25-Apr-14 5:10 
GeneralRe: How can I change the background color of the part of a ComboBox that is always visible? Pin
Mycroft Holmes25-Apr-14 13:23
professionalMycroft Holmes25-Apr-14 13:23 
GeneralRe: How can I change the background color of the part of a ComboBox that is always visible? Pin
arnold_w27-Apr-14 21:22
arnold_w27-Apr-14 21:22 
GeneralRe: How can I change the background color of the part of a ComboBox that is always visible? Pin
Richard Deeming28-Apr-14 1:39
mveRichard Deeming28-Apr-14 1:39 
GeneralRe: How can I change the background color of the part of a ComboBox that is always visible? Pin
arnold_w28-Apr-14 2:17
arnold_w28-Apr-14 2:17 
GeneralRe: How can I change the background color of the part of a ComboBox that is always visible? Pin
Richard Deeming28-Apr-14 2:32
mveRichard Deeming28-Apr-14 2:32 
GeneralRe: How can I change the background color of the part of a ComboBox that is always visible? Pin
arnold_w28-Apr-14 2:35
arnold_w28-Apr-14 2:35 
QuestionHow can I disallow SelectedValue to be -1 in a ComboBox? Pin
arnold_w25-Apr-14 4:28
arnold_w25-Apr-14 4:28 
AnswerRe: How can I disallow SelectedValue to be -1 in a ComboBox? Pin
OriginalGriff25-Apr-14 4:42
mveOriginalGriff25-Apr-14 4:42 
GeneralRe: How can I disallow SelectedValue to be -1 in a ComboBox? Pin
arnold_w25-Apr-14 4:48
arnold_w25-Apr-14 4:48 

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.