473,396 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Command Button Picture

Lou
How do assign a picture file to a command button?

Feb 8 '07 #1
5 5376
On Feb 8, 1:57 pm, "Lou" <lou.gar...@comcast.netwrote:
How do assign a picture file to a command button
I don't believe there is a button that will accept an image. Try just
making a clickable image:

<A onclick="PopupCalendar()"><IMG title="Click here to open calendar"
src="images/calendar.gif"></A>

hth
Dan

Feb 8 '07 #2
Hello Lou,
How do assign a picture file to a command button?
Use the "Image" property. (Was that so difficult? Nah...)

Martin
Feb 8 '07 #3
"DanG" <da**@rmci.netschrieb:
>How do assign a picture file to a command button

I don't believe there is a button that will accept an image. Try just
making a clickable image:

<A onclick="PopupCalendar()"><IMG title="Click here to open calendar"
src="images/calendar.gif"></A>
Well, note that the question has been posted to a VB.NET group ;-).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Feb 9 '07 #4
Lou
My first .NET project. ANd yes it was difficult!
Like being in Japan and not speaking Japanese!

ctrl.Image = Image.FromFile("D:\MyFole.bmp")

I'm slowly getting there!

"Martin H." <hk***@gmx.netwrote in message
news:45***********************@news.freenet.de...
Hello Lou,
>How do assign a picture file to a command button?

Use the "Image" property. (Was that so difficult? Nah...)

Martin

Feb 9 '07 #5
><A onclick="PopupCalendar()"><IMG title="Click here to open calendar"
>src="images/calendar.gif"></A>

Well, note that the question has been posted to a VB.NET group ;-).
You could have given as well the answer in VB.Net.
YourImage.src = "images/calendar.gif

Although using an imagebutton is ofcourse easier

Cor
Feb 9 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: dondave | last post by:
hello all! is it possible to have a command button in an access form that will creat a report out of the current form with out the person having to go into reports?? is there a code needed...
8
by: Susan Bricker | last post by:
Is there a way to change the background color of command buttons? I know that I saw some VBA code somewhere that showed how to do this. I think it involved making the button transparent and then...
21
by: MLH | last post by:
If I choose a command button on a form in design view, open the properties box and click the Picture property and its wiz button, I'm presented with a lengthy list of pictures. Everything from Add...
5
by: howser99 | last post by:
Hi All Ive got an issue with inserting images into a command button from a table that I have embedded a OLE object into. The following is the code Im am trying to use; If bolMenuVisible Then ...
2
by: JSWAN | last post by:
Acces 2003 I created a form with a picture as the background Now I want to create a command button where the back style is transparent and the borders is a hairline so that you can see the...
3
by: gourab | last post by:
How to write a code in vb to slide images through two command button named like previous and next.When next button will be pressed the next image will be shown in picture box.and the vice-versa for...
11
NeoPa
by: NeoPa | last post by:
What needs to be set and/or changed when switching the Picture property of a Command Button within VBA code? The scenario is that I have a continuous form for a particular table. The controls (in...
1
by: trevor glover | last post by:
HI Folks I am trying to use VBA on a form to update a image on a number of reports within an Access Database, (i don't want my users to do this manually), the image relates to department logos, so...
4
by: remya1000 | last post by:
i'm using VB.Net Application program. i'm creating 64 button dynamically during run time. and from database i'm getting the description, font color, back color and picture path. and if the picture...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.