Solved

Active forms for Running Applications

Posted on 2004-10-14
4
198 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
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 …

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now