944,120 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 2502
  • C# RSS
Jul 8th, 2007
0

workink with list box in GUI

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
javed_PUCIT is offline Offline
1 posts
since Jul 2007
Jul 9th, 2007
0

Re: workink with list box in GUI

ur question is not clear pls give more details
Reputation Points: 10
Solved Threads: 1
Newbie Poster
kailash.kandpal is offline Offline
2 posts
since Jul 2007
Jul 9th, 2007
0

Re: workink with list box in GUI

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.
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 839
Posting Genius
Ezzaral is offline Offline
6,761 posts
since May 2007
Jul 10th, 2007
0

Re: workink with list box in GUI

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.
Reputation Points: 26
Solved Threads: 11
Posting Whiz in Training
f1 fan is offline Offline
275 posts
since Jan 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: How to make C# application quit
Next Thread in C# Forum Timeline: recusive method problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC