title: Visual Basic 6 - using the control's name in its own event code snippet
body: <p>Was wondering if it is possible to use a control's name in its own event sub without specifically hard coding it's name, so it can be used on other control's events, of the same type, with the exact same syntax.</p>
  
  <p>for example:</p>
  
  <pre><code>Private Sub Command1_Click()
  
      Me.Caption = "Hello"
  
  End Sub
  </code></pre>
  
  <p>Will set the containing form's caption to "hello".if i copy the same line of code to another form, it will set its caption to "hello, and so on.</p>
  
  <p>i was wondering if there's another keyword for the control Command1 itself, so i'll be able to to copy-paste the same code to another command button without hard coding the name of the control.</p>
  
  <p>after years of writing code in vb6, I'm 90% sure it can not be done, but it's worth the shot.</p>