Wrapping a text in textbox
-
hi all, I have a panel which contains a picturebox and two textboxes. in one of the textbox, some large content is to be displayed. this content is dynamic and i want the textbox to wrap the text accordingly. i set the textbox multiline property to true and also set wordwrap=true. inaddition i set the acceptsreturn=true. but still the text is not wrapped. how can i achieve this?
Thanks in advance.:) Regards Anuradha
-
hi all, I have a panel which contains a picturebox and two textboxes. in one of the textbox, some large content is to be displayed. this content is dynamic and i want the textbox to wrap the text accordingly. i set the textbox multiline property to true and also set wordwrap=true. inaddition i set the acceptsreturn=true. but still the text is not wrapped. how can i achieve this?
Thanks in advance.:) Regards Anuradha
anu81 wrote:
how can i achieve this?
Try to enter the real paragraph.. sometimes, people used to entry "aaaaaaaaaaaaaaaaa" or something with space . this is wrong. So, try to enter the real paragraph (maybe, copy from news or somewhere) and see whether it works or not..
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
-
anu81 wrote:
how can i achieve this?
Try to enter the real paragraph.. sometimes, people used to entry "aaaaaaaaaaaaaaaaa" or something with space . this is wrong. So, try to enter the real paragraph (maybe, copy from news or somewhere) and see whether it works or not..
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
hi, i am actually trying with a real paragraph which is obtained dynamically. when i put a dummy paragraph and tested its working fine. but when i put the dynamic content which contains more paragraphs, the text is not wrapped properly. Any ideas? and thanks for the response. Regards Anuradha
-
hi, i am actually trying with a real paragraph which is obtained dynamically. when i put a dummy paragraph and tested its working fine. but when i put the dynamic content which contains more paragraphs, the text is not wrapped properly. Any ideas? and thanks for the response. Regards Anuradha
What about trying the dynamic content as a static content? For example: You store the text in database, right? so, copy this text and pasted in HTML. check whether it is wrapped properly or not. or you can show us the content that you stored in database. then, we can test in our side and will let you know the result..
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
-
What about trying the dynamic content as a static content? For example: You store the text in database, right? so, copy this text and pasted in HTML. check whether it is wrapped properly or not. or you can show us the content that you stored in database. then, we can test in our side and will let you know the result..
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
hi, Thanks so much for your help. i got it working now. i had added the picturebox and two textboxes during design time. now i added them at runtime and set the all properties again. now its working fine although i have a vertical scrollbar for the textbox. but without that the panel becomes so big so its better i have the vertical scrollbar. thanks once again for your help. Regards Anuradha