PC Review


Reply
Thread Tools Rate Thread

Selecting a region on a form

 
 
Dino M. Buljubasic
Guest
Posts: n/a
 
      24th Nov 2003
I have a form that contains 24 user controls representing hours (something
like MS Outlook daily calendar). I would like to be able to
mouse-down-drag-mouse-up select a region of the form so that selected hours
(say from 8:00am till 1:00pm) appear highlighted or shaded (like in MS
Outlook expres).

Any help will be appreciated

--


-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download Spam Inspector, the Award Winning Anti-Spam Filter
http://mail.giantcompany.com




 
Reply With Quote
 
 
 
 
One Handed Man
Guest
Posts: n/a
 
      24th Nov 2003
OK, letrs break this problem down.

You need several things.

1.) The co-ordinates of each control.

2.) A being Dragged Property

3.) A Mouse Down event on the form

4.) A Mouse Up Event on the form

5.) To Draw / Erase and redraw a square with a dotted line using the start
and new x/y co-ordinates

6.) A method to check the TopLeft/Bottom right co-ordinates pairs come
inside the selection area of the forms graphics region

Thats it. !

I could do this for you, but I wont, I think there is sufficient information
here for you to go away and try this and then come back with more finite
questions.

"Endurance is good for the spirit !"

OHM









Dino M. Buljubasic wrote:
> I have a form that contains 24 user controls representing hours
> (something like MS Outlook daily calendar). I would like to be able
> to mouse-down-drag-mouse-up select a region of the form so that
> selected hours (say from 8:00am till 1:00pm) appear highlighted or
> shaded (like in MS Outlook expres).
>
> Any help will be appreciated



 
Reply With Quote
 
 
 
 
james
Guest
Posts: n/a
 
      24th Nov 2003
Here is a link to a simple demo of Drawing a Selection (Rubberband) box on a
Picturebox. This program also crops images.
But, the code within should give you the general idea on how to draw the
selection area on a form too, as a form also has a MouseDown, MouseMove, and
MouseUp events. Then you can figure out how to
get the area that is captured and highlight the objects you are wanting to
capture.
Scroll down the page to: Rubberband Selection Box for Cropping Images" Code
and all is in the zip file you download.

james
aka: Trucker

(watch for word wrap)
http://www.gotdotnet.com/community/u...nguageDropDown
List=VB.NET&SortDirection=Desc&SortColumnName=CreationDate&Page=8&Size=25


"Dino M. Buljubasic" <(E-Mail Removed)> wrote in message
news:Gdqwb.146067$jy.81173@clgrps13...
> I have a form that contains 24 user controls representing hours (something
> like MS Outlook daily calendar). I would like to be able to
> mouse-down-drag-mouse-up select a region of the form so that selected

hours
> (say from 8:00am till 1:00pm) appear highlighted or shaded (like in MS
> Outlook expres).
>
> Any help will be appreciated
>
> --
>
>
> -------------------------------------------------------------------------
> FIGHT BACK AGAINST SPAM!
> Download Spam Inspector, the Award Winning Anti-Spam Filter
> http://mail.giantcompany.com
>
>
>
>



 
Reply With Quote
 
Dino M. Buljubasic
Guest
Posts: n/a
 
      24th Nov 2003
The posted message asks for 'any' help, not for finished project, therefore
no need for you to work on it. The lead is welcome enough.

I appreciate your help,
Dino

--


-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download Spam Inspector, the Award Winning Anti-Spam Filter
http://mail.giantcompany.com


"One Handed Man" <(E-Mail Removed)> wrote in message
news:bpthfl$f61$(E-Mail Removed)...
> OK, letrs break this problem down.
>
> You need several things.
>
> 1.) The co-ordinates of each control.
>
> 2.) A being Dragged Property
>
> 3.) A Mouse Down event on the form
>
> 4.) A Mouse Up Event on the form
>
> 5.) To Draw / Erase and redraw a square with a dotted line using the start
> and new x/y co-ordinates
>
> 6.) A method to check the TopLeft/Bottom right co-ordinates pairs come
> inside the selection area of the forms graphics region
>
> Thats it. !
>
> I could do this for you, but I wont, I think there is sufficient

information
> here for you to go away and try this and then come back with more finite
> questions.
>
> "Endurance is good for the spirit !"
>
> OHM
>
>
>
>
>
>
>
>
>
> Dino M. Buljubasic wrote:
> > I have a form that contains 24 user controls representing hours
> > (something like MS Outlook daily calendar). I would like to be able
> > to mouse-down-drag-mouse-up select a region of the form so that
> > selected hours (say from 8:00am till 1:00pm) appear highlighted or
> > shaded (like in MS Outlook expres).
> >
> > Any help will be appreciated

>
>



 
Reply With Quote
 
Dino M. Buljubasic
Guest
Posts: n/a
 
      24th Nov 2003
thanks James,

Dino

--


-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download Spam Inspector, the Award Winning Anti-Spam Filter
http://mail.giantcompany.com


"james" <jjames700ReMoVeMe at earthlink dot net> wrote in message
news:(E-Mail Removed)...
> Here is a link to a simple demo of Drawing a Selection (Rubberband) box on

a
> Picturebox. This program also crops images.
> But, the code within should give you the general idea on how to draw the
> selection area on a form too, as a form also has a MouseDown, MouseMove,

and
> MouseUp events. Then you can figure out how to
> get the area that is captured and highlight the objects you are wanting to
> capture.
> Scroll down the page to: Rubberband Selection Box for Cropping Images"

Code
> and all is in the zip file you download.
>
> james
> aka: Trucker
>
> (watch for word wrap)
>

http://www.gotdotnet.com/community/u...nguageDropDown
> List=VB.NET&SortDirection=Desc&SortColumnName=CreationDate&Page=8&Size=25
>
>
> "Dino M. Buljubasic" <(E-Mail Removed)> wrote in message
> news:Gdqwb.146067$jy.81173@clgrps13...
> > I have a form that contains 24 user controls representing hours

(something
> > like MS Outlook daily calendar). I would like to be able to
> > mouse-down-drag-mouse-up select a region of the form so that selected

> hours
> > (say from 8:00am till 1:00pm) appear highlighted or shaded (like in MS
> > Outlook expres).
> >
> > Any help will be appreciated
> >
> > --
> >
> >

>
> -------------------------------------------------------------------------
> > FIGHT BACK AGAINST SPAM!
> > Download Spam Inspector, the Award Winning Anti-Spam Filter
> > http://mail.giantcompany.com
> >
> >
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The Form Region,"IPM".note.microsoft conversation.Region Alex Microsoft Outlook Contacts 1 7th Jun 2009 09:59 PM
Region visible in another Region? Brian Basquille Microsoft C# .NET 2 7th Feb 2005 06:05 PM
Examples using Region and/or Region.Intersect? Brian Microsoft C# .NET 3 17th Dec 2004 03:05 PM
region - end region =?Utf-8?B?Z3V5?= Microsoft VB .NET 3 22nd Oct 2004 12:38 PM
region 2 dvd wont play on dvd player region 2 in win xp John Windows XP New Users 2 14th Dec 2003 02:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:21 AM.