combobox
- hello
i want 2 pic in my combobox , which i can select and store in my database.
how can i do that in vb 2008
Answers
Thank you MaDFroG for your friendly help.
Hi mustangBEL,
Welcome to MSDN forums!Question 1: How to Display Images in ComboBox's items in VB.NET?
Create a New WinForms Project.
Drag&drop an ImageList control and a ComboBox control from toolbox onto Form1.
Go to properties pane of the ImageList and using property collection to add some pictures.
Then here is code sample Form1.vb:Trackback: http://www.devasp.net/net/articles/display/365.html
This is an extended, owner drawn ComboBox which has an added support to display images in the combobox dropdown as well as the edit (text) box.
http://www.codeproject.com/KB/combobox/ImageComboBoxControl.aspx
Question 2: How do I store BLOB data (e.g. image, document) into the database in VB.NET?
Storing binary objects (e.g. image, office document etc.) into database is a little cumbersome when it comes to retrieval. Hence the most commonly accepted way is only store the file path in the database, and to store the documents on a file share.
Trackback: http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/e88ae49c-23b3-4160-8138-24d089a3fee1
If I misunderstood you and you still have any doubt and concern about this issue, please kindly clarify your question to let me know.Best regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- Marked As Answer byMartin Xie - MSFTMSFT, ModeratorMonday, October 26, 2009 7:39 AM
All Replies
- Would you please be more specific? I can't get your question.
Thank you MaDFroG for your friendly help.
Hi mustangBEL,
Welcome to MSDN forums!Question 1: How to Display Images in ComboBox's items in VB.NET?
Create a New WinForms Project.
Drag&drop an ImageList control and a ComboBox control from toolbox onto Form1.
Go to properties pane of the ImageList and using property collection to add some pictures.
Then here is code sample Form1.vb:Trackback: http://www.devasp.net/net/articles/display/365.html
This is an extended, owner drawn ComboBox which has an added support to display images in the combobox dropdown as well as the edit (text) box.
http://www.codeproject.com/KB/combobox/ImageComboBoxControl.aspx
Question 2: How do I store BLOB data (e.g. image, document) into the database in VB.NET?
Storing binary objects (e.g. image, office document etc.) into database is a little cumbersome when it comes to retrieval. Hence the most commonly accepted way is only store the file path in the database, and to store the documents on a file share.
Trackback: http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/e88ae49c-23b3-4160-8138-24d089a3fee1
If I misunderstood you and you still have any doubt and concern about this issue, please kindly clarify your question to let me know.Best regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- Marked As Answer byMartin Xie - MSFTMSFT, ModeratorMonday, October 26, 2009 7:39 AM


