Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7511377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:31:44+00:00 2026-05-29T23:31:44+00:00

I need your Some time to help me, I am creating a project in

  • 0

I need your Some time to help me, I am creating a project in which I need to set little pictures like 32X32 or 16X16 pixels, in front of combo box items.
Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T23:31:47+00:00Added an answer on May 29, 2026 at 11:31 pm

    This link may help you: http://www.codeproject.com/Articles/10670/Image-ComboBox-Control

    edit, to do that in VB, set your combobox DrawMode property to OwnerDraw, then:

    protected Overrides Sub OnDrawItem(ByVal e As System.Windows.Forms.DrawItemEventArgs)
        
        e.DrawBackground()
        e.DrawFocusRectangle()
        Dim item As New ComboBoxIconItem
        Dim imageSize As New Size
        imageSize = ListaImg1.ImageSize
        Dim bounds As New Rectangle
        bounds = e.Bounds
        Try
            item = Me.Items(e.Index)
            If (item.ImageIndex <> -1) Then
                Me.ImageList.Draw(e.Graphics, bounds.Left, _
                    bounds.Top, item.ImageIndex)
                e.Graphics.DrawString(item.Text, e.Font, _
                    New SolidBrush(e.ForeColor), bounds.Left + _
                    imageSize.Width, bounds.Top)
            Else
                e.Graphics.DrawString(item.Text, e.Font, _
                    New SolidBrush(e.ForeColor), bounds.Left, _
                    bounds.Top)
            End If
            Catch ex As Exception
            If (e.Index <> -1) Then
                e.Graphics.DrawString(Items(e.Index).ToString(), e.Font, _
                    New SolidBrush(e.ForeColor), bounds.Left, bounds.Top)
            Else
                e.Graphics.DrawString(Text, e.Font, _
                    New SolidBrush(e.ForeColor), bounds.Left, bounds.Top)
            End If
        End Try
        MyBase.OnDrawItem(e)
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi, ive been dealing with this for some time now and need your help.
I've been stuck for some time on this problem, and I need your help.
I've some questions .. and I really need your help. I have an application.
I need your help and please give me some advice. From programming pearls I
I need your help, i'm stacked on this project. When i run my applicaion
need some your help with a query. I have a table Managers (ManagerId, ManagerName)
I really need your help with this. We are planning on developing a real-time
Need some your help. I have two datetimepickers on my form: dt1 and dt2.
I am working on a small project and need your help. Here are the
I need some resources that talk about how to design your software to be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.