Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have the following code.

 

        Private Sub cmdForward_MouseDown(ByVal sender As Object, ByVal e As MouseEventArgs) Handles cmdForward.MouseDown
       booFor = True
       tmrPiston.Enabled = True
   End Sub
   'When cmdForward button is released, stops the tmrPiston
   Private Sub cmdForward_MouseUp(ByVal sender As Object, ByVal e As MouseEventArgs) Handles cmdForward.MouseUp
       booFor = False
       tmrPiston.Enabled = False
   End Sub
   'When cmdRev button is pushed down, Then starts tmrPiston and runs the 
   'code so piston moves in reverse
   Private Sub cmdRev_MouseDown(ByVal sender As Object, ByVal e As MouseEventArgs) Handles cmdRev.MouseDown
       booRev = True
       tmrPiston.Enabled = True
   End Sub
   'When cmdRev button is released, stops the tmrPiston
   Private Sub cmdRev_MouseUp(ByVal sender As Object, ByVal e As MouseEventArgs) Handles cmdRev.MouseUp
       booRev = False
       tmrPiston.Enabled = False
   End Sub

 

 

Basically what I want to do is collapse this code at once, Like a section and call it the TAB1 section, that way I don't have to see all ths code when I am working on somthing else on the same form. Is there a way to do this?

Live as if you were to die tomorrow. Learn as if you were to live forever.
Gandhi

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...