title: How to run same code in click event as the double click event?
body: <p>I have 4 items in a ListBox and each item does a specific thing when it gets clicked on.</p>
  
  <p>But I also want the double click event to do the same thing as the click event.</p>
  
  <p>I can copy and paste all code from click event into double click event, but then you have lots of code crowding the code page doing the same thing.  So what to do about this?</p>
  
  <p>Example:</p>
  
  <pre><code>Private Sub listBox1_DoubleClick(ByVal sender As Object, ByVal e As EventArgs) _
      Handles listBox1.DoubleClick
  
    if listbox1.doubleclick then do the same thing in listbox1.clickevent
    end if
  
  End Sub
  </code></pre>