How to Implment snaplines in a custom control?



Hi,

I've developed a custom control for use in my application. This is a composite
control (UserControl) containing, essentially, a combobox and a textbox which may
overlay the combo in some circumstances.

The control works fine at run time, but I've noticed that at design time the Visual
Studio snaplines and especially the text baseline snapline does not show.

The help mumbles something about margin and padding as well as snapline objects. I
think I must provide or otherwise use the design-time snapline objects somehow, but I
haven't the faintest clue how to proceed.

Does anyone have any advice or pointers on how to do this?

Thanks,

-- Jeff
.



Relevant Pages

  • Re: Custom Server Control Cant read design time property
    ... Microsoft Online Support ... | Subject: Re: Custom Server Control Can't read design time property ... |> ViewState, so at that time the ViewState of the control is still ... |> | Subject: Re: Custom Server Control Can't read design time property ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: CompositeControl fails to display in Design view
    ... protected override void CreateChildControls() ... I then view the page with the broken control on it and nothing happens? ... if you follow the instructions then that is how you can debug the designer. ... It is the design time experience that is not working. ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: RunTime forms with modules...
    ... I realized that what I was trying to do was mix design time operation with ... while still being able to allow design time operations of ... different prefix each control in a group of controls. ... intNext = intNext + 1 ...
    (microsoft.public.access.modulesdaovba)
  • Re: now i can debug my tabcontrol, now what?
    ... After reading the article I was able to set up an environment for debugging ... derived class from the control collection. ... >> This happens during design time when i go to add the tabPage using the ... >> TabPageCollection, and a TabPage. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Why must I paint the form background for an owner-draw control?
    ... I still get a black background around the owner-drawn control. ... > You mentioned that at the native Windows level, ... > my button still occupies its entire bounding rectangle, ... > specified for the button at design time. ...
    (microsoft.public.dotnet.framework.windowsforms)

Loading