The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
How can I assign a public variable which is in form A to be available in all forms. Variables are a database variables like user name, password and user group?
CBClay Burch Syncfusion Team September 7, 2002 06:28 AM UTC
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;