-2

Possible Duplicate:
VB.NET equivalent to C# var keyword

I'm doing C# And now I want to learn about VB.Net, and I want the equivalent for this:

var result = loginForm.ShowDialog();
Community
  • 1
  • 1
Lamya Lam
  • 33
  • 1
  • 7

1 Answers1

3

Just use Dim without a type designator.

Dim result = loginForm.ShowDialog()
System Down
  • 6,192
  • 1
  • 30
  • 34