hi
can someone tell me how to ensure the height of my window is always exact?
(excluding titlebar) in VB6
e.g. if i set the form to 300 pixels, then the total height of the form
takes into account the title bar, however i want to use a specific
background graphic in the main form background.... visual styles, and themes
and so on make this an impossiblilty! if the title bar is big (a la windows
xp) then i lose some pixels at the bottom, and vice versa
cheers
pete 3 6082
One method is to calculate the 'overhead' from the difference between
Form.Height and Form.ScaleHeigh t
On Tue, 23 Sep 2003 14:38:13 GMT, "p s" <pe***********@ hotmail.com>
wrote: hi can someone tell me how to ensure the height of my window is always exact? (excluding titlebar) in VB6
e.g. if i set the form to 300 pixels, then the total height of the form takes into account the title bar, however i want to use a specific background graphic in the main form background.... visual styles, and themes and so on make this an impossiblilty! if the title bar is big (a la windows xp) then i lose some pixels at the bottom, and vice versa
cheers pete
You nmight want to try setting the
Form1.ScaleHeig ht
Form1.ScaleWidt h properties instead of the height and width.
--
Stéphane Richard
"Ada World" Webmaster http://www.adaworld.com
"p s" <pe***********@ hotmail.com> wrote in message
news:pV******** *************@n ews-text.cableinet. net... hi can someone tell me how to ensure the height of my window is always exact? (excluding titlebar) in VB6
e.g. if i set the form to 300 pixels, then the total height of the form takes into account the title bar, however i want to use a specific background graphic in the main form background.... visual styles, and
themes and so on make this an impossiblilty! if the title bar is big (a la
windows xp) then i lose some pixels at the bottom, and vice versa
cheers pete
On Tue, 23 Sep 2003 15:18:46 GMT, "Stephane Richard"
<st************ **@verizon.net> wrote: You nmight want to try setting the Form1.ScaleHei ght Form1.ScaleWid th properties instead of the height and width.
If you set those directly you just change the ScaleMode
- not the physical height/width This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: delerious |
last post by:
I need to determine an element's width and height in pixels (not including
padding, border, and margin) in Javascript. The element will not have width
or height styles specified.
In Mozilla, I know I can use document.defaultView.getComputedStyle() to do
this.
IE does not support document.defaultView.getComputedStyle(). It supports
offsetWidth/offsetHeight, but those include the padding and border. IE also
supports...
|
by: Linda Antonsson |
last post by:
Hi,
I am trying to put together a CSS-based layout consisting of a header, a
sidebar and a main content area.
Page: http://www.westeros.org/ASoWS/
CSS: http://www.westeros.org/ASoWS/ASoWS-All.css (the relevant IDs are
towards the bottom)
JS: http://www.westeros.org/ASoWS/SetHeight.js
|
by: Marek Mänd |
last post by:
I have simple structure like:
<div>
<h3 style="text-align:center;">
<span style="float:right;">input type="image"/></span>
<span style="float:left;">input type="image"/></span>
boxes titlebar
</h3>
<div>
box content
|
by: Ridge Burner |
last post by:
I have a 3 column table with the main content of the page in the center
column, pretty basic. I have a DIV in the right column that holds links, and
which is nearly always taller than the content cell, and I want to make it
never be any taller/shorter than the main content area. I can use
overflow:hidden, but I need to specify the height to do that, and then I am
back to square one. I just need to make sure that the right column never...
|
by: Marcin Grzêbski |
last post by:
Hi All,
How to get height of TitleBar in Window Form?
(the form caption place)
Marcin
| |
by: Danielb |
last post by:
I want my application to run most of the time as just an notify icon
visible in the system tray, with some dialogs windows that open if the user
selects an option from the context menu on the tray icon. I've had a look at
the example on code project that creates an application that runs in the
system tray:
http://www.codeproject.com/csharp/desktop_mail_checker.asp
So I copied how the above article sets up the main form: the form's...
|
by: Sam Marrocco |
last post by:
Is it possible to place controls such as a checkbox or button in the
titlebar of a form?
--
==================================================================
Sam J. Marrocco
Sr. Visual Effects Artist/R&D
Travelling Pictures/GTN
Inferno, Flame, Maya, All that cool stuff!
|
by: Andrus |
last post by:
..NET 2 Winforms application.
How to create new setting and set it default value in userSettings section
of app.config file or overwrite existing setting value ?
I found code below in this list which modifies Application setting section
but how to add new item to userSettings ?
Andrus.
|
by: AAaron123 |
last post by:
<body runat="server" id="MainBody">
<form id="form1" runat="server" style="background-color:green; width: 100%;
height: 100%">
<br />
Table1" runat="server" Style="background-color:Yellow; width: 100%; height:
90%" BorderColor="Maroon"
|
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: 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...
| |
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: 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...
|
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...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: 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...
| |