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. Windows Forms
  4. Problems adding dynamically a custon-control to a panel

Problems adding dynamically a custon-control to a panel

Scheduled Pinned Locked Moved Windows Forms
helpquestion
1 Posts 1 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
    J Holzer
    wrote on last edited by
    #1

    Hi! I have the following situation: A panel called "BayContainer" some custom-controls from type "Bay" should be filled by file-drag&drop. So i created a method called "insert", that gets the position, the filename and the "BayContainer.Controls"-Object, where the newly created custom-control should be placed, as parameters When dropping a file into the panel the position is being calculated, the control is created, size and position are set. The first file works fine, but the 2nd control is not being painted (allthough it seems to be there because it received events, that are being connected to the new control). Any ideas, why the 2nd, 3rd, etc... control do not appear inside the panel? Thanx for help! J.

    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