473,322 Members | 1,493 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,322 software developers and data experts.

how do you change the size of the clipping region of a Graphics object

Hi there,

I have a panel that I'm trying to draw lines on based on mouse events.
I'm using a Graphics object to do this. However, the region that the
graphics object will draw lines in is different in size than the panel
size. I'd like the graphics object's clipping region (is "clipping
region" the right terminology?) to be the same size as the panel. How
do I do this?

Note that the default size of the clipping region for the graphics
object that I created seems to be 200x100. Why is this? Shouldn't it be
the same as the panel in which it was instantiated?

Thanks,
Don

Jan 24 '07 #1
0 1314

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

Similar topics

1
by: Mudcat | last post by:
Hi all, I am writing a gui that expands depending on the number of interefaces a user decides to use with Win 2k, Tkinter, and Pmw. So with normal use the gui window will expand to the screen...
1
by: RIck Measham | last post by:
I pop up a window with a picture in it, however the picture can be very large. So here's what I want to do: Pop up a mindow with the picture clipped to the size of the window, then place a scaled...
1
by: Steve Richter | last post by:
is there a "GetTextExtentPoint32" equivalent in Windows Form or Font class? from the button text I would like to calculate the size that the button needs to be. thanks, -Steve
0
by: William Stacey [MVP] | last post by:
This code worked on fx 1.1 and now I get a "Keyset does not exist" error when trying to SignData with RSA under FX2.0. Smells like some security error, but can't debug it as I think error is...
1
by: Carl Gilbert | last post by:
Hi I am drawing a pie like shape on a windows form in VB.NET using the FillPie method as follows in the form Paint event: e.Graphics.FillPie(brush, Me.ClientRectangle, pro.Angle, pro.Span) ...
3
by: Brad Rogers | last post by:
All, Being immersed in vb.net and trying CSharp after almost a year I forgot the differences. I like vb fixing the uppercase/lowercase names and seeming to be more flexible to code entry. ...
7
by: Curious | last post by:
Hi, I have created my own data structure. Basically it is a two way 'stack', where I can push elements and pop elements both from top and bottom. I also included a counter to show the number...
0
by: zeng.hui.stephen | last post by:
I download the demo http://msdn.microsoft.com/msdnmag/issues/02/10/cuttingedge/. I inherite the demo, and write my code. I want to use Hook to monitor C++ Edit change. I use a C# form...
2
by: Mike Borrowdale | last post by:
-- Hi, my application simulates a panel of scientific instruments. Digital readouts are provided by label components embedded in a TableLayoutPanel with the rows and columns set to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.