Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Active forms for Running Applications

Posted on 2004-10-14
4
Medium Priority
?
213 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
3 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 1000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A bad practice commonly found during an account life cycle is to set its password to an initial, insecure password. The Password Reset Tool was developed to make the password reset process easier and more secure.
Transferring FSMO roles is done when an admin wants to split roles between certain Domain Controllers or the Domain Controller holding the Roles has been forcefully demoted using dcpromo / forceremoval
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Screencast - Getting to Know the Pipeline

783 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