Download Horizon :: Staff Members :: TheTechGame.com :: XboxMB YouTube


Old 02-05-2012   #1 (permalink)
Jeremy Q's Avatar
Join Date: Sep 2010
Location: Land of the Rustled Jimmies
Posts: 1,065
Thanks: 481
Default Picture in Combobox (DNB)

Anyone know how to have an image show in a dotnetbar combobox?

Like showing one of these images when clicked in the combobox...

__________________
One of the programming leads at Visual Bounds. PM me if you're interested in working with us!



Who in the world am I? Ah, that's the great puzzle.
-Lewis Carroll
Jeremy Q is offline Send a message via AIM to Jeremy Q


Old 02-05-2012   #2 (permalink)
Experiment5X's Avatar
Tree Octopus
Join Date: Sep 2010
Location: New York
Posts: 1,102
Thanks: 738
Default Re: Picture in Combobox (DNB)

I didn't test anything, but adding an image this way should work.

Experiment5X is offline Send a message via AIM to Experiment5X


Old 02-05-2012   #3 (permalink)
Jeremy Q's Avatar
Join Date: Sep 2010
Location: Land of the Rustled Jimmies
Posts: 1,065
Thanks: 481
Default Re: Picture in Combobox (DNB)

No, I know how to add an image to the actual items in the dropdown... But I want the selected image to show up in the box there.
__________________
One of the programming leads at Visual Bounds. PM me if you're interested in working with us!



Who in the world am I? Ah, that's the great puzzle.
-Lewis Carroll
Jeremy Q is offline Send a message via AIM to Jeremy Q


Old 02-05-2012   #4 (permalink)
Cheater912's Avatar
:D
Join Date: Jul 2010
Location: New York
Posts: 5,683
Thanks: 12,225
Default Re: Picture in Combobox (DNB)

Code:
comboBox.Items.Add(new ComboItem("Text", IMAGE));

Edit: The image should show up in the main box as long as it's wide enough to hold it.
__________________
Cheater912 is offline Send a message via Skype™ to Cheater912


Old 02-05-2012   #5 (permalink)
Jeremy Q's Avatar
Join Date: Sep 2010
Location: Land of the Rustled Jimmies
Posts: 1,065
Thanks: 481
Default Re: Picture in Combobox (DNB)

Lol... I guess you guys aren't getting it. I have the pictures in the combobox already. But when I select the item, the image doesn't show in the box as the selected item.



^^ That's what I want to happen. It's just showing blank though.
__________________
One of the programming leads at Visual Bounds. PM me if you're interested in working with us!



Who in the world am I? Ah, that's the great puzzle.
-Lewis Carroll
Jeremy Q is offline Send a message via AIM to Jeremy Q




Old 02-05-2012   #6 (permalink)
Cheater912's Avatar
:D
Join Date: Jul 2010
Location: New York
Posts: 5,683
Thanks: 12,225
Default Re: Picture in Combobox (DNB)

Quote:
Originally Posted by lee74saurus r3x View Post
Lol... I guess you guys aren't getting it. I have the pictures in the combobox already. But when I select the item, the image doesn't show in the box as the selected item.



^^ That's what I want to happen. It's just showing blank though.
Make the combo box wider. It should show up by default.
__________________
Cheater912 is offline Send a message via Skype™ to Cheater912


Old 02-05-2012   #7 (permalink)
Jeremy Q's Avatar
Join Date: Sep 2010
Location: Land of the Rustled Jimmies
Posts: 1,065
Thanks: 481
Default Re: Picture in Combobox (DNB)

Quote:
Originally Posted by Cheater912 View Post
Make the combo box wider. It should show up by default.
Still not showing up... :/ I just messaged you on AIM. You want to TV me?
__________________
One of the programming leads at Visual Bounds. PM me if you're interested in working with us!



Who in the world am I? Ah, that's the great puzzle.
-Lewis Carroll
Jeremy Q is offline Send a message via AIM to Jeremy Q


Old 02-05-2012   #8 (permalink)
Regular Member
 
Join Date: Jan 2012
Posts: 54
Thanks: 24
Default Re: Picture in Combobox (DNB)

ComboBoxEx will only display text, I changed the "DisplayMember" property to "Image" and it was only setting the ComboBoxEx text to "System.Drawing.Bitmap".
I report bugs is offline


Old 02-05-2012   #9 (permalink)
Regular Member
brettv's Avatar
Join Date: Oct 2010
Location: Great Britain
Posts: 615
Thanks: 230
Default Re: Picture in Combobox (DNB)

I'm guessing it would be something like this:
Code:
Combobox1.text = selecteditem.image
Can't test right now but I think that could be it.
brettv is offline
The following user thanked this post: austin12456


Old 02-05-2012   #10 (permalink)
Jeremy Q's Avatar
Join Date: Sep 2010
Location: Land of the Rustled Jimmies
Posts: 1,065
Thanks: 481
Default Re: Picture in Combobox (DNB)

Someone want to TV me to fix this? Thanks. IM me if you can.
__________________
One of the programming leads at Visual Bounds. PM me if you're interested in working with us!



Who in the world am I? Ah, that's the great puzzle.
-Lewis Carroll
Jeremy Q is offline Send a message via AIM to Jeremy Q

Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:30 AM.


 

Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
COPYRIGHT (c) 2010 - 2012 - XboxMB - DESIGN BY:
EDENWEBS.COM