Solved

Rubberbanding around a control/shape

Posted on 2010-08-19
1
326 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 85

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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
MYSQL responding very slow 3 48
How to get a Powershell script to launch from Visual Studio 20 63
Problem to copy file 14 44
Convert VB web project to C# 3 32
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

740 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