Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi, I am working on a little app for fun, its pretty basic, type in the box, hit enter, and depending on what option you have set, it displays a warning box, or alert, or error, just a little fun thing, but i want the window to expand when i hit "options", this is what I have:
Private Sub options_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles options.Click
If Me.Size.Height = "75" Then
Me.Size = New Size(156, 75)
End IfIf Me.Size.Height = "161" Then
Me.Size = New Size(156, 75)
End If
End Sub============================
it always seems not to want to stay that size. How can i make it stay?Curiousity only injured the cat.
I finished it off..
Muahahaha...

The Height property is an Integer so comparing it to a string eg. "75" will evaluate to false.
Therefore your method won't do anything.
:-D

![]() |
Send line to bat file
|
PRE test
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |