textbox maxlength bug in dotnet1.1

  • Thread starter Thread starter Jacky Kwok
  • Start date Start date
J

Jacky Kwok

Hi All:

As I know, there is a bug in the textbox maxlengthin dotnet1.1.

When the textbox.maxLength set to 0 or value larger than 32767, it has
no effect. The textbox.appendtext cannot add text when the textbox has
contained 32767 charaters.

It of cause works in dotnet 1.0.


How to overcome this problem?
 
Jacky said:
Hi All:

As I know, there is a bug in the textbox maxlengthin dotnet1.1.

When the textbox.maxLength set to 0 or value larger than 32767, it has
no effect. The textbox.appendtext cannot add text when the textbox has
contained 32767 charaters.

It of cause works in dotnet 1.0.


How to overcome this problem?


Finally, I find that I must use API to append text to solve the problem.

Using
API "SendMessageW"
and
EM_SETSEL=0x00B1;
EM_REPLACESEL=0x00C2;
 
Back
Top