473,385 Members | 1,309 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,385 software developers and data experts.

form image

hey all,

i have an image that i want to put on my form and was just wondering if
there is a way to take away the white background on the image (make it
transparent)?

thanks,
rodchar
Jul 23 '06 #1
4 1466
"rodchar" <ro*****@discussions.microsoft.comschrieb:
i have an image that i want to put on my form and was just wondering if
there is a way to take away the white background on the image (make it
transparent)?

Call the 'Bitmap' object's 'MakeTransparent' method.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Jul 23 '06 #2
how do i get to that method? i'm using a pictureBox to contain my bitmap is
that right so far?

"Herfried K. Wagner [MVP]" wrote:
"rodchar" <ro*****@discussions.microsoft.comschrieb:
i have an image that i want to put on my form and was just wondering if
there is a way to take away the white background on the image (make it
transparent)?


Call the 'Bitmap' object's 'MakeTransparent' method.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Jul 23 '06 #3
Can you be more specific about what you want to do? If you want a picture
to completely fill the form, it's better to use the BackGround image of the
form. If you just want it on part of the form, a picturebox is fine - there
are several other options such as panels also.

If you do place an image in a picturebox or other container control, you
will need to make both the image and the container transparent, or set the
backcolor of the container to the same backcolor as the form, otherwise
you'll end up with the image transparent and showing the color of the
picturebox it's on.

"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:2D**********************************@microsof t.com...
how do i get to that method? i'm using a pictureBox to contain my bitmap
is
that right so far?

"Herfried K. Wagner [MVP]" wrote:
>"rodchar" <ro*****@discussions.microsoft.comschrieb:
i have an image that i want to put on my form and was just wondering if
there is a way to take away the white background on the image (make it
transparent)?


Call the 'Bitmap' object's 'MakeTransparent' method.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jul 23 '06 #4
If you do place an image in a picturebox or other container control, you
will need to make both the image and the container transparent, or set the
backcolor of the container to the same backcolor as the form, otherwise
you'll end up with the image transparent and showing the color of the
picturebox it's on.
this is what i'm trying to do. however, how do i make the image's background
transparent?

"Matt" wrote:
Can you be more specific about what you want to do? If you want a picture
to completely fill the form, it's better to use the BackGround image of the
form. If you just want it on part of the form, a picturebox is fine - there
are several other options such as panels also.

If you do place an image in a picturebox or other container control, you
will need to make both the image and the container transparent, or set the
backcolor of the container to the same backcolor as the form, otherwise
you'll end up with the image transparent and showing the color of the
picturebox it's on.

"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:2D**********************************@microsof t.com...
how do i get to that method? i'm using a pictureBox to contain my bitmap
is
that right so far?

"Herfried K. Wagner [MVP]" wrote:
"rodchar" <ro*****@discussions.microsoft.comschrieb:
i have an image that i want to put on my form and was just wondering if
there is a way to take away the white background on the image (make it
transparent)?
Call the 'Bitmap' object's 'MakeTransparent' method.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


Jul 24 '06 #5

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

Similar topics

3
by: Nicolas Keller | last post by:
Hi! I'm used to have Mozilla for testing my PHP sites when I'm coding. The site's nearly finished, now I've made a test with the Internet Exlporer... guess what... failed. The problem: I'm...
3
by: John Dunlop | last post by:
(Note crosspost and follow-ups to ciwah.) Nicolas Keller wrote in thread "Differences in form handling btw Mozilla and IE?": > The problem: I'm using a form that submit's (POST) its data via...
16
by: David Lauberts | last post by:
Hi Wonder if someone has some words of wisdom. I have a access 2002 form that contains 2 graph objects that overlay each other and would like to export them as a JPEG to use in a presentation....
4
by: Kevin Myers | last post by:
Hello, Please forgive my reposting of this note with hopefully a more relevant subject line. On an Access 2000 form under Windows 2000 I would like to use a Kodak Image Edit Control to...
8
by: Du | last post by:
I'm trying to automate the upload process to yousendit.com, but the file size doesn't add up and yousendit.com keep rejecting my upload (it accepts the upload until the very end) I don't know...
25
by: Neo Geshel | last post by:
This works: <form> <asp:TextBox id="name" /> <%= name.ClientID %> </form> But this DOES NOT work: <form>
3
by: Dave | last post by:
Hey all, I have a problem and I can't find anything on the net to really address it. We have a program at work that has lots of numbers on the front of the form because it is a control program...
4
by: sameergn | last post by:
Hi, I have an image in my HTML form which has onclick() handler. There is also a submit button and a text box. Whenever text box has focus and user presses enter, the onclick() event of...
8
by: Ryan | last post by:
Ok.. I have a form with lots of stuff on it; a tool strip panel, menu strip, data binding elements (dataset, binding source, table adapter), tab control with 7 tab pages, each page contains a...
16
by: browntown | last post by:
so I have this application I'm nearly finished with. The only thing the client has requested is the ability to submit the form by pressing "enter". I didn't think this would be a huge pain in the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.