Guest User

Untitled

a guest
Jan 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. Private Delegate Function GetToolStripComboBoxTextInvoker() As String
  2.  
  3. Private Function GetToolStripComboBoxText() As String
  4. Dim text As String
  5.  
  6. If Me.ToolStripComboBoxText1.Text.InvokeRequired Then
  7. text = CStr(Me.ToolStripComboBox1.Text.Invoke(New GetToolStripComboBoxTextInvoker(AddressOf GetToolStripComboBoxText)))
  8. Else
  9. text = Me.ToolStripComboBox1.Text
  10. End If
  11.  
  12. Return text
  13. End Function
Add Comment
Please, Sign In to add comment