Click here to Skip to main content
15,887,464 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
AnswerRe: key press Pin
0x3c08-Mar-09 2:23
0x3c08-Mar-09 2:23 
AnswerMove along. Nothing to see here... Pin
Dave Kreskowiak8-Mar-09 6:33
mveDave Kreskowiak8-Mar-09 6:33 
AnswerRe: key press Pin
Christian Graus8-Mar-09 17:13
protectorChristian Graus8-Mar-09 17:13 
QuestionWindows hook Pin
robertw0197-Mar-09 12:17
robertw0197-Mar-09 12:17 
AnswerRe: Windows hook Pin
Dave Kreskowiak8-Mar-09 6:31
mveDave Kreskowiak8-Mar-09 6:31 
GeneralRe: Windows hook Pin
robertw0198-Mar-09 6:37
robertw0198-Mar-09 6:37 
AnswerRe: Windows hook Pin
scofflaw8-Mar-09 9:08
scofflaw8-Mar-09 9:08 
GeneralRe: Windows hook Pin
robertw0198-Mar-09 15:48
robertw0198-Mar-09 15:48 

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.