I WANT TO HNOW THE FOLLOWING IN C#

Posted by Subhadip under C# on 12/18/2010 | Points: 10 | Views : 1058 | Status : [Member] | Replies : 1
1) I want to add image and text in a button.how to do???is there is any code?plz tell me(IN C#)
2)HOW TO DISPLAY CURRENT DATE AND TIME ON STATUS BAR??(IN C#)




Responses

Posted by: Vuyiswamb on: 12/19/2010 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
mmhh to many questions at the same time.

To display an image or icon on the button, you must use an image button. if you are using asp.net the coding is like this

and for a win app, just drag the image button and drop it to your form and give the path to the image

    <asp:ImageButton ID="ImageButton1" ImageUrl="~/images/myimage.jpg" runat="server" />



Thank you for posting at Dotnetfunda
[Administrator]

Subhadip, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response