Solved

Urgent Anser Needed

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

740 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