textbox maxlength bug in dotnet1.1

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?
 
J

Jacky Kwok

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;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top