still can't size forms!
still can't size forms!
still can't size forms!
still can't size forms!
still can't size forms!
still can't size forms! still can't size forms! still can't size forms! still can't size forms! still can't size forms! still can't size forms! still can't size forms! still can't size forms!
still can't size forms! still can't size forms!
still can't size forms!
Go Back  Xtreme Visual Basic Talk > > > still can't size forms!


Reply
 
Thread Tools Display Modes
  #1  
Old 01-15-2004, 06:07 PM
Mike Poxon Mike Poxon is offline
Freshman
 
Join Date: Nov 2003
Location: Norwich, UK
Posts: 34
Default still can't size forms!


I still can't size forms in pixels. After setting the mode to pixels at design time and typing
me.height=450
me.width=150
in the form_load procedure, and nothing else, then when the form does load it's nothing like 150 x 450 pixels in size.
Reply With Quote
  #2  
Old 01-17-2004, 10:35 AM
Machaira's Avatar
Machairastill can't size forms! Machaira is offline
Jedi Coder

* Expert *
 
Join Date: Aug 2002
Location: Abingdon, MD
Posts: 3,438
Default

Sounds like you're using VB6. You should repost this in the Legacy VB forums.
Reply With Quote
  #3  
Old 01-17-2004, 11:38 AM
Flyguy's Avatar
Flyguystill can't size forms! Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 19,165
Default

The default unit is twips.
So to get 450 pixels you have to multiply it with Screen.TwipsPerPixelX or Screen.TwipsPerPixelY
Reply With Quote
  #4  
Old 01-17-2004, 03:40 PM
Mike Poxon Mike Poxon is offline
Freshman
 
Join Date: Nov 2003
Location: Norwich, UK
Posts: 34
Default thank you very much

Quote:
Originally Posted by Flyguy
The default unit is twips.
So to get 450 pixels you have to multiply it with Screen.TwipsPerPixelX or Screen.TwipsPerPixelY


Dear Flyguy,
Yes! That did it. Everything is now just as I wanted. Thank you very much for your help.
Michael
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Size of Windowed Forms Epo DirectX 4 10-01-2003 08:42 PM
API / UDT's and Size Bradley API 20 06-24-2003 08:46 AM
DB Navigation!!! adruta Database and Reporting 3 10-16-2002 10:12 AM
3D cube adruta Word, PowerPoint, Outlook, and Other Office Products 1 10-08-2002 09:21 AM
VB6 to VBA adruta General 0 10-08-2002 05:17 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
still can't size forms!
still can't size forms!
still can't size forms! still can't size forms!
still can't size forms!
still can't size forms!
still can't size forms! still can't size forms! still can't size forms! still can't size forms! still can't size forms! still can't size forms! still can't size forms!
still can't size forms!
still can't size forms!
 
still can't size forms!
still can't size forms!
 
-->