Learn Visual Basic 6.0 Tutorial-Working with ImageCombo and Image List-Display Image with Combo items in the Combobox-Step by Step
STEP-I
Add Microsoft Windows Common Control 6.0 .
Add ImageCombo onto the form from Toolbox.
Use ImageCombo Add Method
Syntax:
Imagecombo1.ComboItems.Add(INDEX,KEY,TEXT,IMAGE,SELECTEDIMAGE,IDENTATION)
I am using Only Two Parameter of add method i.e TEXT and IMAGE for displaying the Image in the combobox.
STEP:2
To display Image Left to Comboitems in the Combobox
*Add Imagelist Control onto form.
* Add Images into the Imagelist.
* Assign the Index value of Pictures in the Imagelist to the IMAGE parameter of the Add Method of the ImageCombo Control.
its done!!!!.
Code:
Private Sub Form_Load()
Set ImageCombo1.ImageList = ImageList1
ImageCombo1.ComboItems.Add , , "Administrator", 1
ImageCombo1.ComboItems.Add , , "Staff", 2
ImageCombo1.ComboItems.Add , , "Office Assistant", 3
ImageCombo1.ComboItems.Add , , "Librarian", 4
ImageCombo1.ComboItems.Add , , "Store Keeper", 5
End Sub
Private Sub ImageCombo1_Click()
Text1.Text = ImageCombo1.Text
End Sub
Here is my updated List of Tutorials.
Create,Save,Update,Delete and Search Student Profile https://youtu.be/bL03PrGt8WY
Advance Login System (Splash Screen with Progress Bar,User Registration,Login system,WElcome ) https://youtu.be/s-BU03egpWA
Add Delete Update Search https://youtu.be/K8jq2H3aamk
Data Report in VB6 https://youtu.be/vjQDtKMUCKk
Data Manager in VB6 https://youtu.be/27IrMsEXlBc
Create Tool Bar,Status Bar and Menu Bar https://youtu.be/3l6bciTAC7Q
Common dialog control- Font and Color Dialog https://youtu.be/4DBy2ghmu7U
Search Records in Database (By Name or ID) https://youtu.be/1yNScTVAqZ4
Login Form using Visual Basic 6.0 https://youtu.be/XXKjfta5kkg
Add Delete Update and Clear records https://youtu.be/tYS7uncH8Ds
Simple Visual Basic Database Application https://youtu.be/PldGe0-FnI8
Design Font Dialog Box in VB 6 https://youtu.be/C0CMtoXIFY4
Road Traffic lights Animated system https://youtu.be/74Zvl0bXeAY
ListBox Control( Advanced) https://youtu.be/Q6NYtmH7z9Q
ListBox Control -Add,Delete and Clear items https://youtu.be/YlmKSyk0l2k
Custom Progress Bar with percentage completed on Splash Screen https://youtu.be/jGSxrhYZAbE
Frame Control,Check Box and Option Buttons https://youtu.be/9x9dmM0V4CU
Picture Viewer+Browser in Visual Basic https://youtu.be/POd1Kmpvc0M
Splash Screen with Progress Bar- https://youtu.be/95hw5z7lq4A
Create Menus,Drop Down Menus ,Nested menus in Menu Barhttps://youtu.be/fNtJaQgnuEs
for more about Visual Basic tutorials,please visit
Youtube Channel:https://www.youtube.com/user/sandydehrian
Computer Gyan Blog:http://selfcomputerlearning.blogspot.in/
Please Share | Support | SUBSCRIBE
Don't forget to hit LIKE button,if you like my work.
STEP-I
Add Microsoft Windows Common Control 6.0 .
Add ImageCombo onto the form from Toolbox.
Use ImageCombo Add Method
Syntax:
Imagecombo1.ComboItems.Add(INDEX,KEY,TEXT,IMAGE,SELECTEDIMAGE,IDENTATION)
I am using Only Two Parameter of add method i.e TEXT and IMAGE for displaying the Image in the combobox.
STEP:2
To display Image Left to Comboitems in the Combobox
*Add Imagelist Control onto form.
* Add Images into the Imagelist.
* Assign the Index value of Pictures in the Imagelist to the IMAGE parameter of the Add Method of the ImageCombo Control.
its done!!!!.
Code:
Private Sub Form_Load()
Set ImageCombo1.ImageList = ImageList1
ImageCombo1.ComboItems.Add , , "Administrator", 1
ImageCombo1.ComboItems.Add , , "Staff", 2
ImageCombo1.ComboItems.Add , , "Office Assistant", 3
ImageCombo1.ComboItems.Add , , "Librarian", 4
ImageCombo1.ComboItems.Add , , "Store Keeper", 5
End Sub
Private Sub ImageCombo1_Click()
Text1.Text = ImageCombo1.Text
End Sub
Here is my updated List of Tutorials.
Create,Save,Update,Delete and Search Student Profile https://youtu.be/bL03PrGt8WY
Advance Login System (Splash Screen with Progress Bar,User Registration,Login system,WElcome ) https://youtu.be/s-BU03egpWA
Add Delete Update Search https://youtu.be/K8jq2H3aamk
Data Report in VB6 https://youtu.be/vjQDtKMUCKk
Data Manager in VB6 https://youtu.be/27IrMsEXlBc
Create Tool Bar,Status Bar and Menu Bar https://youtu.be/3l6bciTAC7Q
Common dialog control- Font and Color Dialog https://youtu.be/4DBy2ghmu7U
Search Records in Database (By Name or ID) https://youtu.be/1yNScTVAqZ4
Login Form using Visual Basic 6.0 https://youtu.be/XXKjfta5kkg
Add Delete Update and Clear records https://youtu.be/tYS7uncH8Ds
Simple Visual Basic Database Application https://youtu.be/PldGe0-FnI8
Design Font Dialog Box in VB 6 https://youtu.be/C0CMtoXIFY4
Road Traffic lights Animated system https://youtu.be/74Zvl0bXeAY
ListBox Control( Advanced) https://youtu.be/Q6NYtmH7z9Q
ListBox Control -Add,Delete and Clear items https://youtu.be/YlmKSyk0l2k
Custom Progress Bar with percentage completed on Splash Screen https://youtu.be/jGSxrhYZAbE
Frame Control,Check Box and Option Buttons https://youtu.be/9x9dmM0V4CU
Picture Viewer+Browser in Visual Basic https://youtu.be/POd1Kmpvc0M
Splash Screen with Progress Bar- https://youtu.be/95hw5z7lq4A
Create Menus,Drop Down Menus ,Nested menus in Menu Barhttps://youtu.be/fNtJaQgnuEs
for more about Visual Basic tutorials,please visit
Youtube Channel:https://www.youtube.com/user/sandydehrian
Computer Gyan Blog:http://selfcomputerlearning.blogspot.in/
Please Share | Support | SUBSCRIBE
Don't forget to hit LIKE button,if you like my work.
send me whole project pls
ReplyDelete