Click here to Skip to main content
15,912,069 members
Home / Discussions / C#
   

C#

 
AnswerRe: namespace Pin
DaveyM691-Apr-09 6:32
professionalDaveyM691-Apr-09 6:32 
AnswerRe: namespace Pin
Colin Angus Mackay1-Apr-09 6:32
Colin Angus Mackay1-Apr-09 6:32 
AnswerRe: namespace Pin
Adam Maras1-Apr-09 11:57
Adam Maras1-Apr-09 11:57 
QuestionBindingSource Filter Pin
shafiullah1231-Apr-09 5:51
shafiullah1231-Apr-09 5:51 
AnswerRe: BindingSource Filter Pin
ABitSmart1-Apr-09 7:27
ABitSmart1-Apr-09 7:27 
GeneralRe: BindingSource Filter Pin
shafiullah1231-Apr-09 8:55
shafiullah1231-Apr-09 8:55 
AnswerRe: BindingSource Filter Pin
jaypatel5121-Apr-09 20:33
jaypatel5121-Apr-09 20:33 
Questionopacity problem Pin
Try1-Apr-09 5:40
Try1-Apr-09 5:40 
Hi All,

I am using C#. I have a empty Form. When i move mouse on the Form, i am displaying the x and y position of mouse using DrawString() method.

Graphics grx = e.Graphics;
string xy = "X: " + cursorPos.X.ToString() + "\nY: " + cursorPos.Y.ToString();
grx.DrawString(xy, font, brush, cursorPos.X, cursorPos.Y);

The above code snippet is in Paint event. Hence the x and y values move along with cursor.

My problem,
When i change the opacity of Form from 100% to 10%, the Form becomes transparent. Even x and y values (displayed using DrawString) becomes transparent (faint).
I want the x and y values to be displayed clearly even if Form is transparent. How can i achieve it?

Thanks in advance.
AnswerRe: opacity problem Pin
musefan1-Apr-09 5:49
musefan1-Apr-09 5:49 
GeneralRe: opacity problem Pin
Try1-Apr-09 8:18
Try1-Apr-09 8:18 
GeneralRe: opacity problem Pin
musefan1-Apr-09 21:39
musefan1-Apr-09 21:39 
GeneralRe: opacity problem Pin
Try2-Apr-09 0:39
Try2-Apr-09 0:39 
QuestionHow to update a field in a word 2007 document? Pin
Krissh1-Apr-09 4:53
Krissh1-Apr-09 4:53 
AnswerRe: How to update a field in a word 2007 document? Pin
musefan1-Apr-09 5:27
musefan1-Apr-09 5:27 
GeneralRe: How to update a field in a word 2007 document? Pin
Krissh2-Apr-09 1:09
Krissh2-Apr-09 1:09 
AnswerRe: How to update a field in a word 2007 document? Pin
Krissh2-Apr-09 2:47
Krissh2-Apr-09 2:47 
QuestionHow to use different Views in Smart client software factory shell form dynamically? Pin
Vapctr1-Apr-09 4:19
Vapctr1-Apr-09 4:19 
QuestionError while using Sub reports in Report Viewer Pin
tauras811-Apr-09 3:03
tauras811-Apr-09 3:03 
QuestionBuilding tree in c# Pin
Reza S1-Apr-09 2:56
Reza S1-Apr-09 2:56 
AnswerRe: Building tree in c# PinPopular
MumbleB1-Apr-09 2:59
MumbleB1-Apr-09 2:59 
GeneralRe: Building tree in c# Pin
benjymous1-Apr-09 3:09
benjymous1-Apr-09 3:09 
GeneralRe: Building tree in c# Pin
Abhishek Sur1-Apr-09 4:29
professionalAbhishek Sur1-Apr-09 4:29 
GeneralRe: Building tree in c# Pin
Xmen Real 1-Apr-09 6:29
professional Xmen Real 1-Apr-09 6:29 
AnswerRe: Building tree in c# Pin
Abhishek Sur1-Apr-09 4:31
professionalAbhishek Sur1-Apr-09 4:31 
RantRe: Building tree in c# Pin
Le centriste1-Apr-09 5:30
Le centriste1-Apr-09 5:30 

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.