Click here to Skip to main content
15,921,210 members
Home / Discussions / C#
   

C#

 
AnswerRe: Need help converting a code snipper from C# to VB.NET. Pin
Christian Graus27-Apr-06 17:43
protectorChristian Graus27-Apr-06 17:43 
AnswerRe: Need help converting a code snipper from C# to VB.NET. Pin
Dave Doknjas28-Apr-06 16:31
Dave Doknjas28-Apr-06 16:31 
GeneralRe: Need help converting a code snipper from C# to VB.NET. Pin
Dave Doknjas29-Apr-06 3:16
Dave Doknjas29-Apr-06 3:16 
GeneralRe: Need help converting a code snipper from C# to VB.NET. Pin
Dave Doknjas29-Apr-06 3:17
Dave Doknjas29-Apr-06 3:17 
QuestionConvert string to boolean Pin
teejayem27-Apr-06 15:03
teejayem27-Apr-06 15:03 
AnswerRe: Convert string to boolean Pin
Sean8927-Apr-06 15:24
Sean8927-Apr-06 15:24 
GeneralRe: Convert string to boolean Pin
teejayem27-Apr-06 15:35
teejayem27-Apr-06 15:35 
GeneralRe: Convert string to boolean Pin
Sean8928-Apr-06 7:39
Sean8928-Apr-06 7:39 
AnswerRe: Convert string to boolean Pin
Graham Nimbley27-Apr-06 15:25
Graham Nimbley27-Apr-06 15:25 
GeneralRe: Convert string to boolean Pin
Sean8927-Apr-06 15:32
Sean8927-Apr-06 15:32 
AnswerRe: Convert string to boolean Pin
DougW4830-Apr-06 9:40
DougW4830-Apr-06 9:40 
QuestionProblem with System.IO, Please Help Pin
Shadow Sprite27-Apr-06 14:18
Shadow Sprite27-Apr-06 14:18 
AnswerRe: Problem with System.IO, Please Help Pin
S. Senthil Kumar27-Apr-06 16:26
S. Senthil Kumar27-Apr-06 16:26 
GeneralRe: Problem with System.IO, Please Help Pin
Shadow Sprite27-Apr-06 23:59
Shadow Sprite27-Apr-06 23:59 
QuestionHow to stop Backgroundworker ? Pin
ALQallaf27-Apr-06 12:50
ALQallaf27-Apr-06 12:50 
AnswerRe: How to stop Backgroundworker ? Pin
Josh Smith27-Apr-06 13:07
Josh Smith27-Apr-06 13:07 
QuestionDrawReversibleFrame? Pin
melanieab27-Apr-06 10:08
melanieab27-Apr-06 10:08 
AnswerRe: DrawReversibleFrame? Pin
Guffa27-Apr-06 10:23
Guffa27-Apr-06 10:23 
GeneralRe: DrawReversibleFrame? Pin
melanieab27-Apr-06 11:08
melanieab27-Apr-06 11:08 
Thank you, that makes sense. Smile | :) (I wasn't thinking and expected to see it at 5,5,15,15 on the form rather than the screen.)

Another question though. I'd actually like to use DrawFocusRectangle on a button, and did get it working yesterday, but after I changed a couple properties of my button (like tabstop #, size, and location), it stopped working. I added a MessageBox just before the DrawFocusRectangle call and after I hit the ok button, the focus rectangle did draw (code below). I also added a Click event (on some label) and moved the code below (without the MessageBox) to the event, and then it worked too.

button2.Focus();<br />
			int x = button2.ClientRectangle.Location.X + 3;<br />
			int y = button2.ClientRectangle.Location.Y + 3;<br />
			int w = button2.ClientRectangle.Width - 6;<br />
			int h = button2.ClientRectangle.Height - 6;<br />
			Rectangle r = new Rectangle(x,y,w,h); <br />
	MessageBox.Show("");		ControlPaint.DrawFocusRectangle(Graphics.FromHwnd(button2.Handle), r, Color.Black, Color.Black);	


Anyone know why it won't work without some external help?
Thanks again!!!
Mel Confused | :confused:
AnswerRe: DrawReversibleFrame? Pin
Guffa27-Apr-06 14:07
Guffa27-Apr-06 14:07 
GeneralRe: DrawReversibleFrame? Pin
melanieab28-Apr-06 9:57
melanieab28-Apr-06 9:57 
QuestionTips for writing a Web Service in C# which will be used by a Java app... Pin
Josh Smith27-Apr-06 9:49
Josh Smith27-Apr-06 9:49 
QuestionThe correct way to dispose of objects Pin
Mark0627-Apr-06 9:32
Mark0627-Apr-06 9:32 
AnswerRe: The correct way to dispose of objects Pin
Colin Angus Mackay27-Apr-06 10:00
Colin Angus Mackay27-Apr-06 10:00 
QuestionRichTextBox tables Pin
Authorof2227-Apr-06 9:24
Authorof2227-Apr-06 9:24 

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.