Click here to Skip to main content
15,889,859 members
Home / Discussions / C#
   

C#

 
QuestionNeed help ..... Pin
superselector11-Nov-13 22:15
superselector11-Nov-13 22:15 
AnswerRe: Need help ..... Pin
Eddy Vluggen11-Nov-13 22:34
professionalEddy Vluggen11-Nov-13 22:34 
AnswerRe: Need help ..... Pin
lukeer11-Nov-13 22:34
lukeer11-Nov-13 22:34 
AnswerRe: Need help ..... PinPopular
OriginalGriff11-Nov-13 22:35
mveOriginalGriff11-Nov-13 22:35 
GeneralRe: Need help ..... Pin
superselector12-Nov-13 0:57
superselector12-Nov-13 0:57 
AnswerRe: Need help ..... Pin
Mycroft Holmes11-Nov-13 23:22
professionalMycroft Holmes11-Nov-13 23:22 
QuestionChange Content of Button Pin
Member 1037988611-Nov-13 10:27
Member 1037988611-Nov-13 10:27 
AnswerRe: Change Content of Button Pin
Pete O'Hanlon11-Nov-13 10:32
mvePete O'Hanlon11-Nov-13 10:32 
The problem comes because you are trying to use a variable called Button when there is no such variable. Just because you have defined a Button on the main page, it doesn't mean that the code behind knows about it. There are 2 ways to fix this (without going into doing this via MVVM). The first technique for doing this is to name your button in the XAML using
x:Name="MyButton"
(this goes inside your Button declaration) and then use this name in your codebehind. The second way to do this is to take advantage of the fact that the sender argument refers to the control that set it, so you can do
((Button)sender)....
to set the value.
GeneralRe: Change Content of Button Pin
Member 1037988611-Nov-13 11:00
Member 1037988611-Nov-13 11:00 
GeneralRe: Change Content of Button Pin
Pete O'Hanlon11-Nov-13 11:18
mvePete O'Hanlon11-Nov-13 11:18 
Questionc# - Cinema system - Noob need help - 2d arrray - Pin
cSharpDonkey11-Nov-13 4:21
cSharpDonkey11-Nov-13 4:21 
AnswerRe: c# - Cinema system - Noob need help - 2d arrray - Pin
GuyThiebaut11-Nov-13 4:42
professionalGuyThiebaut11-Nov-13 4:42 
AnswerRe: c# - Cinema system - Noob need help - 2d arrray - Pin
Pete O'Hanlon11-Nov-13 4:43
mvePete O'Hanlon11-Nov-13 4:43 
AnswerRe: c# - Cinema system - Noob need help - 2d arrray - Pin
OriginalGriff11-Nov-13 5:18
mveOriginalGriff11-Nov-13 5:18 
AnswerRe: c# - Cinema system - Noob need help - 2d arrray - Pin
V.11-Nov-13 20:18
professionalV.11-Nov-13 20:18 
Questionsubtract list first element with second one,third with secon one an so on Pin
Member 1038120910-Nov-13 22:57
Member 1038120910-Nov-13 22:57 
AnswerRe: subtract list first element with second one,third with secon one an so on Pin
OriginalGriff10-Nov-13 23:05
mveOriginalGriff10-Nov-13 23:05 
GeneralRe: subtract list first element with second one,third with secon one an so on Pin
Member 1038120910-Nov-13 23:14
Member 1038120910-Nov-13 23:14 
GeneralRe: subtract list first element with second one,third with secon one an so on Pin
Pete O'Hanlon10-Nov-13 23:26
mvePete O'Hanlon10-Nov-13 23:26 
GeneralRe: subtract list first element with second one,third with secon one an so on Pin
Member 1038120910-Nov-13 23:32
Member 1038120910-Nov-13 23:32 
GeneralRe: subtract list first element with second one,third with secon one an so on Pin
Pete O'Hanlon10-Nov-13 23:47
mvePete O'Hanlon10-Nov-13 23:47 
GeneralRe: subtract list first element with second one,third with secon one an so on Pin
Member 1038120911-Nov-13 0:16
Member 1038120911-Nov-13 0:16 
GeneralRe: subtract list first element with second one,third with secon one an so on Pin
Pete O'Hanlon11-Nov-13 0:21
mvePete O'Hanlon11-Nov-13 0:21 
GeneralRe: subtract list first element with second one,third with secon one an so on Pin
Richard MacCutchan11-Nov-13 3:37
mveRichard MacCutchan11-Nov-13 3:37 
GeneralRe: subtract list first element with second one,third with secon one an so on Pin
OriginalGriff10-Nov-13 23:35
mveOriginalGriff10-Nov-13 23:35 

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.