Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Custom Controls - Play Button

Custom Controls - Play Button

Scheduled Pinned Locked Moved Visual Basic
wpfwinformsquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RichardBerry
    wrote on last edited by
    #1

    Hi Using VS2005 - Visual Basic I'd like to make a control like a button, but that looks like the Play, Stop, Record, Pause, Skip Forward and Skip Backward. I'd like to be able to resize the button, and the images must resize. I's like to be able to set the color of the button as well as the color of the image that shows the fuction of the button. It only needs a click event. I'd like to be able to add it under user controls. I'd like to be able to set the 'function' I'd like to be able to use the control as follows: myButton.Style = myButton.Styles.Play myButton.Forecolor = Color.Red myButton.Backcolor = Color.Gray So far I have: Opened a new project Chose 'Windows User Control' Placed a normal button on the form What do I do next???

    T 1 Reply Last reply
    0
    • R RichardBerry

      Hi Using VS2005 - Visual Basic I'd like to make a control like a button, but that looks like the Play, Stop, Record, Pause, Skip Forward and Skip Backward. I'd like to be able to resize the button, and the images must resize. I's like to be able to set the color of the button as well as the color of the image that shows the fuction of the button. It only needs a click event. I'd like to be able to add it under user controls. I'd like to be able to set the 'function' I'd like to be able to use the control as follows: myButton.Style = myButton.Styles.Play myButton.Forecolor = Color.Red myButton.Backcolor = Color.Gray So far I have: Opened a new project Chose 'Windows User Control' Placed a normal button on the form What do I do next???

      T Offline
      T Offline
      Tom Deketelaere
      wrote on last edited by
      #2

      check out: http://www.codeproject.com/cs/miscctrl/Ribbon_Panel.asp[^] You probably are thinking that's not what I want (I know it's a ribbon control) BUT the devoloper creats his ribbonbuttons himself (draws them, does the eventhandling,...) and that is what you want (you will need to adjust a bit but take a look at this code and you should be able to adjust it to what you want)

      R 1 Reply Last reply
      0
      • T Tom Deketelaere

        check out: http://www.codeproject.com/cs/miscctrl/Ribbon_Panel.asp[^] You probably are thinking that's not what I want (I know it's a ribbon control) BUT the devoloper creats his ribbonbuttons himself (draws them, does the eventhandling,...) and that is what you want (you will need to adjust a bit but take a look at this code and you should be able to adjust it to what you want)

        R Offline
        R Offline
        RichardBerry
        wrote on last edited by
        #3

        Thanks for your reply. I'm pretty much a novice, and battle enough with Visual Basic, so trying to cope with C# is a bit beyond me. Do you know of anything in VB?

        T 1 Reply Last reply
        0
        • R RichardBerry

          Thanks for your reply. I'm pretty much a novice, and battle enough with Visual Basic, so trying to cope with C# is a bit beyond me. Do you know of anything in VB?

          T Offline
          T Offline
          Tom Deketelaere
          wrote on last edited by
          #4

          just use a online converter and it should go fine I always use this one: http://www.developerfusion.co.uk/utilities/convertcsharptovb.aspx[^] if you can't get it to convert provide me with an email (you can mail me from this site) and then I will send my version of a ribbon button (is in vb.net)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups