Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to use keyboard keys instead of mouse for space invaders Pin
Dave Kreskowiak23-May-13 7:24
mveDave Kreskowiak23-May-13 7:24 
AnswerMessage Removed Pin
23-May-13 7:26
professionalN_tro_P23-May-13 7:26 
GeneralRe: How to use keyboard keys instead of mouse for space invaders Pin
Ruben X Ashley David23-May-13 7:45
Ruben X Ashley David23-May-13 7:45 
QuestionRe: Set Color of Pen and Brush Pin
ASPnoob22-May-13 21:06
ASPnoob22-May-13 21:06 
AnswerRe: Set Color of Pen and Pen Pin
Bernhard Hiller22-May-13 21:17
Bernhard Hiller22-May-13 21:17 
GeneralRe: Set Color of Pen and Brush Pin
ASPnoob22-May-13 21:34
ASPnoob22-May-13 21:34 
AnswerRe: Set Color of Pen and Pen Pin
DaveyM6922-May-13 21:34
professionalDaveyM6922-May-13 21:34 
GeneralRe: Set Color of Pen and Brush Pin
ASPnoob22-May-13 21:44
ASPnoob22-May-13 21:44 
Hi, thanks for your reply. The example in the MSDN below suggests that I must manually set the value of
FromArgb():
public void FromArgb4(PaintEventArgs e)
{
Graphics g = e.Graphics;

// Transparent red, green, and blue brushes.
SolidBrush trnsRedBrush = new SolidBrush(Color.FromArgb(0x78FF0000));
SolidBrush trnsGreenBrush = new SolidBrush(Color.FromArgb(0x7800FF00));
SolidBrush trnsBlueBrush = new SolidBrush(Color.FromArgb(0x780000FF));
}
You've just given me an idea; I'm going to allow users to set the color of the brush or pen object by clicking on the color palette object. This will grab the color code then pass it as a parameter to the FromArgb4() method.

modified 23-May-13 7:03am.

GeneralRe: Set Color of Pen and Pen Pin
DaveyM6922-May-13 21:54
professionalDaveyM6922-May-13 21:54 
QuestionNew Button in SaveFileDialog Pin
umd22-May-13 9:38
umd22-May-13 9:38 
AnswerRe: New Button in SaveFileDialog Pin
Mycroft Holmes22-May-13 12:50
professionalMycroft Holmes22-May-13 12:50 
AnswerRe: New Button in SaveFileDialog Pin
Abhinav S22-May-13 18:27
Abhinav S22-May-13 18:27 
AnswerRe: New Button in SaveFileDialog Pin
Richard MacCutchan22-May-13 21:06
mveRichard MacCutchan22-May-13 21:06 
AnswerRe: New Button in SaveFileDialog Pin
umd23-May-13 8:52
umd23-May-13 8:52 
QuestionDeveloping pager for winform application c# Pin
Tridip Bhattacharjee22-May-13 4:45
professionalTridip Bhattacharjee22-May-13 4:45 
Questionunable to launch C sharp Windows application using Windows 7 Pin
Member 961158422-May-13 4:08
Member 961158422-May-13 4:08 
AnswerRe: unable to launch C sharp Windows application using Windows 7 Pin
Pete O'Hanlon22-May-13 6:00
mvePete O'Hanlon22-May-13 6:00 
QuestionMake datagridview selected row invisible Pin
geralson22-May-13 1:41
geralson22-May-13 1:41 
AnswerRe: Make datagridview selected row invisible Pin
Richard MacCutchan22-May-13 2:42
mveRichard MacCutchan22-May-13 2:42 
GeneralRe: Make datagridview selected row invisible Pin
geralson22-May-13 3:32
geralson22-May-13 3:32 
QuestionExcel without excel Pin
caradri22-May-13 0:34
caradri22-May-13 0:34 
AnswerRe: Excel without excel Pin
Richard Deeming22-May-13 1:46
mveRichard Deeming22-May-13 1:46 
AnswerRe: Excel without excel Pin
PIEBALDconsult22-May-13 5:03
mvePIEBALDconsult22-May-13 5:03 
GeneralRe: Excel without excel Pin
caradri22-May-13 5:19
caradri22-May-13 5:19 
Question2D Array Managed and Unmanaged code Data Marshling Pin
Subhash Madhukar21-May-13 22:34
Subhash Madhukar21-May-13 22:34 

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.