Posted at Tuesday, October 16, 2007 1:50 PM
Qual deles devemos usar em VB.NET ?
Sempre pensei que seria a MessageBox visto que a MsgBox vem do VB6 e no fundo é uma chamada à Messagebox do System.Windows.Forms.
Nada melhor que a MSDN Library para tirar as dúvidas, mas neste caso em vez de as tirar, fiquei com elas.
The choice between MsgBox and MessageBox is a matter of consistency. If you are migrating a Visual Basic 6 application to Visual Basic .NET, there is no compelling reason to replace calls to MsgBox with MessageBox.Show.
Recommendation: Use MsgBox throughout your code.
Porquê esta recomendação ?