473,569 Members | 2,352 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DeskTopBounds adds a view pixels?

Hello,

I save and restore the position and dimensions of a form using
'this.DeskTopBo unds'. However, every time I open the form its Height grows
with 19 or so pixels! Is there something I should subtract from the
DeskTopBounds Rectangle's Height value?

Thanks,
Marcel
Mar 9 '07 #1
2 1878
On Mar 9, 3:00 pm, "Marcel Brekelmans" <mar...@marce l-art.comwrote:
Hello,

I save and restore the position and dimensions of a form using
'this.DeskTopBo unds'. However, every time I open the form its Height grows
with 19 or so pixels! Is there something I should subtract from the
DeskTopBounds Rectangle's Height value?

Thanks,
Marcel
Marcel:

Does your form display at first with 19 or so extra pixels or is it
drawn properly and then grows to the size that is too large? Could you
please post your code so we can help more.

~ Justin Creasy
www.immergetech.com
www.immergecomm.com

Mar 9 '07 #2
Well, it appears to have to do with a menu on the form. I googled the same
problem:

http://www.thescripts.com/forum/thread123940.html

Strange that even now it is still an issue in .NET

"justin creasy" <ju***********@ gmail.comschree f in bericht
news:11******** **************@ q40g2000cwq.goo glegroups.com.. .
On Mar 9, 3:00 pm, "Marcel Brekelmans" <mar...@marce l-art.comwrote:
>Hello,

I save and restore the position and dimensions of a form using
'this.DeskTopB ounds'. However, every time I open the form its Height
grows
with 19 or so pixels! Is there something I should subtract from the
DeskTopBound s Rectangle's Height value?

Thanks,
Marcel

Marcel:

Does your form display at first with 19 or so extra pixels or is it
drawn properly and then grows to the size that is too large? Could you
please post your code so we can help more.

~ Justin Creasy
www.immergetech.com
www.immergecomm.com

Mar 10 '07 #3

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

Similar topics

8
2602
by: Jef Driesen | last post by:
I'm implementing some image processing algorithms in C++. I created a class called 'image' (see declaration below), that will take care of the memory allocations and some basic (mathematical) stuff. The class will behave like a std::vector (copy constructor and assignment create a deep copy), but with 2D indexing. Now I also need a 'view'...
6
2976
by: Craig Parsons | last post by:
Folks, I have an image of a circle, which I am trying to straighten out into a flat line. I am essentially wanting to look at the image, and read a straight line from the centre, and then plot this on a graph. Then I want to rotate the image 1 degree and read the next line down, if you see what I mean. My question is, how do I...
4
23846
by: Ma Xiaoguang | last post by:
Dear ladies and gentlemen: How to access all the pixels of a bitmap with C#? I am working with Delphi before. In Delphi, you can use TBitmap.Scanline property to access all the pixels of a bitmap object. How to do this with C#? Any hints? Thank you very much. Best regards. Xiaoguang
14
4011
by: Jan Nielsen | last post by:
Hi In Microsoft Access it is possible to write code like this Sub test() DoCmd.OpenForm "TestForm", acDesign Dim a As Control For Each a In Forms("TestForm").Controls Do stuff Next End Sub
2
2621
by: keith | last post by:
The function return quite rough pixels. e.g. if you use Font: Verdana, Font style:Regular, Size:8 and type 60 upper case character C, the functuion returns pixels 478.3639, but actualy it occupies a textbox that has width 545 pixels, that is about 13% difference. When using the function to get pixels and grow a textBox, the textBox is not...
2
1252
by: Alan | last post by:
Hi, IE lets the user set the "Text Size" to use when viewing pages. That sizing works fine when I view my pages directly in the IE browser, but the changes don't seem to carry over to VS 2005's design view. Instead that seems to always be set at "medium". Is there a way in Visual Studio, similar to IE's, to set the "Text Size" used in...
0
1468
by: bg_ie | last post by:
Hi, I wish to create my own control (of type UserControl) which will show audio data. In this control I have place 3 things, 2 objects that represent audio plots for both left and right channels (each of type UserControl), and a hScrollBar object. I will add further objects to my control as time progresses. My main control will not be...
7
3421
by: Rick Merrill | last post by:
I need a web page in exact pixels height and width for use in standard def TV. Any ideas how?
2
1753
by: smullen.uclick | last post by:
I'm not entirely sure how this group works: if there is a page I'm supposed to follow up on or if I should expect an email in reply. Anyway, here's my question. I'm very new to Python and PIL, I know how to do this stuff in perl and ImageMagick, but I'm having issues with Python and PIL. I need to scale a TIFF image from 1925x588 px to a...
0
7703
marktang
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...
0
8132
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...
1
7678
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...
0
7982
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...
0
6286
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...
0
5222
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...
0
3644
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2116
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
1
1226
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.