Customizing controls
-
Hi all, I would like to customize a text box so that it holds a collection. How can this be done? (i.e.) I want to override the text box similar to a listbox, but only one item should be visible at a time and there should not be any scroll bar. Thanks in advance. Thanks and Regards Madhu
-
Hi all, I would like to customize a text box so that it holds a collection. How can this be done? (i.e.) I want to override the text box similar to a listbox, but only one item should be visible at a time and there should not be any scroll bar. Thanks in advance. Thanks and Regards Madhu
-
you can derive a class from the TextBox class and then define the properties that u want for the derived textbox. you can define an object of the Arraylist to contain the collection of the textbox. Hope u get it Regards, Pramod
Thanks Pramod But my problem was actually i need it the way as it is in list box. i have provided an Items property and when i click on the ellipsis button i want it to display the string collection editor. But for me it returns an error telling no component. How can this be resolved Thanks in advance again Thanks and Regards Madhu
-
Thanks Pramod But my problem was actually i need it the way as it is in list box. i have provided an Items property and when i click on the ellipsis button i want it to display the string collection editor. But for me it returns an error telling no component. How can this be resolved Thanks in advance again Thanks and Regards Madhu
i don't know hoe to display the ellipsis button u can surely show the String collection editor, for this u can create a form with the FormBorderStyle = none and put a Richtextbox on that form and then set the items property by reading each line of the Richtextbox. Regards, Pramod