Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
GeneralRe: Can someone please tell me why the eventlog part of this doesn't work? Pin
Luc Pattyn21-Oct-11 1:59
sitebuilderLuc Pattyn21-Oct-11 1:59 
AnswerRe: Can someone please tell me why the eventlog part of this doesn't work? Pin
BobJanova20-Oct-11 22:30
BobJanova20-Oct-11 22:30 
AnswerRe: Can someone please tell me why the eventlog part of this doesn't work? Pin
phil.o21-Oct-11 0:30
professionalphil.o21-Oct-11 0:30 
AnswerRe: Can someone please tell me why the eventlog part of this doesn't work? - Solved Pin
CCodeNewbie22-Oct-11 9:49
CCodeNewbie22-Oct-11 9:49 
QuestionI am having some basic compile issues defining a BorderBrush. Pin
Xarzu20-Oct-11 7:37
Xarzu20-Oct-11 7:37 
AnswerRe: I am having some basic compile issues defining a BorderBrush. Pin
Manfred Rudolf Bihy20-Oct-11 7:52
professionalManfred Rudolf Bihy20-Oct-11 7:52 
GeneralRe: I am having some basic compile issues defining a BorderBrush. Pin
Xarzu20-Oct-11 12:15
Xarzu20-Oct-11 12:15 
AnswerRe: I am having some basic compile issues defining a BorderBrush. Pin
Alisaunder20-Oct-11 18:34
Alisaunder20-Oct-11 18:34 
On the very link you list it shows you need to have:

using System.Windows.Media.Brush;

So do you have your project set for .Net Framework 4.0? and have you included a reference to PresentationFramework.dll?

The following code works fine for me, I'm assuming your project is a C# WPF project:

C#
Border myBorder1 = new Border();
myBorder1.BorderBrush = Brushes.SlateBlue;
myBorder1.BorderThickness = new Thickness(5, 10, 15, 20);
myBorder1.Background = Brushes.AliceBlue;
myBorder1.Padding = new Thickness(5);
myBorder1.CornerRadius = new CornerRadius(15);


If you'll notice I added Border to the beginning of defining myBorder1 as this is the proper way to declare the variable.

modified 21-Oct-11 0:40am.

AnswerRe: I am having some basic compile issues defining a BorderBrush. Pin
BobJanova20-Oct-11 22:27
BobJanova20-Oct-11 22:27 
QuestionEmbedded Forms? Panels? Other? Pin
tim.walter20-Oct-11 3:33
tim.walter20-Oct-11 3:33 
AnswerRe: Embedded Forms? Panels? Other? Pin
Wayne Gaylard20-Oct-11 4:12
professionalWayne Gaylard20-Oct-11 4:12 
GeneralRe: Embedded Forms? Panels? Other? Pin
tim.walter20-Oct-11 4:20
tim.walter20-Oct-11 4:20 
GeneralRe: Embedded Forms? Panels? Other? Pin
Wayne Gaylard20-Oct-11 4:27
professionalWayne Gaylard20-Oct-11 4:27 
GeneralRe: Embedded Forms? Panels? Other? Pin
tim.walter20-Oct-11 4:30
tim.walter20-Oct-11 4:30 
GeneralRe: Embedded Forms? Panels? Other? Pin
BobJanova20-Oct-11 4:46
BobJanova20-Oct-11 4:46 
AnswerRe: Embedded Forms? Panels? Other? Pin
PIEBALDconsult20-Oct-11 4:21
mvePIEBALDconsult20-Oct-11 4:21 
Questionusing bitwise operators on ushort Pin
__John_20-Oct-11 2:37
__John_20-Oct-11 2:37 
AnswerRe: using bitwise operators on ushort Pin
BobJanova20-Oct-11 3:09
BobJanova20-Oct-11 3:09 
AnswerRe: using bitwise operators on ushort Pin
Richard MacCutchan20-Oct-11 3:25
mveRichard MacCutchan20-Oct-11 3:25 
GeneralRe: using bitwise operators on ushort Pin
__John_20-Oct-11 3:44
__John_20-Oct-11 3:44 
GeneralRe: using bitwise operators on ushort Pin
Richard MacCutchan20-Oct-11 4:11
mveRichard MacCutchan20-Oct-11 4:11 
QuestionHow to generate the area of the irregular polygon Pin
sivakumarmr1019-Oct-11 21:10
sivakumarmr1019-Oct-11 21:10 
AnswerRe: How to generate the area of the irregular polygon Pin
BillWoodruff19-Oct-11 22:04
professionalBillWoodruff19-Oct-11 22:04 
AnswerRe: How to generate the area of the irregular polygon Pin
BobJanova19-Oct-11 22:15
BobJanova19-Oct-11 22:15 
GeneralRe: How to generate the area of the irregular polygon Pin
CDP180219-Oct-11 22:57
CDP180219-Oct-11 22:57 

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.