Aslam! Dear I want to draw a line in list box of his own chice by specifing the poit of line. Is it possible? If not then which compnent of GUI is best for this purpose and try to give the solution whith example
Thanks

ur question is not clear pls give more details

You may be able to add the lines as images to the items collection and use the DisplayMember property to point to those images. If not, then you probably need to work with ListView and the ImageList class.

For real simplicity just add a string to the items collection with dashes in it "-------" or underscores "________"

Not nice but simple.

Otherwise you will need to use the GDI tools and the graphics object of the listbox at run time and override the onpaint event.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.