?
Solved

Active forms for Running Applications

Posted on 2004-10-14
4
Medium Priority
?
212 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

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.
Wouldn't it be nice if objects in Active Directory automatically moved into the correct Organizational Units? This is what AutoAD aims to do and as a plus, it automatically creates Sites, Subnets, and Organizational Units.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Starting up a Project
Suggested Courses

718 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