473,395 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Can't write in a text box

Help! I've created a text box which won't let me write in
it. It opens ready filled with text to the limit of the
number of characters which I've set (MaxLength=3200) and
this is in 40 lines of 80 characters. I can delete
characters using the keyboard, but when I try to add in
any text in place of the deleted characters nothing is
input and the cursor stays in the same place. If I output
textbox1.text I can verify that the deleted characters are
missing, and that nothing has been added. I've compared
all the parameters with another text box in another
program which will let me input from the keyboard, and
everything looks the same.

Can anyone suggest why this text box won't accept keyboard
input?

Thanks
Nov 20 '05 #1
4 4805
Cor
Hi Simonc,

Can it bee you made 40*80 charachter lines plus a vbcrlf charachter so that
is
40*80 + 40*1 = 3240 characters.

I think that you can delete till 3200 and not insert.
When you come at 3199 you can starting inserting again.

Just a thought?

I am curious if it was this.?

Cor
Nov 20 '05 #2
Cor

You are right that the problem was in the specification of
the maximum length. In fact it turns out that vbCrLf
counts as two characters. What confused me was that
despite specifying the max length of the text box when I
loaded text into it (textbox.text = strHeader) it
displayed more than this number of characters.

Many thanks for your help

Simon

-----Original Message-----
Hi Simonc,

Can it bee you made 40*80 charachter lines plus a vbcrlf charachter so thatis
40*80 + 40*1 = 3240 characters.

I think that you can delete till 3200 and not insert.
When you come at 3199 you can starting inserting again.

Just a thought?

I am curious if it was this.?

Cor
.

Nov 20 '05 #3
Cor
Simonc,
the maximum length. In fact it turns out that vbCrLf
counts as two characters.


Of course it are Carrier Returen character and the LineFeed character,
I knew it, but I told you I was myself curious if this was the problem.

I am happy we found your problem

Cor
Nov 20 '05 #4
Hi Simon,

It is confusing because the Designer doesn't enforce the MaxLength.
You can put any amount in through code. MaxLength only takes effect when the
User types or pastes text.

Regards,
Fergus

ps. Cor, good thinking - this had me stumped last night but all is clear now.
;-)
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Anna K. | last post by:
Hi Experts, I'm new to JavaScript and web-based apps development, so I'll tell you right off that I don't really know my way around it as of yet. I'm trying to create a code library set with...
0
by: Newasps | last post by:
Hi guys, I have a problem with UpdateCommand Event. In tihs event Ä°'m creating required controls to get that controls' values and also get them. But when I try to get updated values I'm getting the...
0
by: Ozer | last post by:
Hi guys, I need some help. In my datagrid's updatecommand event i'm trying to get textboxes values and also do it. But when i update the values in textboxes and fire the event, I can't get the...
1
by: dx | last post by:
I'm extremely frustrated with ASP.NET...again! To me this should be as simple as setting oCheckBox.Checked = True.. yet for some reason it isn't. I have a user control (ascx) that that has a...
9
by: WRH | last post by:
Hello I am new to asp but I made some Jscript functions which work fine. The functions contain some strings used as a registration key for some apps. It is important that these strings not be...
0
by: DC | last post by:
The problem I'm using the .NET GridView and FormView objects for the first time and im getting the error "An OleDbParameter with ParameterName '@ID' is not contained by this...
4
by: Billy | last post by:
Hi all, I'm building a text file from a database table using the ASP Write Method and would like to position the cursor in a specific column position before writing the fields. As I loop through...
2
by: Harry Haller | last post by:
Can I remove text from a StringWriter ? I have a StringWriter object, the content of which looks like this: "<div>Some other html which I wish to keep</div>" Can I remove the unwanted <div>,...
7
by: Smurfas | last post by:
Hi, I write News Script: Write news skript, but how maket that - Whent I push "Read Full News" show full news? Some like that: http://blogs.msdn.com/ Sorry, for bad English My script ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.