Dim WithEvents StockInfoEventHandler As StockInfo

What does the WithEvents mean? Can someone explain what this does and what it is used for and why? Thank you.