Solved

Urgent Anser Needed

Posted on 2003-10-26
1
209 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

739 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