Click here to Skip to main content
15,924,196 members
Home / Discussions / C#
   

C#

 
Questionhow can I get system time Pin
lockepeak22-Sep-07 20:16
lockepeak22-Sep-07 20:16 
AnswerRe: how can I get system time Pin
Christian Graus22-Sep-07 20:34
protectorChristian Graus22-Sep-07 20:34 
QuestionHow can I access objects in a ListArray directly? Pin
JoeRip22-Sep-07 16:45
JoeRip22-Sep-07 16:45 
AnswerRe: How can I access objects in a ListArray directly? Pin
PIEBALDconsult22-Sep-07 17:21
mvePIEBALDconsult22-Sep-07 17:21 
GeneralRe: How can I access objects in a ListArray directly? Pin
JoeRip22-Sep-07 17:25
JoeRip22-Sep-07 17:25 
GeneralRe: How can I access objects in a ListArray directly? Pin
Ravi Bhavnani22-Sep-07 18:16
professionalRavi Bhavnani22-Sep-07 18:16 
GeneralRe: How can I access objects in a ListArray directly? Pin
PIEBALDconsult23-Sep-07 4:38
mvePIEBALDconsult23-Sep-07 4:38 
QuestionRTB Redraw problem Pin
IceWater4222-Sep-07 11:06
IceWater4222-Sep-07 11:06 
I have updated my RichTextBox but i can't get it to redraw.

I have tried several ways but the only one that somewhat works is to SELECT the data that is being updated .. but that has the nauseating effect on the User of causing the entire RTB text to scroll ... bad bad bad.

(no human input is involved in updating the RTB ... 183 lines are updated in microseconds ... unless SELECT is used ... then it takes a second or so)

The RTB gets updated just great, but i can not get it to redraw.
Suggestions, please.


private void UpdateRemainingTimes()
{
for (int n = 0; n < numReminders; n++)
{
string remainingTimeStr = GetRemainingTimeString(remDate[n]);
int lineIndex = ReminderRTB.GetFirstCharIndexFromLine(n);
int indexToDDD = lineIndex + 16;

ReminderRTB.Text.Remove(indexToDDD,remainingTimeStr.Length); // delete old stuff
ReminderRTB.Text.Insert(indexToDDD, remainingTimeStr); // put in new stuff
}
ReminderRTB.Invalidate(); // ??? does not cause the control to be redrawn ???
}

AnswerRe: RTB Redraw problem Pin
MoustafaS22-Sep-07 11:41
MoustafaS22-Sep-07 11:41 
GeneralRe: RTB Redraw problem Pin
IceWater4222-Sep-07 14:08
IceWater4222-Sep-07 14:08 
AnswerRe: RTB Redraw problem Pin
Abisodun22-Sep-07 13:53
Abisodun22-Sep-07 13:53 
GeneralRe: RTB Redraw problem Pin
IceWater4222-Sep-07 15:33
IceWater4222-Sep-07 15:33 
QuestionWindows service communication Pin
Justin Perez22-Sep-07 6:57
Justin Perez22-Sep-07 6:57 
AnswerRe: Windows service communication Pin
Justin Perez22-Sep-07 7:23
Justin Perez22-Sep-07 7:23 
GeneralRe: Windows service communication Pin
Scott Dorman22-Sep-07 14:25
professionalScott Dorman22-Sep-07 14:25 
QuestionXML Encryption Pin
Member 450778122-Sep-07 6:01
Member 450778122-Sep-07 6:01 
AnswerRe: XML Encryption Pin
Anthony Mushrow22-Sep-07 6:30
professionalAnthony Mushrow22-Sep-07 6:30 
AnswerRe: XML Encryption Pin
Scott Dorman22-Sep-07 14:26
professionalScott Dorman22-Sep-07 14:26 
AnswerRe: XML Encryption Pin
Nissim Salomon23-Sep-07 1:09
Nissim Salomon23-Sep-07 1:09 
QuestionTroubles closing a thread [modified] Pin
Anthony Mushrow22-Sep-07 5:49
professionalAnthony Mushrow22-Sep-07 5:49 
QuestionReceive TV remote controller signals? Pin
tmp022-Sep-07 4:05
tmp022-Sep-07 4:05 
QuestionGetting Processor Id Pin
M. J. Jaya Chitra22-Sep-07 2:32
M. J. Jaya Chitra22-Sep-07 2:32 
AnswerRe: Getting Processor Id Pin
Paul Conrad22-Sep-07 5:24
professionalPaul Conrad22-Sep-07 5:24 
AnswerRe: Getting Processor Id Pin
Nissim Salomon22-Sep-07 9:21
Nissim Salomon22-Sep-07 9:21 
Questionwhy my enum return value is in integer in C# Pin
nicolus22-Sep-07 2:19
nicolus22-Sep-07 2:19 

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.