Download Horizon :: Staff Members :: Save Vault :: XboxMB YouTube


Old 03-22-2012   #1 (permalink)
Regular Member
Indee's Avatar
Join Date: Nov 2010
Location: Adventureland
Posts: 1,444
Thanks: 562
Default Change Form Properties In Code? [VB]

I'm working on a calculator, and I'm trying to implement an "expand" button that will reveal more functions, for example a hex converter or something. I know this can be done, but I'm very new to programming and was wondering if it could be done simply.

Here's what I was hoping:
In the code for the "expand" button, I could write something that would change the dimensions of the form, thus revealing more area.

If it's much more complicated than this, I won't really be interested in implementing this feature, as I am, like I said, very new to programming.

Last edited by Indee; 03-22-2012 at 08:20 PM.
Indee is offline
Reply With Quote


Old 03-22-2012   #2 (permalink)
Regular Member
ToXiC x SnIpEr's Avatar
Join Date: Dec 2011
Posts: 709
Thanks: 137
Default Re: Change Form Properties In Code? [VB]

Here:
Me.size = 555,666
__________________
ToXiC x SnIpEr is offline Send a message via AIM to ToXiC x SnIpEr
Reply With Quote
The following user thanked this post: Indee


Old 03-22-2012   #3 (permalink)
Regular Member
Indee's Avatar
Join Date: Nov 2010
Location: Adventureland
Posts: 1,444
Thanks: 562
Default Re: Change Form Properties In Code? [VB]



Couple errors, no doubt because I don't really understand your code.. What does me mean?
Indee is offline
Reply With Quote




Old 03-22-2012   #4 (permalink)
Experiment5X's Avatar
BlueJ
Join Date: Sep 2010
Location: New York
Posts: 1,343
Thanks: 1,031
Default Re: Change Form Properties In Code? [VB]

This should work, although I did use an online converter to convert it from C# to VB.

Code:
Me.Size = New Size(Me.Size.Width, YOUR_NEW_HEIGHT_VALUE)
__________________
Experiment5X is online now Send a message via AIM to Experiment5X
Reply With Quote
The following user thanked this post: Indee


Old 03-22-2012   #5 (permalink)
Regular Member
Indee's Avatar
Join Date: Nov 2010
Location: Adventureland
Posts: 1,444
Thanks: 562
Default Re: Change Form Properties In Code? [VB]

Ahh! It works! Thanks guys for your similar answers, fixed my problem:DD
Indee is offline
Reply With Quote


Old 03-22-2012   #6 (permalink)
Regular Member
ToXiC x SnIpEr's Avatar
Join Date: Dec 2011
Posts: 709
Thanks: 137
Default Re: Change Form Properties In Code? [VB]

Ya i meant me.formname.size = 555,666 its an example
__________________
ToXiC x SnIpEr is offline Send a message via AIM to ToXiC x SnIpEr
Reply With Quote
The following user thanked this post: Indee


Old 03-22-2012   #7 (permalink)
Regular Member
GHO5T BUST3Rs's Avatar
Join Date: Sep 2010
Posts: 3,773
Thanks: 1,599
Default Re: Change Form Properties In Code? [VB]

Quote:
Originally Posted by Indee View Post


Couple errors, no doubt because I don't really understand your code.. What does me mean?
"Me" means the form.
__________________
GHO5T BUST3Rs is offline Send a message via AIM to GHO5T BUST3Rs
Reply With Quote
The following user thanked this post: Indee

Reply

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:59 PM.


 

Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
COPYRIGHT (c) 2010 - 2013 - XboxMB - DESIGN BY:
EDENWEBS.COM