Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Pixels? What pixels?


Reply
 
Thread Tools Display Modes
  #1  
Old 04-02-2003, 12:39 PM
gazmac's Avatar
gazmac gazmac is offline
Junior Contributor
 
Join Date: Apr 2003
Posts: 200
Question Pixels? What pixels?


Why doesn't Visual Basic use Pixels? My width is: 13530, and my height is: 10605. Does anyone know what this is, and how I can make an 800x600 window? just for the record, I have VB6 Enterprise.
Thanks,
-Gaz
Reply With Quote
  #2  
Old 04-02-2003, 12:40 PM
lebb's Avatar
lebb lebb is offline
Disillusioned Code Poet

Retired Moderator
* Guru *
 
Join Date: Apr 2002
Location: Tennessee, USA
Posts: 12,808
Default

VB forms by default are measured in twips; you can either convert them to pixels using the form's TwipsPerPixelX and TwipsPerPixelY properties, or you can just change the scalemode to pixels.
__________________
Laura

Ita erat quando hic adveni.
Reply With Quote
  #3  
Old 04-02-2003, 12:42 PM
gazmac's Avatar
gazmac gazmac is offline
Junior Contributor
 
Join Date: Apr 2003
Posts: 200
Default

Thank yoouuu, and how can I change the scalemode?
Reply With Quote
  #4  
Old 04-02-2003, 12:52 PM
lebb's Avatar
lebb lebb is offline
Disillusioned Code Poet

Retired Moderator
* Guru *
 
Join Date: Apr 2002
Location: Tennessee, USA
Posts: 12,808
Default

Select your form, then look for it in the properties pane in the IDE.
__________________
Laura

Ita erat quando hic adveni.
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
Pixels not permanent after setpixel in picturebox ? Garmour API 3 02-07-2003 06:46 AM
pixels and twips scott911 General 11 10-26-2001 04:10 AM
twips to pixels blursea General 1 08-07-2001 07:17 PM
make the height for pixels blursea General 2 08-07-2001 05:27 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
 
 
-->