473,396 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Draw outside the controls clinet area ?

Hi

I want to draw grips around my usercontrol.
Becorse the grips are around the customcontrol they are outside the controls
drawing area.
I tried setting the Region to infinit but that does not seem to work.
Any hints or workarounds ?
Johan

Mar 12 '07 #1
2 2489
VJ
Sagaert

You are going to associate grip controls, and I am assuming that has to be
moved along with client resize or move. So more like in Visual Studio
designer. I can give a high level idea, - " Get labels (
System.Windows.Forms.Label), and attach them to control edges, make the
label size to be like 8x8 or even smaller if you want.. Move the label in
client move or resize..

I am sure I have a sample for this.. just can't find it now.. Will dig from
my pile and give to you if I find it..But you need to let me know if your
intent is same as what I gave above.

HTH
VJ

"Sagaert Johan" <RE*************@hotmail.comwrote in message
news:ez*************@TK2MSFTNGP02.phx.gbl...
Hi

I want to draw grips around my usercontrol.
Becorse the grips are around the customcontrol they are outside the
controls
drawing area.
I tried setting the Region to infinit but that does not seem to work.
Any hints or workarounds ?
Johan

Mar 13 '07 #2
Hi

Just decided to draw the grips inside my client area, it will save me a lot
of work.

Johan

"VJ" <no***********@yahoo.comwrote in message
news:uS**************@TK2MSFTNGP04.phx.gbl...
Sagaert

You are going to associate grip controls, and I am assuming that has to be
moved along with client resize or move. So more like in Visual Studio
designer. I can give a high level idea, - " Get labels (
System.Windows.Forms.Label), and attach them to control edges, make the
label size to be like 8x8 or even smaller if you want.. Move the label in
client move or resize..

I am sure I have a sample for this.. just can't find it now.. Will dig
from
my pile and give to you if I find it..But you need to let me know if your
intent is same as what I gave above.

HTH
VJ

"Sagaert Johan" <RE*************@hotmail.comwrote in message
news:ez*************@TK2MSFTNGP02.phx.gbl...
Hi

I want to draw grips around my usercontrol.
Becorse the grips are around the customcontrol they are outside the
controls
drawing area.
I tried setting the Region to infinit but that does not seem to work.
Any hints or workarounds ?
Johan



Mar 13 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rhy Mednick | last post by:
I'm creating a custom control (inherited from UserControl) that is displayed by other controls on the form. I would like for the control to disappear when the user clicks outside my control the...
3
by: Arnold the Aardvark | last post by:
I am creating a custom draw tree view based on CTreeCtrl. When the control is re-sized the background is blanked completely, resulting in a horrible flicker. I've seen various suggestions...
5
by: Amelyan | last post by:
How can I get state of dynamically created controls (RadioButton, CheckBox, TextBox.Text) on post back when I click submit button? The only way I know is by traversing Response.Form enumberator;...
7
by: Mark Ingram | last post by:
Hi, how can i draw a rounded rectange, with a border within a specified area? i.e. if i have a Rectangle with width and height of 100, how can i draw a rectange with 2 pixel border inside of the...
1
by: Jeff Waskiewicz | last post by:
Hello All, I'm trying to solve a nagging problem. The goal is to draw a rectangle over the top of all the other controls on a form. Specifically, over a ChartFX control. The user would draw...
9
by: zhaow | last post by:
Hi, All Greetings! I want to develop as appllication that requires a line-drawing function in the blank area between two forms. I have looked up the MSDN, it says that a graphics object need a...
10
by: Phil | last post by:
I would like to draw some text which will be in front of any other controls, but without obscuring them completely. If I use DrawString in the form's Paint handler the text is always behind, not in...
3
by: Brandon Arnold | last post by:
I have a panel that contains a label and a picturebox. When clicked, I want to draw a rectangle over everything. I can draw the rect and set the color, no big deal. The problem is because I have to...
1
by: kummu4help | last post by:
hi, i want to draw rectangle based on mousedrag event. if user dragging the mouse, then the rectangle on the applet should increase or decrease basing on current mouse coordinates. i have the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.