Add A Simple Sub

  • Thread starter Thread starter shachar
  • Start date Start date
S

shachar

hi all.
in vb6 i choose "tools --> Add procedure" and then i'd
choose if it's a sub/property/function ..
how can i do it in vb.net IDE ? (from the menu)
thanks.
 
shachar said:
in vb6 i choose "tools --> Add procedure" and then i'd choose if it's a sub/property/function ..
how can i do it in vb.net IDE ? (from the menu)

Please see the following URL for more information,

http://msdn.microsoft.com/library/e...bleshootingvisualbasicnetextensibilityanchor1

I tried enabling these commands manually and dragging them onto the menu (From
Tools --> Customize --> Commands (tab), select "Project" in the Categories listbox,
and scroll about one-quarter of the way down in the Commands listbox to locate the
"Add Method" command) ... they appear nevertheless to always be "grayed out" in
Visual Basic .NET.

As the article suggests, you can still write a Visual Basic Add-In to present modal
form and then injects the skeleton Sub into a .vb document.


Derek Harmon
 
* "shachar said:
in vb6 i choose "tools --> Add procedure" and then i'd
choose if it's a sub/property/function ..
how can i do it in vb.net IDE ? (from the menu)

That's not supported out of the box in the current version of VB.NET.
 
Shachar,

There is autocomplete in VBNet.

When you type a sub, than that is automaticly completed
When you type the first line of your property, than that is automaticly
completed.
When you type a for loop than that is automaticly completed
When you type an if statement than tht is automaticly completed

And much more,

I hope this gives an idea?

Cor
 

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

Back
Top