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

C#

 
GeneralRe: automatic scroll down in rich text box Pin
kitsune_me11-Feb-05 18:27
kitsune_me11-Feb-05 18:27 
GeneralRe: automatic scroll down in rich text box Pin
mav.northwind11-Feb-05 4:36
mav.northwind11-Feb-05 4:36 
GeneralRe: automatic scroll down in rich text box Pin
kitsune_me11-Feb-05 5:25
kitsune_me11-Feb-05 5:25 
GeneralRe: automatic scroll down in rich text box Pin
mav.northwind11-Feb-05 6:07
mav.northwind11-Feb-05 6:07 
GeneralRe: automatic scroll down in rich text box Pin
Dave Kreskowiak11-Feb-05 9:13
mveDave Kreskowiak11-Feb-05 9:13 
GeneralRe: automatic scroll down in rich text box Pin
kitsune_me11-Feb-05 18:26
kitsune_me11-Feb-05 18:26 
GeneralRe: automatic scroll down in rich text box Pin
S. Senthil Kumar11-Feb-05 7:02
S. Senthil Kumar11-Feb-05 7:02 
GeneralRe: automatic scroll down in rich text box Pin
mav.northwind11-Feb-05 8:07
mav.northwind11-Feb-05 8:07 
Regardless of whether AppendText() really scrolls to the end (I don't know if it does), everybody should be careful when using this function!

There's another bug (introduced in .NET 1.1 IIRC) that limits text in a TextBox to 32K, no matter what the MaxLength property is set to, when text is appended via AppendText()!

Using textBox1.Text += "NewText"; instead works as expected.
You can try it:
TextBox tb = new TextBox();
tb.MaxLength = 0; // or any value > 32K
tb.Text = new string('0', 32767);
tb.AppendText("12345");
System.Diagnostics.Trace.Assert(tb.Text.Length == 32767+5);
This will throw an assertion every time.Frown | :(

I came across this bug when I had written a program to concatenate many texts and didn't notice at first, until my colleague told me that ~500KB of text concatenated only gave a 32KB file, although I had explicitely set MaxLength to 0.

mav
GeneralRe: automatic scroll down in rich text box Pin
kitsune_me11-Feb-05 18:30
kitsune_me11-Feb-05 18:30 
GeneralRe: automatic scroll down in rich text box Pin
leppie11-Feb-05 9:50
leppie11-Feb-05 9:50 
Generalcosine rule Pin
Captain Trips11-Feb-05 1:38
Captain Trips11-Feb-05 1:38 
GeneralRe: cosine rule Pin
Stefan Troschuetz11-Feb-05 2:14
Stefan Troschuetz11-Feb-05 2:14 
GeneralRe: cosine rule Pin
Captain Trips11-Feb-05 3:21
Captain Trips11-Feb-05 3:21 
GeneralRe: cosine rule Pin
Stefan Troschuetz11-Feb-05 3:54
Stefan Troschuetz11-Feb-05 3:54 
GeneralSimple Database App - Combobox + DataGrid Pin
hollowMedia [0xFA7E]11-Feb-05 1:32
hollowMedia [0xFA7E]11-Feb-05 1:32 
GeneralRe: Simple Database App - Combobox + DataGrid Pin
hollowMedia [0xFA7E]15-Feb-05 1:05
hollowMedia [0xFA7E]15-Feb-05 1:05 
GeneralIIS Virtual Directories Enumeration Pin
Filipe Peixinho11-Feb-05 1:12
Filipe Peixinho11-Feb-05 1:12 
GeneralCDO: Synchonize Exchange with Outlook Pin
swissglide11-Feb-05 0:17
swissglide11-Feb-05 0:17 
QuestionHow can I open Web page in Microsoft Web Browser through ATL Pin
devom11-Feb-05 0:06
devom11-Feb-05 0:06 
AnswerRe: How can I open Web page in Microsoft Web Browser through ATL Pin
Dave Kreskowiak11-Feb-05 4:17
mveDave Kreskowiak11-Feb-05 4:17 
GeneralCF memory leaks :-( :-( Pin
zuschauer198010-Feb-05 23:44
zuschauer198010-Feb-05 23:44 
GeneralRe: Serialize a String Pin
Nish Nishant10-Feb-05 22:12
sitebuilderNish Nishant10-Feb-05 22:12 
GeneralWSE Client Pin
qur10-Feb-05 21:13
qur10-Feb-05 21:13 
GeneralLose data on a TextBox Pin
sasan5610-Feb-05 20:48
sasan5610-Feb-05 20:48 
Generalget current row Pin
sasan5610-Feb-05 20:36
sasan5610-Feb-05 20:36 

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.