Click here to Skip to main content
15,903,362 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to send value in port(tcp/ip) Pin
led mike20-Nov-07 4:57
led mike20-Nov-07 4:57 
AnswerRe: how to send value in port(tcp/ip) Pin
Frank Kerrigan20-Nov-07 5:15
Frank Kerrigan20-Nov-07 5:15 
QuestionVisual Studio 2008 - Tip of the Day Pin
Peter Vertes20-Nov-07 4:36
Peter Vertes20-Nov-07 4:36 
AnswerRe: Visual Studio 2008 - Tip of the Day Pin
Pete O'Hanlon20-Nov-07 11:10
mvePete O'Hanlon20-Nov-07 11:10 
QuestionButton Pin
RussBus20-Nov-07 4:10
RussBus20-Nov-07 4:10 
AnswerRe: Button Pin
Colin Angus Mackay20-Nov-07 4:55
Colin Angus Mackay20-Nov-07 4:55 
GeneralRe: Button Pin
Skippums20-Nov-07 4:59
Skippums20-Nov-07 4:59 
AnswerRe: Button Pin
Skippums20-Nov-07 4:58
Skippums20-Nov-07 4:58 
1. Make your own button class, that inherits from System.Windows.Forms.Button
2. Add a property called "IsPressed" that gets or sets a private member
3. Override the onPaint method, and draw the button based on the value of the private member behind the IsPressed property

If you use flat styles, then you can just make clicking the button swap the button flat style with the previous value to get that kind of effect, but it doesn't look like a standard button then. Another alternative is that you change the text. So, for example, you could change "Show" to "Hide" and vice-versa. Hope one of these ideas helps.

Jeff
QuestionIUnknown -> object => null ??? Pin
kb-boxer20-Nov-07 4:08
kb-boxer20-Nov-07 4:08 
AnswerRe: IUnknown -> object => null ??? Pin
led mike20-Nov-07 5:13
led mike20-Nov-07 5:13 
GeneralRe: IUnknown -> object => null ??? Pin
kb-boxer20-Nov-07 22:06
kb-boxer20-Nov-07 22:06 
GeneralRe: IUnknown -> object => null ??? Pin
led mike21-Nov-07 4:33
led mike21-Nov-07 4:33 
QuestionHelp on bringing data out of .dat file [modified] URGENT Pin
Kyle Maldonado20-Nov-07 4:06
Kyle Maldonado20-Nov-07 4:06 
AnswerRe: Help on bringing data out of .dat file [modified] URGENT Pin
Skippums20-Nov-07 5:56
Skippums20-Nov-07 5:56 
QuestionSend key strokes to terminal server window Pin
mav.northwind20-Nov-07 4:02
mav.northwind20-Nov-07 4:02 
AnswerRe: Send key strokes to terminal server window Pin
Skippums20-Nov-07 4:47
Skippums20-Nov-07 4:47 
GeneralRe: Send key strokes to terminal server window Pin
mav.northwind21-Nov-07 10:03
mav.northwind21-Nov-07 10:03 
GeneralRe: Send key strokes to terminal server window Pin
mav.northwind23-Nov-07 10:45
mav.northwind23-Nov-07 10:45 
GeneralRe: Send key strokes to terminal server window Pin
Skippums26-Nov-07 6:52
Skippums26-Nov-07 6:52 
GeneralRe: Send key strokes to terminal server window Pin
mav.northwind26-Nov-07 21:55
mav.northwind26-Nov-07 21:55 
GeneralRe: Send key strokes to terminal server window Pin
mav.northwind27-Nov-07 21:01
mav.northwind27-Nov-07 21:01 
GeneralRe: Send key strokes to terminal server window Pin
Skippums28-Nov-07 4:53
Skippums28-Nov-07 4:53 
Questionservice doesn't register Pin
stephan_00720-Nov-07 3:49
stephan_00720-Nov-07 3:49 
AnswerRe: service doesn't register Pin
led mike20-Nov-07 5:02
led mike20-Nov-07 5:02 
GeneralRe: service doesn't register Pin
stephan_00720-Nov-07 22:13
stephan_00720-Nov-07 22:13 

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.