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. The Lounge
  3. Not a programming question...

Not a programming question...

Scheduled Pinned Locked Moved The Lounge
helpquestioncsharpwinformsdesign
2 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.
  • J Offline
    J Offline
    Johnny J
    wrote on last edited by
    #1

    But I wonder if any of you can help me: I "need" (can do without it, but it would be nice to have) a WinForms Button control where the surface is also a Container Panel - So that at design time, you can design a more complex look than the normal button, e.g. put more than one image, more than one text label (with different font style properties) and (strange, maybe) - A ProgressBar. The child controls would need to be accessible at runtime, so that their properties can be changed. Does anybody know if something like that exists? I guess I could roll one myself, but if there is an existing control that would do the job, I'd like to save the time. Before somebody suggests that "Google is my friend", I would like to say that I HAVE Googled - a LOT - but any search terms that include "Button" and "Panel" returns a million hits, none of which are relevant. Have a nice weekend, y'all!

    Anything that is unrelated to elephants is irrelephant
    Anonymous
    -----
    The problem with quotes on the internet is that you can never tell if they're genuine
    Winston Churchill, 1944
    -----
    Never argue with a fool. Onlookers may not be able to tell the difference.
    Mark Twain

    Sander RosselS 1 Reply Last reply
    0
    • J Johnny J

      But I wonder if any of you can help me: I "need" (can do without it, but it would be nice to have) a WinForms Button control where the surface is also a Container Panel - So that at design time, you can design a more complex look than the normal button, e.g. put more than one image, more than one text label (with different font style properties) and (strange, maybe) - A ProgressBar. The child controls would need to be accessible at runtime, so that their properties can be changed. Does anybody know if something like that exists? I guess I could roll one myself, but if there is an existing control that would do the job, I'd like to save the time. Before somebody suggests that "Google is my friend", I would like to say that I HAVE Googled - a LOT - but any search terms that include "Button" and "Panel" returns a million hits, none of which are relevant. Have a nice weekend, y'all!

      Anything that is unrelated to elephants is irrelephant
      Anonymous
      -----
      The problem with quotes on the internet is that you can never tell if they're genuine
      Winston Churchill, 1944
      -----
      Never argue with a fool. Onlookers may not be able to tell the difference.
      Mark Twain

      Sander RosselS Offline
      Sander RosselS Offline
      Sander Rossel
      wrote on last edited by
      #2

      Not sure if it's the exact same problem, but I joined CodeProject (in 2010) to have a similar question answered (things went downhill from there). See my first ever post on CP: Groupbox in SplitContainer UserControl[^] Henry Minute (who, unfortunately, passed away since) answered with one of his own articles that may be what you want: Designing Nested Controls[^] Later, I wrote some custom controls for work that allowed you to add controls to another control (both design-time and runtime) and even add them from the properties menu after which they were automagically added to your form (like columns of a datagridview). I haven't done any serious WinForms in years though, and I switched jobs a few times and don't have that code anymore, so I can't help you more than this. Hope it helps.

      Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

      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