System Equivalents of Visual Basic Namespace methods and propertie

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have been searching for a possible list that shows what methods or
properties in the System Names replace the ones in the Visual Basic Namespace
so I can stop using the Visual Basic Namespace on new projects. Thus far I
have been unable to find this information, please inform me.

For example in the Visual Basic Namespace there are Control Characters like
Tab and Back and so on. Where are the equivalents in the System Namespace?


Thank You,

Chris
 
Hi,

I have been searching for a possible list that shows what methods or
properties in the System Names replace the ones in the Visual Basic Namespace
so I can stop using the Visual Basic Namespace on new projects. Thus far I
have been unable to find this information, please inform me.

For example in the Visual Basic Namespace there are Control Characters like
Tab and Back and so on. Where are the equivalents in the System Namespace?

There aren't any, character constants in .Net were left to the
individual languages to define. C# defines character constants with the
c/java standard backslash constants, in VB.Net there's the VBTab,
vbBack, etc. constants.

There is a System.Environment.NewLine, but it doesn't do the same thing
as vbCrLf.
 
There aren't any, character constants in .Net were left to the
individual languages to define. C# defines character constants with the
c/java standard backslash constants, in VB.Net there's the VBTab,
vbBack, etc. constants.

There is a System.Environment.NewLine, but it doesn't do the same thing
as vbCrLf.

This doesn't make any sense to me, there has to be a way to be a way to
mimic this behavoir by coding the keystrokes yourself.
It's my understanding that the MS Visual Basic Namespace only exists for
backward compatability and in Version 2005 it is removed by default althought
you can add it back in via an imports.

Does anybody know what namespace can be used to mimic keystrokes?

Thanks
 
Hello, Chris:

Maybe you are looking for the System.Windows.Forms.Keys enumeration?

Regards.


"Chris Lane" <[email protected]> escribió en el mensaje ....
| Does anybody know what namespace can be used to mimic keystrokes?
....
 
Chris,
It's my understanding that the MS Visual Basic Namespace only exists for
backward compatability and in Version 2005 it is removed by default
althought
You are mis-understanding something!

The Microsoft.VisualBasic namespace is a integral part of the Visual Basic
Language! In fact in version 2005 it has gotten larger (the My constructs
among other things)!


I suspect you are confusing the Microsoft.VisualBasic namespace with the
Microsoft.VisualBasic.Compatibility namespace which only exists for backward
compatibility.

http://msdn.microsoft.com/library/d...vbconthevisualbasic60compatibilitylibrary.asp

Hope this helps
Jay
 
Thanks, yes I was.
I was also confused by an article Dan Appleman wrote about CLS compliance
with Version 2005. I could have sworn I read that the Visual Basic Namespace
will be removed by default for new projects but I guess I misread it.
Thanks for the info Jay.
 

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