944,089 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 2010
  • C# RSS
Nov 2nd, 2009
0

Listview item display

Expand Post »
Listview item display:

In my application when I am entering string it compares with formtext of each form.If it matches with
any of the formText ,it displays the image of panel2 that is on each form .These images appears in listview
as a result of matching of two strings(string in textbox and string of formtext)...
Now problem is that when results are displayed in listview ,then the images appears in center and I want to
left allign each image in teh column.
How can I allign the images to the left in the column like we have SNO. alligned to the left in column1.
Similar Threads
Reputation Points: 31
Solved Threads: 36
Posting Whiz
avirag is offline Offline
312 posts
since Jun 2009
Nov 2nd, 2009
0
Re: Listview item display
avirag, I don't know how to get the control to display exactly how you want. The view set to detail gives you the single column list (what you have now), but I don't know how to cause it to draw left instead of center.

The largeicon view will give you the left justification, but it begins another column as needed to fill with items. The limit on the image width is 256 (you have 230 now I think), so you can't go much higher. I was able to get the single column to the left (your desired view) by resizing the form and control to be just under the width * 2 requirement it needed to display two columns in largeicon view mode, but for this to look nice and achieve the desired result, you would need to rearrange the items you have in top panel in order to still have them visible after shortening the width of the form to shrink your listview panel...

Maybe someone else has an idea...
Reputation Points: 341
Solved Threads: 233
Posting Shark
DdoubleD is offline Offline
984 posts
since Jul 2009
Nov 2nd, 2009
0
Re: Listview item display
Upload your search engine project again demonstrating the behavior and we will take a look at it............................................................................................................................................
Last edited by sknake; Nov 2nd, 2009 at 6:49 pm.
Featured Poster
Reputation Points: 1749
Solved Threads: 735
Senior Poster
sknake is offline Offline
3,948 posts
since Feb 2009
Nov 3rd, 2009
0
Re: Listview item display
Click to Expand / Collapse  Quote originally posted by sknake ...
Upload your search engine project again demonstrating the behavior and we will take a look at it............................................................................................................................................
Here is the application Sknake..........
In this when results are displaying in Listview, so under Result column images of the results are appearing in the center, i want that image should appears towards left in Result column like we have S.No. towards left in column1.............
I don't want to remove the S.No. Column. I just want that result column items should appear towards left.......
Currently items are displaying in center.............
Kindly help me regarding this..........
Attached Files
File Type: zip CompareString7_New.zip (415.9 KB, 72 views)
Reputation Points: 31
Solved Threads: 36
Posting Whiz
avirag is offline Offline
312 posts
since Jun 2009
Nov 3rd, 2009
0
Re: Listview item display
You need to owner draw the list view and render the picture manually. It looks like there is no formatting for the listview that we can use here. Take a stab at it and post your updated code up here and we'll take a look at it

(You could also consider using a grid)
Last edited by sknake; Nov 3rd, 2009 at 8:48 pm.
Featured Poster
Reputation Points: 1749
Solved Threads: 735
Senior Poster
sknake is offline Offline
3,948 posts
since Feb 2009

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: 2 keys down
Next Thread in C# Forum Timeline: Product names showing as the class name





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


Follow us on Twitter


© 2011 DaniWeb® LLC