button text to image
-
Hi - as we all know when developing an application in Visual studio (assumming c#), you can change a controls property like for example a buttons text property to reflect its function which is all very nice. But what happens when you say don't want to change the text property, infact you done even want any text there? All you want is a logo instead, how do you go about getting a logo on a button, give that it does not have a image property?
- A button has an image property.
- A button has a text property.
- Either or both of those may be specified.
- You have 4 possibilities.
- One of which will meet your needs.
/ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
- A button has an image property.
- A button has a text property.
- Either or both of those may be specified.
- You have 4 possibilities.
- One of which will meet your needs.
/ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
Apologies - I should have specified that I am developing a WPF application. There doesn't seem to bean option to add an image, unless I am just missing it....:confused:
-
Apologies - I should have specified that I am developing a WPF application. There doesn't seem to bean option to add an image, unless I am just missing it....:confused:
Apologies - I should have specified that I am developing a WPF application. There doesn't seem to be an option to add an image, unless I am just missing it....Confused
-
Apologies - I should have specified that I am developing a WPF application. There doesn't seem to be an option to add an image, unless I am just missing it....Confused
-
Tichaona J wrote:
how do you go about ...
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
Oh, that is beautiful. Well done. I haven't laughed that hard in quit a while.
-
Oh, that is beautiful. Well done. I haven't laughed that hard in quit a while.
if you prefer the competition's engine: Bing[^]. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
-
Apologies - I should have specified that I am developing a WPF application. There doesn't seem to be an option to add an image, unless I am just missing it....Confused
-
Apologies - I should have specified that I am developing a WPF application. There doesn't seem to be an option to add an image, unless I am just missing it....Confused
-
You can place virtually any control inside the button, even a listbox, datagrid or in your case an image. You all add them in the content property. In this case better specify the Content as an element instead of an attribute. see MSDN for more details
V.
V. wrote:
even a listbox, datagrid
Now that would look positively weird. But who knows? It might be useful in some odd application...
Will Rogers never met me.
-
Tichaona J wrote:
how do you go about ...
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
Oh :) That was good one!
In soviet Russia code debugs You!
-
V. wrote:
even a listbox, datagrid
Now that would look positively weird. But who knows? It might be useful in some odd application...
Will Rogers never met me.