Click here to Skip to main content
15,896,269 members
Home / Discussions / C#
   

C#

 
AnswerRe: My application stays alive in the process list after closing T-T Pin
S. Senthil Kumar11-Oct-06 6:38
S. Senthil Kumar11-Oct-06 6:38 
AnswerRe: My application stays alive in the process list after closing T-T Pin
Amar Chaudhary11-Oct-06 6:54
Amar Chaudhary11-Oct-06 6:54 
GeneralRe: My application stays alive in the process list after closing T-T Pin
AesopTurtle11-Oct-06 12:16
AesopTurtle11-Oct-06 12:16 
GeneralRe: My application stays alive in the process list after closing T-T Pin
Amar Chaudhary11-Oct-06 14:52
Amar Chaudhary11-Oct-06 14:52 
AnswerRe: My application stays alive in the process list after closing T-T Pin
Tim Almdal11-Oct-06 19:33
Tim Almdal11-Oct-06 19:33 
QuestionHow do i force richtext box to scroll to a selected text in my code. Pin
Agyeman11-Oct-06 4:43
Agyeman11-Oct-06 4:43 
AnswerRe: How do i force richtext box to scroll to a selected text in my code. Pin
S. Senthil Kumar11-Oct-06 6:42
S. Senthil Kumar11-Oct-06 6:42 
GeneralRe: How do i force richtext box to scroll to a selected text in my code. Pin
fracalifa16-Oct-06 9:31
fracalifa16-Oct-06 9:31 
Hi Senthil,

I have the same problem, but the ScrollToCare method you have suggested has no effect (or not what I hoped to do)

This code snippet should place the cursor always at the current position
but it does not scroll to the end of the lines.

<br />
private void button1_Click(object sender, System.EventArgs e)<br />
{<br />
   try<br />
   {<br />
      this.richTextBox1.Clear();<br />
      for(int i=0; i<200; i++)<br />
      {<br />
	this.richTextBox1.SelectedText = "Index = " + i.ToString() + "\r\n";   // 1. try<br />
	// this.richTextBox1.AppendText("Index = " + i.ToString()+ "\r\n");    // 2. try<br />
	// this.richTextBox1.Text += "Index = " + i.ToString()+ "\r\n";        // 3. try<br />
	this.richTextBox1.ScrollToCaret();<br />
      }<br />
   }<br />
   catch{}<br />
}<br />


What's wrong ?

Tnx in advance
Regards
Frank
QuestionParticle Filter Pin
VickyC#11-Oct-06 4:03
VickyC#11-Oct-06 4:03 
QuestionDifference bt cloaning and copy Pin
Ravi Shankar4311-Oct-06 3:44
Ravi Shankar4311-Oct-06 3:44 
AnswerRe: Difference bt cloaning and copy Pin
J4amieC11-Oct-06 4:15
J4amieC11-Oct-06 4:15 
Generalget me the answer for that Pin
Ravi Shankar4311-Oct-06 4:22
Ravi Shankar4311-Oct-06 4:22 
GeneralRe: get me the answer for that Pin
J4amieC11-Oct-06 4:30
J4amieC11-Oct-06 4:30 
Generalsorry for that Pin
Ravi Shankar4311-Oct-06 4:52
Ravi Shankar4311-Oct-06 4:52 
QuestionAdding ListViewItem via Api Pin
adamario11-Oct-06 3:31
adamario11-Oct-06 3:31 
AnswerRe: Adding ListViewItem via Api Pin
led mike11-Oct-06 4:58
led mike11-Oct-06 4:58 
GeneralRe: Adding ListViewItem via Api Pin
adamario11-Oct-06 7:56
adamario11-Oct-06 7:56 
QuestionHow to format your GridView autogenerated columns Pin
Siderite Zaqwedex11-Oct-06 3:09
Siderite Zaqwedex11-Oct-06 3:09 
Questionwaitcallback and function Pin
Saamir11-Oct-06 3:05
Saamir11-Oct-06 3:05 
AnswerRe: waitcallback and function Pin
Bekjong11-Oct-06 4:07
Bekjong11-Oct-06 4:07 
GeneralRe: waitcallback and function Pin
Saamir11-Oct-06 4:14
Saamir11-Oct-06 4:14 
GeneralRe: waitcallback and function Pin
Saamir11-Oct-06 5:40
Saamir11-Oct-06 5:40 
GeneralRe: waitcallback and function Pin
Bekjong11-Oct-06 5:44
Bekjong11-Oct-06 5:44 
QuestionReading from Serial Port to a struct Pin
NYTSX11-Oct-06 2:55
NYTSX11-Oct-06 2:55 
AnswerRe: Reading from Serial Port to a struct Pin
led mike11-Oct-06 6:12
led mike11-Oct-06 6:12 

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.