Click here to Skip to main content
15,896,915 members
Home / Discussions / C#
   

C#

 
AnswerRe: Why is my .mdb connection not working? Pin
Mahesh Kumar V K2-Oct-05 21:39
Mahesh Kumar V K2-Oct-05 21:39 
QuestionGet External Ip Pin
ventomito2-Oct-05 8:37
ventomito2-Oct-05 8:37 
Questionmost efficient way to draw triangle Pin
...---...2-Oct-05 6:04
...---...2-Oct-05 6:04 
AnswerRe: most efficient way to draw triangle Pin
Dave Kreskowiak2-Oct-05 7:12
mveDave Kreskowiak2-Oct-05 7:12 
GeneralRe: most efficient way to draw triangle Pin
...---...2-Oct-05 8:20
...---...2-Oct-05 8:20 
GeneralRe: most efficient way to draw triangle Pin
Dave Kreskowiak2-Oct-05 8:47
mveDave Kreskowiak2-Oct-05 8:47 
GeneralRe: most efficient way to draw triangle Pin
...---...2-Oct-05 9:24
...---...2-Oct-05 9:24 
GeneralRe: most efficient way to draw triangle Pin
Robert Rohde2-Oct-05 19:29
Robert Rohde2-Oct-05 19:29 
Sure you can, but you will have to initialize the array of Pen somewhere else (for example in the constructor):

private Pen[] activePen; //btw: members should always be private

public MyClass() {
activePen = new Pen[] { new Pen( Color.Blue, 2 ), new Pen( Color.Green, 2 ), new Pen(Color.Red, 2) };
activePen[0].EndCap = System.Drawing.Drawing2D.LineCap.Round;
activePen[1].EndCap = System.Drawing.Drawing2D.LineCap.Triangle;
activePen[2].StartCap = System.Drawing.Drawing2D.LineCap.Triangle;
activePen[3].EndCap = System.Drawing.Drawing2D.LineCap.ArrowAnchor;
}


Now all your pens have different kind of caps. You can als play around with the other properties of the Pen (like Dash...). You should also look at the CustomeStartCap/EndCap properties. With them you can define special caps (if needed).
QuestionOleDbType cast to BaseType .Net Pin
Gedrain2-Oct-05 3:24
Gedrain2-Oct-05 3:24 
AnswerRe: OleDbType cast to BaseType .Net Pin
Dave Kreskowiak2-Oct-05 7:17
mveDave Kreskowiak2-Oct-05 7:17 
GeneralRe: OleDbType cast to BaseType .Net Pin
Gedrain2-Oct-05 7:21
Gedrain2-Oct-05 7:21 
GeneralRe: OleDbType cast to BaseType .Net Pin
Dave Kreskowiak2-Oct-05 8:29
mveDave Kreskowiak2-Oct-05 8:29 
GeneralRe: OleDbType cast to BaseType .Net Pin
Gedrain2-Oct-05 8:36
Gedrain2-Oct-05 8:36 
GeneralRe: OleDbType cast to BaseType .Net Pin
Dave Kreskowiak2-Oct-05 8:50
mveDave Kreskowiak2-Oct-05 8:50 
QuestionHelp!! monitor bandwidth usage Pin
dunbshy2-Oct-05 3:03
dunbshy2-Oct-05 3:03 
AnswerRe: Help!! monitor bandwidth usage Pin
Dave Kreskowiak2-Oct-05 7:09
mveDave Kreskowiak2-Oct-05 7:09 
GeneralRe: Help!! monitor bandwidth usage Pin
dunbshy2-Oct-05 7:26
dunbshy2-Oct-05 7:26 
GeneralRe: Help!! monitor bandwidth usage Pin
Dave Kreskowiak2-Oct-05 8:45
mveDave Kreskowiak2-Oct-05 8:45 
GeneralRe: Help!! monitor bandwidth usage Pin
dunbshy2-Oct-05 22:51
dunbshy2-Oct-05 22:51 
GeneralRe: Help!! monitor bandwidth usage Pin
Dave Kreskowiak6-Oct-05 11:54
mveDave Kreskowiak6-Oct-05 11:54 
QuestionRoulette Help!!! Pin
ArsNeo2-Oct-05 1:48
ArsNeo2-Oct-05 1:48 
AnswerRe: Roulette Help!!! Pin
Dave Kreskowiak2-Oct-05 2:21
mveDave Kreskowiak2-Oct-05 2:21 
GeneralRe: Roulette Help!!! Pin
ArsNeo2-Oct-05 6:47
ArsNeo2-Oct-05 6:47 
GeneralRe: Roulette Help!!! Pin
Dave Kreskowiak2-Oct-05 7:04
mveDave Kreskowiak2-Oct-05 7:04 
GeneralRe: Roulette Help!!! Pin
ArsNeo3-Oct-05 11:55
ArsNeo3-Oct-05 11:55 

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.