Olivier Zeegers Active Member Licensed User Oct 19, 2018 #1 Hi, What am I doing wrong ? I have a button with the TypeFace set to FontAwesome in the designer that displays an icon ("Play icon"). When the users presses the button the icon should change to a pause icon, so I use this code: Code: Copy If PlayBack1.IsRunning = True Then btnPlay.Typeface = Typeface.FONTAWESOME btnPlay.Text=Chr(0xE034) PlayBack1.Stop End If I added the TypeFace property although this was already set in the designer. I does not display the pause icon but a small rectangle instead. thank you
Hi, What am I doing wrong ? I have a button with the TypeFace set to FontAwesome in the designer that displays an icon ("Play icon"). When the users presses the button the icon should change to a pause icon, so I use this code: Code: Copy If PlayBack1.IsRunning = True Then btnPlay.Typeface = Typeface.FONTAWESOME btnPlay.Text=Chr(0xE034) PlayBack1.Stop End If I added the TypeFace property although this was already set in the designer. I does not display the pause icon but a small rectangle instead. thank you
DonManfred Expert Licensed User Longtime User Oct 19, 2018 #2 Which icon is it exactly? https://fontawesome.com/icons/pause?style=solid Try 0xf04c Upvote 0
Olivier Zeegers Active Member Licensed User Oct 19, 2018 #3 DonManfred said: Which icon is it exactly? https://fontawesome.com/icons/pause?style=solid Try 0xf04c Click to expand... OK ! thanks, that worked... I copied the wrong hex code.. Upvote 0
DonManfred said: Which icon is it exactly? https://fontawesome.com/icons/pause?style=solid Try 0xf04c Click to expand... OK ! thanks, that worked... I copied the wrong hex code..
DonManfred Expert Licensed User Longtime User Oct 19, 2018 #4 Olivier Zeegers said: I copied the wrong hex code.. Click to expand... Olivier Zeegers said: OK ! thanks, that worked... Click to expand... Glad i could help Thank you for your donation! Upvote 0
Olivier Zeegers said: I copied the wrong hex code.. Click to expand... Olivier Zeegers said: OK ! thanks, that worked... Click to expand... Glad i could help Thank you for your donation!