Solved

Rubberbanding around a control/shape

Posted on 2010-08-19
1
328 Views
Last Modified: 2013-12-17
I am creating an application in c#.NET 3.5 similar to Microsoft Power point.
I am having provisions to draw shapes and place controls in a page.
When user selects multiple pages, I need to show that the controls and shapes in the page are selected with a rubber band drawn around them.
Based on the selection, I would need to have the same functionalities of a selected control / shape such as resizing, moving, deleting etc.
Please let me know what I should do in the code to show that a control or a shape is 'selected' in the page.
0
Comment
Question by:B_SIVARAMAKRISHNAN
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 33475759
You have three basic options:
(1) Increase the size of the control when it is selected so that the rubberband is drawn within the bounds of the control but appear to the user to be outside of it.
(2) Draw the rubberband directly to the screen with ControlPaint.DrawReversibleFrame().  This will allow you to draw outside of the bounds of the control but it may get erased when other controls/windows obscure the rubberband.
(3) Make the container of the controls draw the rubberbands instead.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question