From 6337ebe79a71f4434e50733b9426fbacc01bf5c6 Mon Sep 17 00:00:00 2001 From: Jamie Mansfield Date: Sat, 7 Mar 2015 19:48:26 +0000 Subject: Use the 'Not' operator --- windows 95/installer2000.vb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'windows 95/installer2000.vb') diff --git a/windows 95/installer2000.vb b/windows 95/installer2000.vb index 7b11b02..158ec2e 100755 --- a/windows 95/installer2000.vb +++ b/windows 95/installer2000.vb @@ -82,7 +82,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 @@ -92,7 +92,6 @@ New IntPtr(HTCAPTION), IntPtr.Zero) Me.DefWndProc(msg) End If - Else End If End Sub @@ -139,7 +138,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 = Windows2000.desktopicons.Height - Me.Height mexlocation = Windows2000.desktopicons.Width - Me.Width mewidth = Me.Width -- cgit v1.2.3