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. Web Development
  3. ASP.NET
  4. drag and resize custom control on designer surface

drag and resize custom control on designer surface

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-net
3 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.
  • H Offline
    H Offline
    huikm
    wrote on last edited by
    #1

    hi, i am developing a web control in a asp.net application project and derived my custom class from a webcontrol. after inserting onto the designer surface, i cannot resize it but can only drag and move it anywhere on the designer surface. how can i resize my control by dragging its handlers? it doesn't allow that right now. i initially got started on a empty web project and with the same control, i could resize the control on the designer surface. am wondering why it doesn't with the asp.net application project setting.. thanks, huikm

    L 1 Reply Last reply
    0
    • H huikm

      hi, i am developing a web control in a asp.net application project and derived my custom class from a webcontrol. after inserting onto the designer surface, i cannot resize it but can only drag and move it anywhere on the designer surface. how can i resize my control by dragging its handlers? it doesn't allow that right now. i initially got started on a empty web project and with the same control, i could resize the control on the designer surface. am wondering why it doesn't with the asp.net application project setting.. thanks, huikm

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      huikm wrote: derived my custom class from a webcontrol What you are saying happens when I derive from Control. Did you maybe change the class you are inhering from? MyDUMeter: a .NET DUMeter clone
      "Thats like saying "hahahaha he doesnt know the difference between a cyberneticradioactivenuclothermolopticdimswitch and a biocontainingspherogramotron", but with words you have really never heard of."

      H 1 Reply Last reply
      0
      • L leppie

        huikm wrote: derived my custom class from a webcontrol What you are saying happens when I derive from Control. Did you maybe change the class you are inhering from? MyDUMeter: a .NET DUMeter clone
        "Thats like saying "hahahaha he doesnt know the difference between a cyberneticradioactivenuclothermolopticdimswitch and a biocontainingspherogramotron", but with words you have really never heard of."

        H Offline
        H Offline
        huikm
        wrote on last edited by
        #3

        the control is derived from: public class XYChart : System.Web.UI.WebControls.WebControl {...} the project was created using Web Control Library wizard option. i experimented with another skeleton Web Control Library project and its the same problem on the designer surface hosted within a asp.net web application project. previously, i created an empty web project and included the XYchart web control library project in it and i was able to drag and resize my control on the designer surface without adding any additional codes. i tried copying the dlls from the web control project's bin/debug to the web project bin folder and reference it but it doesn't help. the point is i could not drag and resize my custom control on a aspx form designer surface in asp.net web application project but i could do it on a aspx form designer surface in an empty web project. huikm

        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