Exceed Listbox Character Limit?

SamIsSyko
08-23-2009, 04:39 AM
Im working on this project thats nearly finished but I am having issues programming one of the features.
Pretty much what this feature im trying to make is a HTML file manager were you can paste your html coding into a Text Box so you can save and view it easily.
The thing is I already programmed it to work with one file but I want to make it so it will hold up to as many as the user wants.
I attempted to save the html from the Textbox into a Listbox which works very well but I found out that the Listbox as a character limit, so if a user has a large amount of coding it will be cut off after a certain amount of characters.

So my question is, is there a way to make the Listbox hold more data? If answer is no then can somebody explain how I would go about doing this instead?
I made a listbox and added "test1" then a new line "test2" then a new line "test3" now when you click "test2" it will load into a arrayed textbox saying "this is test2" and "this is test3" for "test3" using indexs. Now I go this part all programmed but I want the user to be able to delete one of the items in the Listbox so lets say if they deleted Test2 then the the Test3 will now become Test2's index and just jumble it all up. Im not sure if thats going to confuse anybody or not but if you understand that and could help me then it would be very very appreciated

If needed I can post the source of what I have so far then maybe somebody can point me in the right direction? Thanks in advance.

vb5prgrmr
08-23-2009, 10:58 PM
32k is about the limit if I remember correctly and about your index problem I take it you have an array of some sorts to back it up. When you remove an item from the list box, alter your array to coincide with the listbox.


Good Luck

webbone
08-23-2009, 11:02 PM
Both the Textbox and Listbox have the 32K character limit if I am recalling correctly - you can in fact EXCEED this (as long as you are less than 64K) but you will have issues accessing the data...

If you need a "big textbox" use the RichTextBox control.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum