Hi
I need to set the backcolor to all forms under my project with one
command
not by opening each form and do it
i think , something to do with MDI or Assembly or by some system
namespace, but i am not sure
Pls help me with example
Thank You 5 2342
spaulsa wrote:
<snip>
I need to set the backcolor to all forms under my project with one
command
not by opening each form and do it
<snip>
VB Express, here.
One possible way of doing it is to create a global setting for the
color, say "DefaultBackCol or":
At design time, open the application settings (in the Project menu),
go to the "Settings" tab and create a new setting called
"DefaultBackCol or" (or whatever name suits you better), of type
System.Drawing. Color.
Then (still in design mode), open each Form Property binding: in the
form's property panel, expand "(Applicati on Settings)" and click the
ellipsis button next to the "(Property Bindings)" entry to bring up
its dialog. Then look up "BackColor" and associate it with the
"DefaultBackCol or" property you created. Do that to each of your
forms.
Finaly, at runtime, when you want to change the BackColor of the forms
associated with the DefaultBackColo r property, just set
My.Settings.Def aultBackColor to the new color, and all the forms will
change color accordingly.
HTH.
Regards,
Branco.
On Mar 5, 5:58 pm, "Branco Medeiros" <branco.medei.. .@gmail.com>
wrote:
spaulsa wrote:
<snip>I need to set the backcolor to all forms under my project with one
command
not by opening each form and do it
<snip>
VB Express, here.
One possible way of doing it is to create a global setting for the
color, say "DefaultBackCol or":
At design time, open the application settings (in the Project menu),
go to the "Settings" tab and create a new setting called
"DefaultBackCol or" (or whatever name suits you better), of type
System.Drawing. Color.
Then (still in design mode), open each Form Property binding: in the
form's property panel, expand "(Applicati on Settings)" and click the
ellipsis button next to the "(Property Bindings)" entry to bring up
its dialog. Then look up "BackColor" and associate it with the
"DefaultBackCol or" property you created. Do that to each of your
forms.
Finaly, at runtime, when you want to change the BackColor of the forms
associated with the DefaultBackColo r property, just set
My.Settings.Def aultBackColor to the new color, and all the forms will
change color accordingly.
HTH.
Regards,
Branco.
Hello Branco
Thanks for explanation, but I've asked for vb.net.
paul
Hi,
You can create class with static variable containing backround color of the
form add just a one line of code on all formm (Form Load Event) & when ever
you want to change color of tha form just change static variable content.
Cheers
Chetan Chaphekar
"sp********@yah oo.co.in" wrote:
On Mar 5, 5:58 pm, "Branco Medeiros" <branco.medei.. .@gmail.com>
wrote:
spaulsa wrote:
<snip>I need to set the backcolor to all forms under my project with one
command
not by opening each form and do it
<snip>
VB Express, here.
One possible way of doing it is to create a global setting for the
color, say "DefaultBackCol or":
At design time, open the application settings (in the Project menu),
go to the "Settings" tab and create a new setting called
"DefaultBackCol or" (or whatever name suits you better), of type
System.Drawing. Color.
Then (still in design mode), open each Form Property binding: in the
form's property panel, expand "(Applicati on Settings)" and click the
ellipsis button next to the "(Property Bindings)" entry to bring up
its dialog. Then look up "BackColor" and associate it with the
"DefaultBackCol or" property you created. Do that to each of your
forms.
Finaly, at runtime, when you want to change the BackColor of the forms
associated with the DefaultBackColo r property, just set
My.Settings.Def aultBackColor to the new color, and all the forms will
change color accordingly.
HTH.
Regards,
Branco.
Hello Branco
Thanks for explanation, but I've asked for vb.net.
paul
spaulsa wrote:
<snip>
Thanks for explanation, but I've asked for vb.net.
<snip>
And VB.Net thou hast been given...
Regards,
Branco.
HI,
I am talking about VB.NET only, You can create static class in VB.NET
Cheers
Chetan
"sp********@yah oo.co.in" wrote:
Hi
I need to set the backcolor to all forms under my project with one
command
not by opening each form and do it
i think , something to do with MDI or Assembly or by some system
namespace, but i am not sure
Pls help me with example
Thank You
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: pepino13 |
last post by:
Hello,
I have a a form called frmMissyFact, I have copied this form and
called it frmMissyFactBackup which reads data from a backup database
of the week before. I brought frmMissyFactBackup into frmMissyFact as
a subform. What I am trying to do is compare each control value from
frmMissyFact to that of frmMissyFactBackup and if the controlvalue is
different change the backcolor to Yellow of the control so the user
looking at it knows...
|
by: Alex Gray |
last post by:
Hi,
I'm trying to make my PictureBox transparent to the BackgroundImage of
the Form, not the BackColor of the form.
Here's what i have:
---------------------------------------------------
this.BackColor = Color.Wheat;
this.gameBackgroundBMP = new
Bitmap(GetType(),"MyForm.backGround.bmp");
|
by: Tom |
last post by:
I am trying to override the backcolor in the tool bar but I don't know how
to go about it.
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003APR.1033/cpref/html/frlrfSystemWindows
FormsToolBarClassBackColorTopic.htm
here it is
I need to override with public override Color BackColor {get; set;}
how can I do this ?
|
by: Fred Morrison |
last post by:
OK, the direct method of setting the background color on a text-only (no
panels) statusbar control seems to fail:
Me.StatusBar1.Text = "<whatever> failed.>
Me.StatusBar1.Backcolor = Color.Yellow ' nothing changes
Me.StatusBar1.Refresh ' doesn't help either.
What convoluted work-around (must be if the simple, direct method fails) is
there for this?
|
by: Lumpierbritches |
last post by:
Thank you in advance for any and all assistance. I have a group of checkboxes;
when the female gender is checked, I would like to change the backcolor
property to reflect (pink) and if the checkbox male is checked to change the
backcolor property to lightblue.
In Access it's Me.Detail.BackColor = (color)
When I try BackColor.Color(Pink) I get it's undeclared or something.
Michael
| |
by: ray well |
last post by:
in my app i need to make a RichTextbox control transparent.
i need it to be a like a pane of glass lying on a sheet of paper, where u
can see everything on the sheet of paper not covered by text written on the
glass pane. i need to be able to see the control or form that is underneath
the RichTextbox, and at the same time to be able to write and erase text to
the RichTextbox.
i'm assuming that it is the backcolor that hides what is...
|
by: vul |
last post by:
I used to use creating headers (label at the top of the screen) for VB6
forms as 2 labels shifted a little bit with different for colors to get a
simulation of a shadow. I set BackColor of both labels to Transparent.
Everything works fine.
I'm trying to use the same approach with VB 2005 windows forms. Although I'm
setting labels backcolors to transparent, it is not transparent and the
label located behind is not visible.
I tried to...
|
by: senfo |
last post by:
I developed a Windows control in VS 2005 that inherits from the
PictureBox Control that adds the ability to select images in a Windows
application. It is, however, experiencing a strange issue that I can't
explain. One of the desired affects was to provide the ability to
change the background color on images that were selected, as well as
setting the background color back to its original color after the image
had been deselected.
To...
|
by: tshad |
last post by:
I have a Windows form where I am trying to set the BackColor of a control
and check the color before I do it:
If control.BackColor = System.Drawing.Color.Blue Then
ChangeColor(control, Color.Red)
Else
ChangeColor(control, Color.Blue)
End If
But I get an error:
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |