473,837 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System Equivalents of Visual Basic Namespace methods and propertie

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

Nov 21 '05 #1
6 2202
On 2004-09-16, Chris Lane <Ch*******@disc ussions.microso ft.com> wrote:
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.Environm ent.NewLine, but it doesn't do the same thing
as vbCrLf.

Nov 21 '05 #2
> 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.Environm ent.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

Nov 21 '05 #3
Hello, Chris:

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

Regards.
"Chris Lane" <Ch*******@disc ussions.microso ft.com> escribió en el mensaje news:5D******** *************** ***********@mic rosoft.com...
....
| Does anybody know what namespace can be used to mimic keystrokes?
....

Nov 21 '05 #4
ControlChars.Cr Lf, ControlChars.Ta b, etc...

"Chris Lane" <Ch*******@disc ussions.microso ft.com> wrote in message
news:87******** *************** ***********@mic rosoft.com...
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

Nov 21 '05 #5
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.Visua lBasic 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.Visua lBasic namespace with the
Microsoft.Visua lBasic.Compatib ility namespace which only exists for backward
compatibility.

http://msdn.microsoft.com/library/de...itylibrary.asp

Hope this helps
Jay


"Chris Lane" <Ch*******@disc ussions.microso ft.com> wrote in message
news:5D******** *************** ***********@mic rosoft.com...
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.Environm ent.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

Nov 21 '05 #6
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.

"Jay B. Harlow [MVP - Outlook]" wrote:
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.Visua lBasic 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.Visua lBasic namespace with the
Microsoft.Visua lBasic.Compatib ility namespace which only exists for backward
compatibility.

http://msdn.microsoft.com/library/de...itylibrary.asp

Hope this helps
Jay


"Chris Lane" <Ch*******@disc ussions.microso ft.com> wrote in message
news:5D******** *************** ***********@mic rosoft.com...
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.Environm ent.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


Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
16240
by: Phil Stanton | last post by:
When designing a new form or report, the Default ForeColor is often something like -2147483640 which is the colour of Windows text (possibly black) and the default backColor is -2147483643 (possibly white) Can anyone tell me how to convert these colours to either RGB colours or the Long number used by Access. Black is 0 and White is 16777215 ...
6
3511
by: GC | last post by:
Hi, How would I get various system settings through C# such as machine name, hard drives, bytes free on hard drives, printers, etc...this is going to be from a simple console app. Thanks!
5
4847
by: Stewart Saathoff | last post by:
Hello, I am trying to search the file system from a string of text located inside of a textbox on a form and have it return a list of file names in a list box on that same form. Does anyone know where I can find a sample of that? Thanks Stewart
6
2164
by: Harry Strybos | last post by:
Hi All Is there a book or web site that lists all the VB.Net equivalents for VB.6 methods? In other words, a list of all VB6 keywords and their equivalent in VB.Net. This would be of enormous help to me. Tank you (sorry, got a cold ;->)
0
4362
by: Jim Duffie | last post by:
Hi, I am trying to build a simple websire using the above in Visual Web Developer. When finished I have build the website and it works fine locally but when I FTP it to the server I am getting a parse error. Should I be uploading a DLL as well (I can't see one in directory)? The error is :- Parser Error Message: Could not load type System.Web.UI.WebControls.Menu from assembly System.Web, Version=1.0.5000.0, Culture=neutral,...
28
1891
by: Ilias Lazaridis | last post by:
I understand that I can use __metaclass__ to create a class which modifies the behaviour of another class. How can I add this metaclass to *all* classes in the system? (In ruby I would alter the "Class" class) .. http://lazaridis.com
10
8830
by: Ing. Carlos Villaseor M. | last post by:
Hi everybody! I have developed in C# and got in a news group a math class that make matrix operations, eigenvals, eigenvecs, stat functions and much more, but now I trying to develop software in Visual Basic.NET and wondering if does exist something like that for Basic.NET. I appreciate some help Thank you
1
8688
by: bugnthecode | last post by:
Hi, I am trying to put together a small app that uses one of my company's web service. Originally I interfaced with this web service using java, and have the example code. I believe the web service was written with java. Since this web services uses soap I should have no problems consuming it from other languages, although I'm having a problem with .net. The web service requires authentication. I tried adding the
0
9846
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
10890
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10581
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7819
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5675
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5855
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4479
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4053
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3127
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.