Solved

Urgent Anser Needed

Posted on 2003-10-26
1
174 Views
Last Modified: 2010-04-16
I have to windows form

Form1.cs and Addbib.cs

I have a value declared at the top of Form1.cs as

public static string name;


Can someone tell me how to get the value in Addbib.

I know someone will know this, Can u PLEASE HELP
0
Comment
Question by:jon6
1 Comment
 
LVL 9

Accepted Solution

by:
tinchos earned 105 total points
ID: 9623105
If name is a static string inside Form1 class

then you should get it with   Form1.name

MessageBox.show( Form1.name );


if the class name is another one (Lets say ClassName) then as name is a static member you get it with

ClassName.Name

Hope this helps

Tincho
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Iterate two lists and remove inactive 11 49
Need to pass connection string through config 2 25
Data is not showing from images 15 36
VB.Net How to Exit Sub - Exit Form??? 5 47
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now