borderless form automatically resizes? 
Author Message
 borderless form automatically resizes?

hi,

i have a borderless (FormBorderStyle = None) form.
on this form i have placed a datepicker control. i resized
the form so that the datepicker fits nicely inside with a very small
margin around the edge.

when i run and display this form i notice that it has "automatically"
resized itself and is now bigger than what it appears to be in the
design view.

any ideas please?

thnx.

t.



Mon, 09 May 2005 00:27:05 GMT  
 borderless form automatically resizes?
You think that's fun, wait until you notice that the form is also
automatically moved for you, too, whenever it is made visible. Last time I
inquired about this an [MS] guy said he would inquire as to whether this was
a bug or by design. He never got back to me. IMHO it's design flaw (even if
they say it's a 'feature') which probably won't be corrected any time soon.

Bob


Quote:
> hi,

> i have a borderless (FormBorderStyle = None) form.
> on this form i have placed a datepicker control. i resized
> the form so that the datepicker fits nicely inside with a very small
> margin around the edge.

> when i run and display this form i notice that it has "automatically"
> resized itself and is now bigger than what it appears to be in the
> design view.

> any ideas please?

> thnx.

> t.



Mon, 09 May 2005 01:00:13 GMT  
 borderless form automatically resizes?

hi bob,

i managed to get it to do what i want - basically if i want the form size to
be 100x100 (say) at runtime then at designtime i make it slightly smaller
than that 96x96 (say). so at runtime when the form resizes it resizes to
the size i want!

takes a little  bit of experimentation but i got there in the end.

t.


Quote:
> You think that's fun, wait until you notice that the form is also
> automatically moved for you, too, whenever it is made visible. Last time I
> inquired about this an [MS] guy said he would inquire as to whether this
was
> a bug or by design. He never got back to me. IMHO it's design flaw (even
if
> they say it's a 'feature') which probably won't be corrected any time
soon.

> Bob



> > hi,

> > i have a borderless (FormBorderStyle = None) form.
> > on this form i have placed a datepicker control. i resized
> > the form so that the datepicker fits nicely inside with a very small
> > margin around the edge.

> > when i run and display this form i notice that it has "automatically"
> > resized itself and is now bigger than what it appears to be in the
> > design view.

> > any ideas please?

> > thnx.

> > t.



Mon, 09 May 2005 01:26:46 GMT  
 borderless form automatically resizes?
Another approach would be to specify the form size in the Form_Load
sub...that way you could force the size and location of the window.

I also found that sizing and moving a window with .Visible=False is
problematic.  The workaround I use is to start with the form not visible,
then do a SuspendLayout, make the form visible, relocate/resize it and then
ResumeLayout.  While it seems like hoops to jump through, I'll do it until
it's fixed (whenever that is)...

--- Jim ---


Quote:

> hi bob,

> i managed to get it to do what i want - basically if i want the form size
to
> be 100x100 (say) at runtime then at designtime i make it slightly smaller
> than that 96x96 (say). so at runtime when the form resizes it resizes to
> the size i want!

> takes a little  bit of experimentation but i got there in the end.

> t.



> > You think that's fun, wait until you notice that the form is also
> > automatically moved for you, too, whenever it is made visible. Last time
I
> > inquired about this an [MS] guy said he would inquire as to whether this
> was
> > a bug or by design. He never got back to me. IMHO it's design flaw (even
> if
> > they say it's a 'feature') which probably won't be corrected any time
> soon.

> > Bob



> > > hi,

> > > i have a borderless (FormBorderStyle = None) form.
> > > on this form i have placed a datepicker control. i resized
> > > the form so that the datepicker fits nicely inside with a very small
> > > margin around the edge.

> > > when i run and display this form i notice that it has "automatically"
> > > resized itself and is now bigger than what it appears to be in the
> > > design view.

> > > any ideas please?

> > > thnx.

> > > t.



Mon, 09 May 2005 08:51:50 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Borderless Borderless Form

2. Automatically Resizing a Form

3. Automatically resizing forms in Access 2.0

4. Resizing controls on forms automatically to suit screen resolutions

5. MDI child form is resizing automatically----WHY??

6. Drag borderless form/window?

7. Borderless Forms and TaskBar Titles

8. How to move a borderless form?

9. How can you move a borderless form around in 32-bit VB4 Enterprise

10. borderless form gets a border when a menu is added

11. Moving a shaped borderless form in real time??

12. ScaleHeight/ScaleWidth with borderless form - Not working, please help I am stumped

 

 
Powered by phpBB® Forum Software