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. C#
  4. Custom Forms Designer

Custom Forms Designer

Scheduled Pinned Locked Moved C#
csharphelpvisual-studio
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.
  • G Offline
    G Offline
    Gevik Babakhani
    wrote on last edited by
    #1

    Dear Masters of .NET, Does anyone have proper sample or documentation about creating a custom forms designer like VS.NET's or SharpDevelop's designer. I have search the NET for quite a while, but no success. I also dug the SharpDevelop's code and found that without documentation it is very hard to see what the developers have done. Any help is welcome and appreciated.


    C:\>csc *.cs Microsoft (R) Visual C# .NET Compiler error CS2001: Source file 'brains.cs' could not be found fatal error CS2008: No [brains.cs] specified C:\>

    J 1 Reply Last reply
    0
    • G Gevik Babakhani

      Dear Masters of .NET, Does anyone have proper sample or documentation about creating a custom forms designer like VS.NET's or SharpDevelop's designer. I have search the NET for quite a while, but no success. I also dug the SharpDevelop's code and found that without documentation it is very hard to see what the developers have done. Any help is welcome and appreciated.


      C:\>csc *.cs Microsoft (R) Visual C# .NET Compiler error CS2001: Source file 'brains.cs' could not be found fatal error CS2008: No [brains.cs] specified C:\>

      J Offline
      J Offline
      John Fisher
      wrote on last edited by
      #2

      This is a complicated task, and understanding the SharpDevelope code isn't an unreasonable way to begin your task. If, on the other hand, you are not actually trying to duplicate all of the functionality, (maybe you only want labels, text boxes, and buttons on your forms), you could try simply writing the thing from scratch in a way that seems logical to you. This method requires using the container form's .Capture property in order to catch the clicks that normally would have set the focus to the child control, allowing you to select and move the controls. John :D

      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