Connecting Tech Pros Worldwide Forums | Help | Site Map

Drag & Drop like VB Form Designer ?!?

Philippe Meunier
Guest
 
Posts: n/a
#1: Nov 20 '05
Hi,

I would like to code kind of Form designer. I would like it to act like the
VB.NET designer and the problem I am actually facing is about the drag &
drop of controls on the form. I add them with a button (no problem with
this) and also resizes them too (no problem there too). But when comes the
time to move them with the mouse, changing containers etc. I am speechless.
I tried with drap & drop (Dodragdrop) but I get a problem with the Mouse
Cursor and the "preview" location. Setting the mouse Cursor to a bitmap
(created in run time bucause the controls size changes) is very very slow.
Someone has a sample, something I could base my Designer on that is "simple"
and looks like VB.NET designer ?



--
Philippe Meunier
Programmer
CHCA Computer Systems Inc.



Scott Meddows
Guest
 
Posts: n/a
#2: Nov 20 '05

re: Drag & Drop like VB Form Designer ?!?


This is exaxctly what your looking for.

http://windowsforms.net/Default.aspx...dex=5&tabid=47
http://www.divil.co.uk/net/articles/...rs/hosting.asp

"Philippe Meunier" <pmeunier@chca.ca> wrote in message
news:OpWQEywcDHA.456@TK2MSFTNGP10.phx.gbl...[color=blue]
> Hi,
>
> I would like to code kind of Form designer. I would like it to act like[/color]
the[color=blue]
> VB.NET designer and the problem I am actually facing is about the drag &
> drop of controls on the form. I add them with a button (no problem with
> this) and also resizes them too (no problem there too). But when comes the
> time to move them with the mouse, changing containers etc. I am[/color]
speechless.[color=blue]
> I tried with drap & drop (Dodragdrop) but I get a problem with the Mouse
> Cursor and the "preview" location. Setting the mouse Cursor to a bitmap
> (created in run time bucause the controls size changes) is very very slow.
> Someone has a sample, something I could base my Designer on that is[/color]
"simple"[color=blue]
> and looks like VB.NET designer ?
>
>
>
> --
> Philippe Meunier
> Programmer
> CHCA Computer Systems Inc.
>
>[/color]


Herfried K. Wagner [MVP]
Guest
 
Posts: n/a
#3: Nov 20 '05

re: Drag & Drop like VB Form Designer ?!?


"Philippe Meunier" <pmeunier@chca.ca> schrieb:[color=blue]
> Someone has a sample, something I could base my Designer on
> that is "simple" and looks like VB.NET designer ?[/color]

It's implemented in C#, but you may want to have a look at it:

http://www.icsharpcode.net/OpenSource/SD/Default.aspx

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet




Closed Thread