summaryrefslogtreecommitdiff
path: root/windows 95/windows98messagebox.vb
diff options
context:
space:
mode:
authorJamie Mansfield <[email protected]>2015-03-07 19:48:26 +0000
committerJamie Mansfield <[email protected]>2015-03-07 19:48:26 +0000
commit6337ebe79a71f4434e50733b9426fbacc01bf5c6 (patch)
tree203dd32fc52cb6782fcaba5d3788b0728ddb49bb /windows 95/windows98messagebox.vb
parentbb6492c6085f10570ae5087b667aaaa1e8fa3d01 (diff)
downloadhistacom-6337ebe79a71f4434e50733b9426fbacc01bf5c6.tar.gz
histacom-6337ebe79a71f4434e50733b9426fbacc01bf5c6.tar.bz2
histacom-6337ebe79a71f4434e50733b9426fbacc01bf5c6.zip
Use the 'Not' operator
Diffstat (limited to 'windows 95/windows98messagebox.vb')
-rwxr-xr-xwindows 95/windows98messagebox.vb5
1 files changed, 2 insertions, 3 deletions
diff --git a/windows 95/windows98messagebox.vb b/windows 95/windows98messagebox.vb
index b17f5ab..16d5dc5 100755
--- a/windows 95/windows98messagebox.vb
+++ b/windows 95/windows98messagebox.vb
@@ -48,7 +48,7 @@
Dim maximize As Boolean
Private Sub programtopbar_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles programtopbar.MouseDown
- If moveable = True Then
+ If moveable Then
If e.Button = MouseButtons.Left Then
programtopbar.Capture = False
Const WM_NCLBUTTONDOWN As Integer = &HA1S
@@ -58,7 +58,6 @@
New IntPtr(HTCAPTION), IntPtr.Zero)
Me.DefWndProc(msg)
End If
- Else
End If
End Sub
@@ -105,7 +104,7 @@
End Sub
Private Sub maximizebutton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles maximizebutton.Click
- If maximize = False Then
+ If Not maximize Then
meylocation = Windows98.desktopicons.Height - Me.Height
mexlocation = Windows98.desktopicons.Width - Me.Width
mewidth = Me.Width