Click here to Skip to main content
15,905,071 members
Home / Discussions / C#
   

C#

 
GeneralRe: Threads and exceptions Pin
Daniel Turini11-Feb-05 8:17
Daniel Turini11-Feb-05 8:17 
GeneralAsynchronous message processing Pin
Esmo200011-Feb-05 4:55
Esmo200011-Feb-05 4:55 
GeneralRe: Asynchronous message processing Pin
Esmo200011-Feb-05 7:15
Esmo200011-Feb-05 7:15 
GeneralVariable assignment problem... Pin
new_phoenix11-Feb-05 4:32
new_phoenix11-Feb-05 4:32 
GeneralRe: Variable assignment problem... Pin
Daniel Turini11-Feb-05 6:53
Daniel Turini11-Feb-05 6:53 
GeneralRe: Variable assignment problem... Pin
new_phoenix11-Feb-05 9:01
new_phoenix11-Feb-05 9:01 
GeneralTaskbarNotification display problems Pin
eynkram11-Feb-05 4:27
eynkram11-Feb-05 4:27 
GeneralRe: TaskbarNotification display problems Pin
eynkram17-Feb-05 3:52
eynkram17-Feb-05 3:52 
GeneralProblem while Working with XmlValidatingReader!!!!! Pin
abcxyz8211-Feb-05 4:01
abcxyz8211-Feb-05 4:01 
GeneralRe: Problem while Working with XmlValidatingReader!!!!! Pin
Phil Hobgen11-Feb-05 22:53
Phil Hobgen11-Feb-05 22:53 
GeneralAppDomain and ResolveEventArgs Pin
Marc Clifton11-Feb-05 3:24
mvaMarc Clifton11-Feb-05 3:24 
GeneralRe: AppDomain and ResolveEventArgs Pin
Daniel Turini11-Feb-05 7:01
Daniel Turini11-Feb-05 7:01 
GeneralRe: AppDomain and ResolveEventArgs Pin
leppie11-Feb-05 9:45
leppie11-Feb-05 9:45 
Generalautomatic scroll down in rich text box Pin
kitsune_me11-Feb-05 2:57
kitsune_me11-Feb-05 2:57 
GeneralRe: automatic scroll down in rich text box Pin
leppie11-Feb-05 3:08
leppie11-Feb-05 3:08 
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 

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.