Solved

Urgent Anser Needed

Posted on 2003-10-26
1
164 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

12 Experts available now in Live!

Get 1:1 Help Now