dcsimg
Results 1 to 5 of 5

Thread: Command Button

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2009
    Location
    India
    Posts
    94

    Command Button

    Hi All,

    I wnat to inesrt the image on commandbutton and text information beside the image. I am attahing one file with this mail please look into that.In that file Sent to Outbox, Flash sms etc. Like that i want to insert image and string for that please let me know the solution as early as possibel.
    Regards,
    Venkat

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Oct 2009
    Location
    India
    Posts
    94

    Re: Command Button

    hi,
    Attatched file
    Attached Files Attached Files

  3. #3
    PowerPoster
    Join Date
    Dec 2004
    Posts
    24,659

    Re: Command Button

    i have done this in the past by putting a picturebox over command button then spacing the text to the side of it

    as you can see the backcolor did not quite match in this sample, but that should not be hard to get correct, or use a transparent background
    Attached Images Attached Images  
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  4. #4
    Super Moderator Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,335

    Re: Command Button

    There are examples of this in our VB6 CodeBank. Have you looked in there?
    Please use [Code]your code goes in here[/Code] tags when posting code.
    When you have received an answer to your question, please mark it as resolved using the Thread Tools menu.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    I dont answer coding questions via PM or EMail. Please post a thread in the appropriate forum section.

    Creating A Wizard In VB.NET
    Paging A Recordset
    What is wrong with using On Error Resume Next
    Good Article: Language Enhancements In Visual Basic 2010
    Upgrading VB6 Code To VB.NET
    Microsoft MVP 2005/2006/2007/2008/2009/2010/2011/2012/Defrocked

  5. #5
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,646

    Re: Command Button

    Change the Style property of Command Button to Graphical...
    Then for the Picture property select a small image...
    Then, type the caption for the button....

    It will display the text below the image.... And, if you want it to the side of the image, then try westconn1's idea

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width