Click here to Skip to main content
15,909,466 members
Home / Discussions / C#
   

C#

 
QuestionConvert project from 2003->2005 (framework) Pin
BlackDice16-Mar-06 8:22
BlackDice16-Mar-06 8:22 
Questiongetting graphics with UxTheme API Pin
elraton16-Mar-06 7:02
elraton16-Mar-06 7:02 
AnswerRe: getting graphics with UxTheme API Pin
Christian Graus16-Mar-06 7:21
protectorChristian Graus16-Mar-06 7:21 
QuestionFormatting string for a double value Pin
Pedro S Ferreira16-Mar-06 6:59
Pedro S Ferreira16-Mar-06 6:59 
QuestionThread Exit in a Single Threaded App Pin
Leyu16-Mar-06 6:48
Leyu16-Mar-06 6:48 
QuestionSimple Animation Question Pin
...---...16-Mar-06 6:47
...---...16-Mar-06 6:47 
AnswerRe: Simple Animation Question Pin
Christian Graus16-Mar-06 7:09
protectorChristian Graus16-Mar-06 7:09 
QuestionScroll to owner drawn Rectangle - plz help Pin
Gulfraz Khan16-Mar-06 6:25
Gulfraz Khan16-Mar-06 6:25 
I am facing problem with my custom control. Please help urgently.

My control inherits a Windows.Forms.Panel control. I have set the AutoScroll property of the base control (panel) to true. I added a PictureBox in the at location (Left = 0, Top = 0) in the panel control. Size of the PictureBox is large enough to show the ScrollBars for the base control (panel).

In the Paint Event handler of the picture Box I am drawing a rectangle.
To scroll (make it visible completely in the Client area) to the drawn rectangle, I added a transparent Label control and set its bounds(location, size) as of drawn rectangle in runtime after drawing the rectangle and called the Panel's ScrollControlIntoView method.
Scrolling works, but when I change the location and size of the rectangle to draw it to another location, the rectangle intersects the client rectangle of my control (i.e. not visible completely in the client rectangle).

How can I avoid it?
How do I know if my rectangle is intersecting the client rectangle?
Or
How do I position my transparent label such that it is completely visible in the client rectangle?
Or
Suggest me any other way

Thank You,
Gulfraz Khan

Questionhow to implement zoom? Pin
Sasuko16-Mar-06 6:04
Sasuko16-Mar-06 6:04 
AnswerRe: how to implement zoom? Pin
Gulfraz Khan16-Mar-06 6:31
Gulfraz Khan16-Mar-06 6:31 
QuestionDownload from db; resave to db Pin
Lash2016-Mar-06 5:35
Lash2016-Mar-06 5:35 
AnswerRe: Download from db; resave to db Pin
Christian Graus16-Mar-06 5:57
protectorChristian Graus16-Mar-06 5:57 
GeneralRe: Download from db; resave to db Pin
Lash2016-Mar-06 6:26
Lash2016-Mar-06 6:26 
GeneralRe: Download from db; resave to db Pin
Christian Graus16-Mar-06 6:34
protectorChristian Graus16-Mar-06 6:34 
QuestionGetting and setting scrollbar position of a listview Pin
Dan Neely16-Mar-06 5:29
Dan Neely16-Mar-06 5:29 
QuestionFind user under W98 Pin
Dave Midgley16-Mar-06 5:28
Dave Midgley16-Mar-06 5:28 
AnswerRe: Find user under W98 Pin
Leyu16-Mar-06 6:42
Leyu16-Mar-06 6:42 
GeneralRe: Find user under W98 Pin
Dave Midgley16-Mar-06 7:05
Dave Midgley16-Mar-06 7:05 
QuestionHow to find file in hard disk? Pin
Dima Filipiuk16-Mar-06 5:25
Dima Filipiuk16-Mar-06 5:25 
AnswerRe: How to find file in hard disk? Pin
Ed.Poore16-Mar-06 5:53
Ed.Poore16-Mar-06 5:53 
QuestionProcess.Start() not working on windows 2000 Pin
mohamed seif16-Mar-06 4:19
mohamed seif16-Mar-06 4:19 
AnswerRe: Process.Start() not working on windows 2000 Pin
albCode16-Mar-06 5:00
albCode16-Mar-06 5:00 
AnswerRe: Process.Start() not working on windows 2000 Pin
Dan Neely16-Mar-06 5:04
Dan Neely16-Mar-06 5:04 
QuestiondrawString and Thread problem Pin
rnvrnv16-Mar-06 4:03
rnvrnv16-Mar-06 4:03 
AnswerRe: drawString and Thread problem Pin
Ed.Poore16-Mar-06 5:51
Ed.Poore16-Mar-06 5:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.