Solved

Urgent Anser Needed

Posted on 2003-10-26
1
195 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

792 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