473,725 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form border color

To this point I have used a color for my form background
(detail, header, or footer) that is approximately the same as the
hard-wired background color of command buttons. For the record, the
color value I use is -214748363. Then I choose a different color
(anything - pick white for instance) for the form background. When I
switch to form view, there is about a 3/8-inch wide border on the right
and bottom of the form, which is very close to the color, mentioned
above (-2147483633)

By the way, this color is NOT available from the palette of 40 colors
available in design view. I'm using Access 2000.

It is a little bit distracting and doesn't go well with some
form background colors. It is especially noticable when placing a
sub-form on a form. Do I have access to the color setting of this
border so I can match it to the rest of the form?

Thanks,
Hank Reed

Dec 7 '05 #1
7 5706
Hank wrote:
Do I have access to the color setting of this
border so I can match it to the rest of the form?


You could open a standard module. Then click on the object browser icon.
It's a little yellow box with red green and blue thingmes above it. In
the search combo type SystemColorCons tants and click the binocs. They
will be revealed unto you. For instance -2147483633 is vbButtonFace (on
my computer).
--
Lyle Fairfield
Dec 7 '05 #2
Lyle,
Thanks, you're always on top of everything. In my post, I
should have said that I want to change that border color
programatically . I had posted last week about using VBA to change the
background color of all forms, based on what a user picked off the
color dialog. I solved that problem, but any forms with a color other
than vbButtonFace had this disconcerting border bar on the bottom and
right side.
We do have a good reason for dynamic color changes for forms.
;-)
Hank Reed

Dec 7 '05 #3
Hank
I'm not sure I completely understand your situation.
TTBOMK the colors of things like scroll bars and record selectors of an
Access form cannot be changed independently of changing sustem colors,
which can be done with API calls. Because such change impacts
everything on the computer, many of us don't want to go there.
But my forms don't have that 3/8" unwanted borders that you describe.
Why not and what are these borders? Without seeing them I'd guess
they're space for Scrollbars, which you have set to "Always" somewhere
in your form properties and, perhaps, if you can change the settings
they will disappear. But that's a guess!

Dec 7 '05 #4
Lyle,
You're right again. That was good deductive reasoning based
on the fact that they only appeared on the right and bottom. It
appears to be a space reserved for a scroll bar if one is needed. By
changing the scroll bar setting to "Neither", the border bands
disappear. Just never saw them before when everything was the same
color.
Now the only place I have the border bands is on a few sub-forms
that are continuous forms. And even then, I can eliminate the
horizontal bar. Now, if I was real smart, I would only enable the
vertical bar if a certain number of records are present on the
continuous form. There's a mini-chalenge.
Thanks again,
Hank

Dec 7 '05 #5
I'm all for challenges. If you get stuck, holler. I have some stuff
that will do that (for Access>=2000).

Dec 7 '05 #6

Lyle Fairfield wrote:
I'm all for challenges. If you get stuck, holler. I have some stuff
that will do that (for Access>=2000).


Actually it was quite simple and all my forms now look better and have
a little more space.
It was easy to look at the size of the recordset and hide or show the
vertical scroll bar as needed as I step from record to record. Used
the sub-form On_Current event.
Thanks for sticking with this.
Hank

Dec 7 '05 #7
Great!

Dec 7 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1823
by: Sam Goffin | last post by:
Hi how can I resize my form borders in .NET (either VB or C#)? In one of my programs I want to extend the usual form size at one end (when the user clicks the "Details..." button), so I need the window to 'grow'. As I'm really new at .NET this is quite difficult for me.
7
3614
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title> </head> <style type="text/css">
3
2336
by: Bill | last post by:
I'm using the POST method to submit a simple form html page with yes/no and checkbox fields to an asp response page which stores the values in a new dim string, then uses it to build a new table using ADO. I'm getting sometimes correct values, sometimes null values (when I know I pass a valid default value) and other times multiple values! I know what the values coming over are because I do a response.write to see it before the error...
5
1896
by: timothy.pollard | last post by:
Hi I'm having a bit of bother trying to make a questionnaire do what I want it to. I have put it up on www.web-iq.co.uk/test.htm. Basically the user of the final form (when I've tarted it up) will have to choose 1 answer per line, which are added up in the totals below. I've made four separate forms each of which totalises the number of checked elements in it - ie. column one is its own form, similarly column 2 etc.
2
3627
by: alwaysintune | last post by:
I'm using the McFedries email form, and I can't seem to get an upload form to work. Instead of it saving to my server, I want it to send the information and the picture to my email. Here is the html for my form. If anyone could help, that'd be greatly appreciated. <form action="http://www.mcfedries.com/mailform/mailform.asp" method="POST"> <input type=hidden name="MFAddress" value="My email address"> <input type=hidden name="MFCode"...
9
12844
by: mohit.akl | last post by:
Hey guys & gals I am havng trouble modifying the control box. I want to make the maximise button invisible and have minimisise button instead of it. Like this _ X (not like _ o X ) How to do this... and eventually i want to modify the control box in the form of ? _ X ... I.e. adding a new button to control box. I need to detect the click events.
16
2451
by: printline | last post by:
I have a problem with some validation of some fields in a form. I have some fields that only become visible if a specific field is chosen. For example: <select name="u_global___delivery_form" onchange="document.getElementById('array_div').style.display=(this.selectedIndex>1)?'block':'none';" > <option value="0" selected="selected"></option> <option value="Single board">Single board</option> <option value="Array">Array</option>
1
1782
by: morangi | last post by:
<?php session_start(); error_reporting(E_ERROR && ~E_NOTICE && ~E_WARNING); ob_start(); $link = mysql_connect('localhost', 'root', 'test'); if (!$link) { die('Could not connect: ' . mysql_error()); } if (isset($_POST))
2
4449
by: punitshrivastava | last post by:
Hi to All. I am Punit Shrivastava.I am working in Asp.As i am new in this technology please help me. I want to create enquiry form in Asp. For this i code like this: <form name="enquiry" method="post" action="enquiry.php"> <table width="494" border="0" cellspacing="0" cellpadding="2" height="511"> <tr> <td colspan="2" align="left" valign="top" height="29"> <p align="left"><font face="Verdana" color="#FFFFFF">Fields...
3
4308
by: blackrunner | last post by:
ERROR in my Query?! ERROR: Element GESCHLECHT is undefined in FORM. i think everything ok. Maby somebody can help me here Element GESCHLECHT is undefined in FORM. The error occurred in \anmeldung2.cfm: line 404
0
9401
Oralloy
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...
0
9257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9113
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8097
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6702
isladogs
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...
0
6011
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();...
0
4519
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...
1
3221
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
2
2635
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.