Click here to Skip to main content
15,845,436 members
Home / Discussions / C#
   

C#

 
GeneralRe: create an application which generate table of the entered number.. Pin
BillWoodruff27-Jan-12 8:26
professionalBillWoodruff27-Jan-12 8:26 
GeneralRe: create an application which generate table of the entered number.. Pin
PIEBALDconsult27-Jan-12 17:11
mvePIEBALDconsult27-Jan-12 17:11 
QuestionURL change Pin
salim_ali24-Jan-12 22:40
salim_ali24-Jan-12 22:40 
AnswerRe: URL change Pin
Richard Andrew x6425-Jan-12 4:11
professionalRichard Andrew x6425-Jan-12 4:11 
Questionc# how to find one Outlooktask with UserProperty Pin
Easygoing24-Jan-12 22:27
Easygoing24-Jan-12 22:27 
QuestionCan't change a button't text at runtime anymore?????? Pin
fiaolle24-Jan-12 10:28
fiaolle24-Jan-12 10:28 
AnswerRe: Can't change a button't text at runtime anymore?????? Pin
fjdiewornncalwe24-Jan-12 10:56
professionalfjdiewornncalwe24-Jan-12 10:56 
GeneralRe: Can't change a button't text at runtime anymore?????? Pin
fiaolle24-Jan-12 21:29
fiaolle24-Jan-12 21:29 
Hi again

What I mean with "nothing happens" is that the button btn's text is still By.Even if the bool folder's property Visible is changed to true. I have tried

I have the code in the buttons click event.
C#
private void btn_Click(object sender, EventArgs e)
{
        if (folder.Visible==true )
        {
           btn.Text = "Hi"; 
         }         
         else
         {
            btn.Text = "By";
         }
               
}


I have tried btn.Invalidate(); and Form1.Invalidate(); it didn't help. And I also tried with Refresh() and Update() on both btn and Form1.

Dear KP Lee

I don't understand how to or what you mean I should do
"I fixed that by assigning a delegate in the winapp, running the calculations on another thread and calling the delegate."

Many Thanks
Fia
GeneralRe: Can't change a button't text at runtime anymore?????? Pin
lukeer24-Jan-12 22:15
lukeer24-Jan-12 22:15 
AnswerRe: Can't change a button't text at runtime anymore?????? Pin
OriginalGriff24-Jan-12 23:21
mveOriginalGriff24-Jan-12 23:21 
GeneralRe: Can't change a button't text at runtime anymore?????? Pin
fiaolle24-Jan-12 23:42
fiaolle24-Jan-12 23:42 
GeneralRe: Can't change a button't text at runtime anymore?????? Pin
OriginalGriff24-Jan-12 23:55
mveOriginalGriff24-Jan-12 23:55 
GeneralRe: Can't change a button't text at runtime anymore?????? Pin
fiaolle25-Jan-12 0:35
fiaolle25-Jan-12 0:35 
GeneralRe: Can't change a button't text at runtime anymore?????? Pin
OriginalGriff25-Jan-12 0:37
mveOriginalGriff25-Jan-12 0:37 
GeneralRe: Can't change a button't text at runtime anymore?????? Pin
fiaolle25-Jan-12 1:05
fiaolle25-Jan-12 1:05 
GeneralRe: Can't change a button't text at runtime anymore?????? Pin
OriginalGriff25-Jan-12 1:19
mveOriginalGriff25-Jan-12 1:19 
GeneralRe: Can't change a button't text at runtime anymore?????? Pin
fiaolle25-Jan-12 1:28
fiaolle25-Jan-12 1:28 
GeneralRe: Can't change a button't text at runtime anymore?????? Pin
OriginalGriff25-Jan-12 1:32
mveOriginalGriff25-Jan-12 1:32 
GeneralRe: Can't change a button't text at runtime anymore?????? Pin
Pete O'Hanlon25-Jan-12 4:41
subeditorPete O'Hanlon25-Jan-12 4:41 
AnswerRe: Can't change a button't text at runtime anymore?????? Pin
KP Lee24-Jan-12 13:02
KP Lee24-Jan-12 13:02 
AnswerRe: Can't change a button't text at runtime anymore?????? Pin
OOPSEP25-Jan-12 2:15
OOPSEP25-Jan-12 2:15 
GeneralRe: Can't change a button't text at runtime anymore?????? Pin
fiaolle25-Jan-12 3:30
fiaolle25-Jan-12 3:30 
AnswerRe: Can't change a button't text at runtime anymore?????? Pin
BillWoodruff25-Jan-12 4:41
professionalBillWoodruff25-Jan-12 4:41 
GeneralRe: Can't change a button't text at runtime anymore?????? Pin
fiaolle25-Jan-12 5:17
fiaolle25-Jan-12 5:17 
QuestionLearning C# custom controls Pin
thechazm24-Jan-12 6:53
thechazm24-Jan-12 6:53 

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.