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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
M

mkorin

@mkorin
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • User control that cannot be resized
    M mkorin

    Thanks for the reply, but this is not what I am looking for. You are telling me a workaround. You can do it even better by overwriting the size method [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new Size Size { get {return new Size(20,20);} set {} } But when you place this element in the designer, it still shows 9 squares around it appearing to be resizable (Even though when you try to resize, it will move it instead keeping the size). I want my control to look somehow like textbox where you can't resize it in the editor. Further I want to remove the SizeChanged and Resize even handlers so that they are not accessible through designer or code. Thank you for your suggestion though. Mike

    C# tutorial help

  • User control that cannot be resized
    M mkorin

    Hello, If anyone can help me with this it would be great. Maybe someone can even write a tutorial. I am trying to create a simple user control. It doesn't really matter what kind of control it is, the key thing is, this control cannot be resized through code or designer. For example, the height of the textbox control cannot be changed. I am trying to get similar results, except that width cannot be changed as well. Sincerely, Michael Korin

    C# tutorial help
  • Login

  • Don't have an account? Register

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