Click here to Skip to main content
15,796,886 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Cannot change text of button on a control. Pin
Ammar_Ahmad23-Jun-12 5:10
Ammar_Ahmad23-Jun-12 5:10 
AnswerRe: Cannot change text of button on a control. Pin
Luc Pattyn23-Jun-12 5:18
sitebuilderLuc Pattyn23-Jun-12 5:18 
GeneralRe: Cannot change text of button on a control. Pin
Ammar_Ahmad23-Jun-12 5:21
Ammar_Ahmad23-Jun-12 5:21 
AnswerRe: Cannot change text of button on a control. Pin
Luc Pattyn23-Jun-12 5:35
sitebuilderLuc Pattyn23-Jun-12 5:35 
GeneralRe: Cannot change text of button on a control. Pin
Ammar_Ahmad23-Jun-12 5:41
Ammar_Ahmad23-Jun-12 5:41 
AnswerRe: Cannot change text of button on a control. Pin
Luc Pattyn23-Jun-12 5:57
sitebuilderLuc Pattyn23-Jun-12 5:57 
GeneralRe: Cannot change text of button on a control. Pin
Ammar_Ahmad23-Jun-12 6:28
Ammar_Ahmad23-Jun-12 6:28 
GeneralRe: Cannot change text of button on a control. Pin
Dave Kreskowiak23-Jun-12 6:42
mveDave Kreskowiak23-Jun-12 6:42 
First, you don't need ElseIf in this case. It should just be:
If Button1.Text = "0" Then
    Button1.Text = "1"
Else
    Button1.Text = "0"
End If


Second, Button1 is a horrible name for a button. Change it to something meaningful, like "OkButton", so you know without thinking which button it's referring to on your form.

GeneralRe: Cannot change text of button on a control. Pin
Ammar_Ahmad24-Jun-12 4:59
Ammar_Ahmad24-Jun-12 4:59 
GeneralRe: Cannot change text of button on a control. Pin
Dave Kreskowiak24-Jun-12 5:36
mveDave Kreskowiak24-Jun-12 5:36 
GeneralRe: Cannot change text of button on a control. Pin
Ammar_Ahmad24-Jun-12 5:44
Ammar_Ahmad24-Jun-12 5:44 
GeneralRe: Cannot change text of button on a control. Pin
javadadabi23-Jun-12 8:41
javadadabi23-Jun-12 8:41 
GeneralRe: Cannot change text of button on a control. Pin
Ammar_Ahmad24-Jun-12 5:00
Ammar_Ahmad24-Jun-12 5:00 
SuggestionRe: Cannot change text of button on a control. Pin
Ally523-Jun-12 17:15
Ally523-Jun-12 17:15 
GeneralRe: Cannot change text of button on a control. Pin
Ammar_Ahmad24-Jun-12 5:01
Ammar_Ahmad24-Jun-12 5:01 
SuggestionRe: Cannot change text of button on a control. Pin
Nick Otten25-Jun-12 0:07
Nick Otten25-Jun-12 0:07 
GeneralRe: Cannot change text of button on a control. Pin
Ammar_Ahmad25-Jun-12 2:13
Ammar_Ahmad25-Jun-12 2:13 
QuestionFlowLayoutPanel1 and controls Pin
Ammar_Ahmad22-Jun-12 0:59
Ammar_Ahmad22-Jun-12 0:59 
AnswerRe: FlowLayoutPanel1 and controls Pin
Nick Otten22-Jun-12 1:21
Nick Otten22-Jun-12 1:21 
QuestionRe: FlowLayoutPanel1 and controls Pin
Ammar_Ahmad22-Jun-12 1:48
Ammar_Ahmad22-Jun-12 1:48 
AnswerRe: FlowLayoutPanel1 and controls Pin
Nick Otten22-Jun-12 2:48
Nick Otten22-Jun-12 2:48 
QuestionRe: FlowLayoutPanel1 and controls Pin
Ammar_Ahmad22-Jun-12 3:46
Ammar_Ahmad22-Jun-12 3:46 
AnswerRe: FlowLayoutPanel1 and controls Pin
Nick Otten22-Jun-12 3:53
Nick Otten22-Jun-12 3:53 
GeneralRe: FlowLayoutPanel1 and controls Pin
Ammar_Ahmad22-Jun-12 3:59
Ammar_Ahmad22-Jun-12 3:59 
GeneralRe: FlowLayoutPanel1 and controls Pin
Nick Otten22-Jun-12 4:28
Nick Otten22-Jun-12 4:28 

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.