Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Why dont this work!


Reply
 
Thread Tools Display Modes
  #1  
Old 03-15-2003, 12:20 PM
Mephisto666 Mephisto666 is offline
Restricted
 
Join Date: Feb 2003
Posts: 139
Default Why dont this work!


Hi i have this problem ... I want my program to be in 3 modes
>
BASIC, ADVANCED and EXPERT and reducing the number of options when u click on each. I want to do it so i am reducing or advancing
Form1.scaleHeight

When im in object mode and i play with the form, the scaleheight changes. ANd so my code was

Sub cmdBeginner_click
state = "beginner"
form1.scaleheight = 3000
End sub

Sub cmdAdvanced_click
state = "advanced"
form1.scaleheight = 5000
End sub

Sub cmdExpert_click
state = "expert"
form1.scaleheight = 8000
End sub

This doesnt work... can someone help me please.
Reply With Quote
  #2  
Old 03-15-2003, 12:26 PM
Thinker Thinker is offline
Iron-Fisted Programmer

Retired Moderator
* Guru *
 
Join Date: Jul 2001
Location: Fayetteville Arkansas USA
Posts: 18,127
Default

Why are you setting the ScaleHeight instead of just the Height?
__________________
Posting Guidelines
Reply With Quote
  #3  
Old 03-15-2003, 12:26 PM
Iceplug's Avatar
Iceplug Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: California, USA
Posts: 16,583
Default

You have to set the Form1.Height properties... setting the Scaleheight is changing the actual scaling on your form....
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
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
Where do you work? What do you do? Wise_Reeper Tech Discussions 75 12-20-2002 08:18 AM
Vb application (exe) to work in MAC OS zubairs Installation / Documentation 1 12-12-2002 08:02 AM
Why does it work on my machine nlarge DirectX 3 12-10-2002 07:39 AM
My site for work experience. Does it work? Kitaiko Web Programming 22 06-14-2002 07:54 AM
QUERY : Doesn't work! :( diver Database and Reporting 5 06-08-2002 08:00 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
 
 
-->