Click here to Skip to main content
15,920,633 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionWriting IR data transmitter / receiver for Pocket PC 2003 (VB.Net) Pin
Codemonkey858-Mar-09 18:50
Codemonkey858-Mar-09 18:50 
AnswerRe: Writing IR data transmitter / receiver for Pocket PC 2003 (VB.Net) Pin
Dave Kreskowiak9-Mar-09 4:27
mveDave Kreskowiak9-Mar-09 4:27 
GeneralRe: Writing IR data transmitter / receiver for Pocket PC 2003 (VB.Net) Pin
Codemonkey859-Mar-09 4:53
Codemonkey859-Mar-09 4:53 
QuestionIP information Pin
bona_bone18-Mar-09 8:44
bona_bone18-Mar-09 8:44 
AnswerRe: IP information Pin
Ashfield8-Mar-09 8:57
Ashfield8-Mar-09 8:57 
QuestionRe: IP information Pin
bona_bone18-Mar-09 9:01
bona_bone18-Mar-09 9:01 
AnswerRe: IP information Pin
0x3c08-Mar-09 9:12
0x3c08-Mar-09 9:12 
GeneralRe: IP information Pin
bona_bone18-Mar-09 11:01
bona_bone18-Mar-09 11:01 
GeneralRe: IP information Pin
Luc Pattyn8-Mar-09 13:11
sitebuilderLuc Pattyn8-Mar-09 13:11 
GeneralRe: IP information Pin
Dave Kreskowiak8-Mar-09 13:23
mveDave Kreskowiak8-Mar-09 13:23 
Questionuse of button Pin
nazimghori8-Mar-09 4:22
nazimghori8-Mar-09 4:22 
AnswerRe: use of button Pin
Dave Kreskowiak8-Mar-09 6:36
mveDave Kreskowiak8-Mar-09 6:36 
GeneralRe: use of button Pin
nazimghori8-Mar-09 6:56
nazimghori8-Mar-09 6:56 
GeneralRe: use of button Pin
Smithers-Jones8-Mar-09 7:55
Smithers-Jones8-Mar-09 7:55 
GeneralRe: use of button Pin
nazimghori8-Mar-09 8:26
nazimghori8-Mar-09 8:26 
GeneralRe: use of button Pin
Dave Kreskowiak8-Mar-09 13:18
mveDave Kreskowiak8-Mar-09 13:18 
His requirement is superficial and leads to a problem. The solution is a bad one in a production application. Localized apps will not have the same text in the button.Text property as in the inevitble code he will write.

Accepted solutions are to either
1. visually swap out the button with another, prewired button, or, less likely,
2. change the properties of the button, then rewire the Click event handler.

I go for the simpler solution.

Checking for the text as a "switch" does approximately the same thing as option number 2, but relies unreleliable information to do it.

The inevitable code he will write will consist of putting all the "work" code in the button handler (bad practice!) and throwing in an if statement to branch between two sections of code that really should be in their own methods.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




Questionproblem with database Pin
nazimghori8-Mar-09 0:04
nazimghori8-Mar-09 0:04 
AnswerRe: problem with database Pin
Colin Angus Mackay8-Mar-09 2:21
Colin Angus Mackay8-Mar-09 2:21 
GeneralRe: problem with database Pin
nazimghori8-Mar-09 3:39
nazimghori8-Mar-09 3:39 
QuestionIPTC Pin
pvatanpour7-Mar-09 19:43
pvatanpour7-Mar-09 19:43 
AnswerRe: IPTC Pin
Alan N8-Mar-09 1:36
Alan N8-Mar-09 1:36 
Questionkey press [modified] Pin
JAYRAJ GIRI7-Mar-09 17:43
JAYRAJ GIRI7-Mar-09 17:43 
AnswerRe: key press Pin
dan!sh 7-Mar-09 18:41
professional dan!sh 7-Mar-09 18:41 
JokeRe: key press Pin
ABitSmart7-Mar-09 19:21
ABitSmart7-Mar-09 19:21 
GeneralRe: key press Pin
Luc Pattyn8-Mar-09 1:15
sitebuilderLuc Pattyn8-Mar-09 1:15 

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.