473,856 Members | 1,635 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1492
"rodchar" <ro*****@discus sions.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 'MakeTransparen t' 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*****@discus sions.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 'MakeTransparen t' 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*****@discus sions.microsoft .comwrote in message
news:2D******** *************** ***********@mic rosoft.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*****@discus sions.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 'MakeTransparen t' 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*****@discus sions.microsoft .comwrote in message
news:2D******** *************** ***********@mic rosoft.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*****@discus sions.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 'MakeTransparen t' 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
6592
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 using a form that submit's (POST) its data via three different image buttons (depending on which button you click, something different should happen):
3
4348
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 three > different image buttons (depending on which button you click, > something different should happen): > > <form action="id.php" method="post" name="form2">
16
11895
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. I can do this individually for each graph but this does not help me as I need both on the same JPEG. I thought I would try an export the form that contains both but I am having trouble. (My VBA is self taught and a little knowledge is...
4
8392
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 display the contents of a TIFF image file. According to the very limited documentation that I have been able to locate so far, all I should need to do is to drop the Image Edit Control onto the form in design mode, set the control's Image property to...
8
12230
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 what i'm missing, I use Fiddler and I got my header and body to a very close match, but the content-length is slightly off and I got no clue why Sorry for the lengthy post, but i have no other way of showing my work
25
4081
by: Neo Geshel | last post by:
This works: <form> <asp:TextBox id="name" /> <%= name.ClientID %> </form> But this DOES NOT work: <form>
3
1771
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 for a hydro plant. My boss would like me to create a web page so our control center can see all of the numbers but not have access to the actual form. Some of these numbers are gathered every second, others every five seconds and still others...
4
13574
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 image is fired with event.keyCode as undefined. I was expecting that the form would get submitted. I tried returning from onclick() handler if keyCode is null, but the
8
3600
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 picture box, lots of text boxes (for input).. you get the idea. All of a sudden everything on the form has disappeared, it looks like a blank, newly created form. I can still get to the properties of every item on the form using the drop-down box in...
16
2886
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 ass and the app will be used internally so I'm not too worried about users who aren't using javascript. I'm using the following javascript to detect whether or not they've hit enter: if(document.layers) {
0
9919
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9763
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10390
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9534
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7932
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7098
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5762
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5960
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.