CBClay Burch Syncfusion Team September 7, 2002 01:28 AM
One way you might do this is to add a public static (Shared in VB.Net) member to your class. Then you can access this member from any place in your application using Classname.MemberName.
'VB declaration within the class Form1
Public Shared UserName As String
'whereever you need to use it
Form1.UserName = "somename"
If name = Form1.UserName Then
//declaration in C#
public static string UserName;