473,545 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

center backgroundimage

2 New Member
In my VB(2005) app. I want a CENTERED background image. This is not very hard to do. But when I center an image that is bigger then my browser, VB anchor the picture to the left top, so the image isn't centered anymore. Does anyone knows how to deal with this problem??

Thank you in advance.

mjadewit
Sep 13 '07 #1
2 1511
mjadewit
2 New Member
Anybody...PLeas e???

I am really stuck
Sep 18 '07 #2
kadghar
1,295 Recognized Expert Top Contributor
Anybody...PLeas e???

I am really stuck
I've never worked with bg image problems, but you can always use an image control and send it to the back., then just make sure that

image1.top = (form1.height/2) - (image1.height/2)
image1.left = (form1.width/2) - (image1.width/2)
Sep 18 '07 #3

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

Similar topics

0
4654
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
9985
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...
1
2951
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...
1
4683
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
18705
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,...
2
5250
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...
1
2194
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:...
3
11321
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
7479
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...
0
7411
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...
0
7926
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...
1
7439
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...
0
4962
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...
0
3450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1901
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1028
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
722
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...

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.