Solved

Active forms for Running Applications

Posted on 2004-10-14
4
206 Views
Last Modified: 2010-04-17
How can I write a program that will change the background color or set the background picture of an any active form for any program?
0
Comment
Question by:Nhlanhla
  • 2
4 Comments
 
LVL 1

Expert Comment

by:baggaabhishek
ID: 12356920
On the form_activate event
write the code
formname.backcolor="#00000ff" or any color that u want
u can get the hexadecimal value from the properties of form designer window

formname.backgroundImage="bitmap" or any Picture that u select

0
 
LVL 1

Accepted Solution

by:
baggaabhishek earned 500 total points
ID: 12356971
u can also use me.backcolor or this.backcolor
and me.backgroundimage or this.backgroundimage depending upon what language u r using
what u can do is have a picturebox on the form and set its visible property to false
set its image to the one u want to display on the form background
and on activate event of form write this code
Me.BackgroundImage = PictureBox1.Image
If u want to change the image to some other that u select at runtime then set the image property of the picturebox to the image that u want to set as background
0
 

Author Comment

by:Nhlanhla
ID: 12369286
Maybe my question is not clear enough guys. So here's an example: Let's say I opened 'My Computer', at this time it is the active window right...so...I want my program to change the background color/ image of the 'My Computer' window or any other form that might be active. How can I write a program that will change the background color or set the background picture in VB?
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question