Click here to Skip to main content
15,920,801 members
Home / Discussions / C#
   

C#

 
AnswerRe: How do i check a control type? Pin
m@u6-Feb-07 5:27
m@u6-Feb-07 5:27 
AnswerRe: How do i check a control type? Pin
Seishin#6-Feb-07 5:42
Seishin#6-Feb-07 5:42 
GeneralRe: How do i check a control type? Pin
sharpiesharpie6-Feb-07 5:56
sharpiesharpie6-Feb-07 5:56 
GeneralRe: How do i check a control type? Pin
Martin#6-Feb-07 6:13
Martin#6-Feb-07 6:13 
AnswerJust a solution for future reference Pin
sharpiesharpie6-Feb-07 6:24
sharpiesharpie6-Feb-07 6:24 
GeneralRe: Just a solution for future reference Pin
Martin#6-Feb-07 6:45
Martin#6-Feb-07 6:45 
AnswerRe: How do i check a control type? Pin
Luc Pattyn6-Feb-07 7:49
sitebuilderLuc Pattyn6-Feb-07 7:49 
Questionhighlighting a map Pin
Da_Bigg_Z6-Feb-07 4:32
Da_Bigg_Z6-Feb-07 4:32 
Hey coders what's up?

Result required:
to be able to highlight a specific area of an image when a button is turned on.
when a button is turned off remove that highlighting.

Here is my problem:

I have a form that displays a map image inside a picture box control.
I created a graphics object out of the picture box such as *picturebox1.CreateGraphics()*

and then I use it to highlight specific areas of the map when a certain button is turned on
using a transparent brush such as

///////square to be highlighted//////////////
Point[] squareAPoints = new Point[4];
squareAPoints[0] = new Point(100,200);
squareAPoints[1] = new Point(200,200);
squareAPoints[2] = new Point(200,300);
squareAPoints[3] = new Point(100,300);
///////////////////////////////////////////

Graphics grfx = picturebox1.CreateGraphics();
Brush highlighterBrush = SolidBrush(Color.FromArgb(100, Color.Red)) //(setting the alpha to 100)
grfx.FillPolygon(highlighterBrush, squareAPoints)


now when I turn a certain button off I want this highlighting to be removed, how can I do so?
please help with ideas, tutorials, codes, lessons anything to achieve the end results will be appreciated.


AnswerRe: highlighting a map Pin
sharpiesharpie6-Feb-07 4:57
sharpiesharpie6-Feb-07 4:57 
GeneralRe: highlighting a map Pin
Da_Bigg_Z6-Feb-07 5:14
Da_Bigg_Z6-Feb-07 5:14 
AnswerRe: highlighting a map Pin
m@u6-Feb-07 5:32
m@u6-Feb-07 5:32 
Questionproblem in editor Pin
hany_hu6-Feb-07 4:23
hany_hu6-Feb-07 4:23 
AnswerRe: problem in editor Pin
Guffa6-Feb-07 6:00
Guffa6-Feb-07 6:00 
QuestionDateTimePicker : Time-Loop -> Date-Switch Pin
Ariadne6-Feb-07 4:11
Ariadne6-Feb-07 4:11 
QuestionHelp regarding Regular Expressions [modified] Pin
anu816-Feb-07 3:08
anu816-Feb-07 3:08 
AnswerRe: Help regarding Regular Expressions Pin
Stefan Troschuetz6-Feb-07 3:12
Stefan Troschuetz6-Feb-07 3:12 
GeneralRe: Help regarding Regular Expressions Pin
anu816-Feb-07 3:18
anu816-Feb-07 3:18 
GeneralRe: Help regarding Regular Expressions Pin
Stefan Troschuetz6-Feb-07 3:31
Stefan Troschuetz6-Feb-07 3:31 
AnswerRe: Help regarding Regular Expressions Pin
gauthee6-Feb-07 3:18
gauthee6-Feb-07 3:18 
GeneralRe: Help regarding Regular Expressions Pin
anu816-Feb-07 3:22
anu816-Feb-07 3:22 
AnswerRe: Help regarding Regular Expressions Pin
baronics6-Feb-07 3:33
baronics6-Feb-07 3:33 
AnswerRe: Help regarding Regular Expressions Pin
Colin Angus Mackay6-Feb-07 3:35
Colin Angus Mackay6-Feb-07 3:35 
AnswerRe: Help regarding Regular Expressions Pin
m@u6-Feb-07 3:36
m@u6-Feb-07 3:36 
QuestionDirectDraw can work fast ? Pin
free_soul4246-Feb-07 2:59
free_soul4246-Feb-07 2:59 
AnswerRe: DirectDraw can work fast ? Pin
Judah Gabriel Himango6-Feb-07 7:50
sponsorJudah Gabriel Himango6-Feb-07 7:50 

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.