#Region on VB

  • Thread starter Alexander Dong Back Kim
  • Start date
A

Alexander Dong Back Kim

Dear all,

Here is a very beginner's question! (kind of shame though...) Is there
any equivalent way that I can use #region thing of C# in VB?

Cheers,
 
R

Rory Becker

Dear all,
Here is a very beginner's question! (kind of shame though...) Is there
any equivalent way that I can use #region thing of C# in VB?

Sure Region works in Vb in the following way
 
R

RB

Alexander said:
Dear all,

Here is a very beginner's question! (kind of shame though...) Is there
any equivalent way that I can use #region thing of C# in VB?

Cheers,

Yep!!

#Region " This is the region name "

Private Sub MySubInRegion
MessageBox.Show("I'm in a region!")
End Sub

#End Region

Cheers,

RB.
 
A

Alexander Dong Back Kim

Yep!!

#Region " This is the region name "

Private Sub MySubInRegion
MessageBox.Show("I'm in a region!")
End Sub

#End Region

Cheers,

RB.

Thanks heaps RB and Rory! =)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top