windows messages.
"Wayne" <MeNotYou@community.nospam> wrote in message
news:##8G94LTFHA.2872@TK2MSFTNGP14.phx.gbl...
> Is this the only way to respond to messages sent to a form? meaning having
> to override the WndProc.
>
> I've done Delphi development for quite a while now and in Delphi you can
> bind a message to a method and the method would be called for you
> automagiclly when the message was received. This prevented you from having
> to have a giant case statement for each message you wanted to handle.
>
> --
> Thanks
> Wayne Sepega
> Jacksonville, Fl
>
> Enterprise Library Configuration Console Module Generator
>
http://workspaces.gotdotnet.com/elccmg >
> "When a man sits with a pretty girl for an hour, it seems like a minute.
But
> let him sit on a hot stove for a minute and it's longer than any hour.
> That's relativity." - Albert Einstein
>
> "Chris Taylor" <chris_taylor_za@hotmail.com> wrote in message
> news:OkVcShJTFHA.3056@TK2MSFTNGP14.phx.gbl...
> > Hi,
> >
> > In addition to what Marcin has said, another solution is to handle the
> > WM_NCHITTEST message and return HTCAPTION if the form must be dragged.
If
> > you add the following code to your Form, the form will be dragged when
you
> > click on the client area and drag your mouse.
> >
> > const int WM_NCHITTEST = 0x0084;
> > const int HTCAPTION = 2;
> > protected override void WndProc(ref Message m)
> > {
> > if (m.Msg == WM_NCHITTEST)
> > {
> > Point pt = this.PointToClient(new Point(m.LParam.ToInt32()));
> > if (ClientRectangle.Contains(pt))
> > {
> > m.Result = new IntPtr(HTCAPTION);
> > return;
> > }
> > }
> >
> > base.WndProc (ref m);
> > }
> >
> > Hope this helps
> >
> > --
> > Chris Taylor
> >
http://dotnetjunkies.com/weblog/chris.taylor > >
> > "Nikki" <apra.chopra@gmail.com> wrote in message
> > news:1114756152.571809.235770@g14g2000cwa.googlegroups.com...
> > > Hi,
> > > Can anybody help me in solving this problem. I m developing an
> > > application in which the main application form is borderless. now i m
> > > not able to move the application form with the help of mouse.
> > > Thanks,
> > >
> >
> >
>
>