473,660 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

backgroundimage = none how to do it?

93 New Member
Hi

I have a button which loads an image to the form using the backgroundimage property.

I have another button which changes the background color however, when I load the image I cannot use the color button (as I presume it is behind the image) how can I remove the image??

Many thanks in advance
Emil
Jan 15 '08 #1
4 2042
kadghar
1,295 Recognized Expert Top Contributor
Hi

I have a button which loads an image to the form using the backgroundimage property.

I have another button which changes the background color however, when I load the image I cannot use the color button (as I presume it is behind the image) how can I remove the image??

Many thanks in advance
Emil
have you tried with:

backgroundimage = nothing

¿?
Jan 15 '08 #2
Killer42
8,435 Recognized Expert Expert
I think the details will depend a lot on what version of VB you're using. Pretty sure forms in VB6 don't have a backgroundimage property, so presumably it's either a later version, or VBA.
Jan 16 '08 #3
emsik1001
93 New Member
Sorry for not giving basic info it is VB 2005

I will try backgroundimage = nothing (tonight)
Jan 16 '08 #4
kadghar
1,295 Recognized Expert Top Contributor
Sorry (...)
I will try (...) nothing (tonight)
Oh, that's so sad LOL
Jan 16 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
4657
by: Ken Lee | last post by:
Hi all, I'm sort of very new to C# and haven't programmed in OO for a while. I'm trying to override the backgroundimage to the tabcontrol but it just doesn't seem to want to do it, can someone please help me and tell me what I'm doing wrong? namespace RHInvestmentApplication { public class FormRHMain : System.Windows.Forms.Form {
14
9999
by: Dino M. Buljubasic | last post by:
I would like to be able to compare BackgroundImage Property of two picture boxes on my form. How can I do that? I am using : if (pctOne.BackgroundImage Is pctTwo.BackgroundImage) then // blah, blah, blah end if
1
323
by: kjon | last post by:
Hi, I'm trying to get the BackgroundImage of a form/control and draw it again in runtime. But if the Backgroundimage is "None", the DrawImage command will give an error. Is it possible to programmaticaly check the Backgroundimage property of the form/control in runtime whether it is "None" or has an image inside? Please advice. Thanks in advance. Regards, KJon
1
2967
by: John | last post by:
Hello all, I was wondering, does this property really exist in VB.NET 2003? Because it's listed in Intellisense, but setting it doesn't seem to have the slightest effect on the visual look of the control. I can set it for forms, checkboxes, radiobuttons, buttons, pictureboxes, and it works for everything except for textboxes. Does anyone know what's wrong? For the record, when testing I simply put the following in the procedure that...
1
4691
by: VB Programmer | last post by:
I am trying to check which image is currently the BackgroundImage (VB.NET 2005). Can you help me out? Me.BackgroundImage.ToString doesn't work. Here's the sample code... Select Case Me.BackgroundImage.ToString Case "MyApp.My.Resources.Resources.BaseCurrencyControlNoChange" Me.BackgroundImage =
12
18737
by: Sharon | last post by:
I’m using a Panel control in my form to display a background image. So in the Form OnPaint() I wrote: myPanel.BackgroundImage = m_bmp; While the m_bmp is the Form Bitmap member. The problem is that the image is not shown on the screen. But if change the code in the OnPaint() to: Bitmap bmp = new Bitmap(m_bmp, m_bmp.Width, m_bmp.Height);
2
5255
by: jgraham | last post by:
I have an application which configures the user interface (UI) at runtime, meaning, the images that make up the UI are loaded based on the current configuration when the application starts. The UI is populated with normal controls (buttons, lists, etc.) but some controls can load a bitmap to represent them. For instance, each button in the window loads a bitmap as it's BackgroundImage. Also, the BackgroundImage of each dialog is also...
1
2198
by: moi.romanowsky | last post by:
Does anyone know why the backgroundImage does not display in VB? I have tried setting it in the properties window (where the thumbnail shows) and explicitly in my code like so: Me.BackgroundImage = WindowsApplication1.My.Resources.Resources.Chile Nevertheless, nothing happens. Incidentally, setting the BackColor works just fine, such as: Me.BackColor = Color.Blue
3
11336
by: fehays | last post by:
Hello, Can someone please tell me why this code leaks? The handle count for IE continues to increase. var newimage = "url(images/" + res.value.Image + ")"; if( imagetd.style.backgroundImage != newimage ) { imagetd.style.backgroundImage = ""; imagetd.style.backgroundImage = newimage;
0
8428
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
8341
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
8754
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8542
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8630
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...
1
6181
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
5650
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
4177
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...
2
1740
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.