Click here to Skip to main content
15,911,360 members
Home / Discussions / C#
   

C#

 
GeneralRe: Coping Files over the internet Pin
Orion Buttigieg22-Jul-02 7:16
Orion Buttigieg22-Jul-02 7:16 
QuestionComboBox bug or feature? Pin
r.t.22-Jul-02 4:57
r.t.22-Jul-02 4:57 
AnswerRe: ComboBox bug or feature? Pin
Jasper John22-Jul-02 5:26
sussJasper John22-Jul-02 5:26 
AnswerRe: ComboBox bug or feature? Pin
Chris Rickard22-Jul-02 7:44
Chris Rickard22-Jul-02 7:44 
GeneralTyped DataSets and casing problems Pin
Andrew Connell22-Jul-02 4:33
Andrew Connell22-Jul-02 4:33 
GeneralRe: Typed DataSets and casing problems Pin
jparsons22-Jul-02 5:30
jparsons22-Jul-02 5:30 
GeneralRe: Typed DataSets and casing problems Pin
Andrew Connell22-Jul-02 6:55
Andrew Connell22-Jul-02 6:55 
GeneralScrolling in a RichTexBox Pin
jpeg22-Jul-02 3:51
jpeg22-Jul-02 3:51 
I'm trying to develop my first C# app. I chose to develop a chat software because I wanted to use the sockets' classes.
I've develop a chat server and a chat client. In the last one, I have to display the incoming messages in a RichTextBox control.
The problem is that it doesn't automatically scroll to the end of this control when I append a text.

The piece of code is :

int index=dialogTextBox.TextLength;
dialogTextBox.AppendText(message+"\r\n");
dialogTextBox.Select(index, message.Length);
dialogTextBox.SelectionColor=myColor;

(NB : its append a new line using the 'myColor' color)

I tried to use the ScrollToCaret but it doesn't work.

Please help me !


jpeg
GeneralRe: Scrolling in a RichTexBox Pin
Steven Behnke22-Jul-02 7:30
Steven Behnke22-Jul-02 7:30 
GeneralRe: Scrolling in a RichTexBox Pin
jpeg22-Jul-02 21:37
jpeg22-Jul-02 21:37 
GeneralRe: Scrolling in a RichTexBox Pin
Steven Behnke23-Jul-02 4:09
Steven Behnke23-Jul-02 4:09 
GeneralHelp With DataSets Pin
Li Mu Bai22-Jul-02 3:14
Li Mu Bai22-Jul-02 3:14 
GeneralRe: Help With DataSets Pin
Roger Stewart23-Jul-02 6:12
professionalRoger Stewart23-Jul-02 6:12 
GeneralDataSet Pin
Li Mu Bai22-Jul-02 1:38
Li Mu Bai22-Jul-02 1:38 
GeneralRe: DataSet Pin
James T. Johnson22-Jul-02 1:55
James T. Johnson22-Jul-02 1:55 
GeneralInstalling CollectionGen - How I did it Pin
James T. Johnson22-Jul-02 0:44
James T. Johnson22-Jul-02 0:44 
GeneralRe: Installing CollectionGen - How I did it Pin
Nish Nishant22-Jul-02 3:46
sitebuilderNish Nishant22-Jul-02 3:46 
GeneralRe: Installing CollectionGen - How I did it Pin
James T. Johnson22-Jul-02 6:44
James T. Johnson22-Jul-02 6:44 
QuestionVideo Capture Hardware? Pin
Steven Behnke21-Jul-02 21:08
Steven Behnke21-Jul-02 21:08 
QuestionStatusbar with 3 sliders??? Pin
Daniel Strigl21-Jul-02 21:07
Daniel Strigl21-Jul-02 21:07 
AnswerRe: Statusbar with 3 sliders??? Pin
SHaroz22-Jul-02 5:49
SHaroz22-Jul-02 5:49 
QuestionC# - language design by committee ??? Pin
Christian Graus21-Jul-02 12:55
protectorChristian Graus21-Jul-02 12:55 
AnswerRe: C# - language design by committee ??? Pin
Rama Krishna Vavilala21-Jul-02 15:16
Rama Krishna Vavilala21-Jul-02 15:16 
GeneralRe: C# - language design by committee ??? Pin
Christian Graus21-Jul-02 15:28
protectorChristian Graus21-Jul-02 15:28 
GeneralRe: C# - language design by committee ??? Pin
Rama Krishna Vavilala21-Jul-02 15:38
Rama Krishna Vavilala21-Jul-02 15:38 

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.