Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
GeneralRe: Newbie: Q regarding Sorting DataGrid Pin
MoustafaS14-May-05 14:41
MoustafaS14-May-05 14:41 
GeneralRe: Newbie: Q regarding Sorting DataGrid Pin
nad226314-May-05 18:21
nad226314-May-05 18:21 
GeneralRe: Newbie: Q regarding Sorting DataGrid Pin
Gary Perkin17-May-05 5:58
Gary Perkin17-May-05 5:58 
GeneralRe: Newbie: Q regarding Sorting DataGrid Pin
nad226318-May-05 10:39
nad226318-May-05 10:39 
Generali have the same problem also Pin
snouto14-May-05 8:00
snouto14-May-05 8:00 
GeneralRe: i have the same problem also Pin
Polis Pilavas14-May-05 8:10
Polis Pilavas14-May-05 8:10 
GeneralSmall question Pin
snouto14-May-05 7:42
snouto14-May-05 7:42 
GeneralRe: Small question Pin
Polis Pilavas14-May-05 8:01
Polis Pilavas14-May-05 8:01 
snouto wrote:
i need when i press button to take the text value from the textbox.text and store that value in global variable

I can't figure out what exactly you are doing wrong here. If you create a class with public variables or, even better, public properties, you shouldn't have problem using it across your forms and application. All you have to do is to create an object of that class and pass those members of it that you need to work with (or the whole object if you need it), as arguments to different classes across your application.

snouto wrote:
In addition i tried alot but each time when i declare my class as the following
globalclass myclass = new globalclass();
this.username = myclass.username;

it gives me blank variable in username string


What value do you initialize the username variable with? Also, what is this.username for? Do you wish to refer to a textbox on the form?

Regards,
Polis

Can you practice what you teach?
GeneralRe: Small question Pin
snouto14-May-05 8:11
snouto14-May-05 8:11 
GeneralRe: Small question Pin
Polis Pilavas14-May-05 8:14
Polis Pilavas14-May-05 8:14 
GeneralRe: Small question Pin
snouto14-May-05 8:19
snouto14-May-05 8:19 
GeneralRe: Small question Pin
MoustafaS14-May-05 10:28
MoustafaS14-May-05 10:28 
GeneralRe: Small question Pin
mav.northwind14-May-05 20:25
mav.northwind14-May-05 20:25 
GeneralRe: Small question Pin
lgstef16-May-05 1:31
lgstef16-May-05 1:31 
GeneralAsynchronous file transfer client/server Pin
methodincharge14-May-05 7:37
methodincharge14-May-05 7:37 
GeneralRe: Asynchronous file transfer client/server Pin
snouto14-May-05 7:49
snouto14-May-05 7:49 
GeneralCatching event before file opens Pin
krisst_k14-May-05 3:43
krisst_k14-May-05 3:43 
GeneralRe: Catching event before file opens Pin
MoustafaS14-May-05 7:10
MoustafaS14-May-05 7:10 
GeneralRe: Catching event before file opens Pin
krisst_k14-May-05 14:23
krisst_k14-May-05 14:23 
GeneralRe: Catching event before file opens Pin
Dave Kreskowiak15-May-05 5:51
mveDave Kreskowiak15-May-05 5:51 
GeneralPerformanceCounter Problem Pin
Zishan Haider14-May-05 3:23
Zishan Haider14-May-05 3:23 
GeneralDatabase WebService Pin
Yeast2714-May-05 2:49
Yeast2714-May-05 2:49 
GeneralRe: Database WebService Pin
Zishan Haider14-May-05 3:25
Zishan Haider14-May-05 3:25 
GeneralRe: Database WebService Pin
Roger Wright14-May-05 3:30
professionalRoger Wright14-May-05 3:30 
Generalclasses programing Pin
eng.mohamed14-May-05 0:29
eng.mohamed14-May-05 0:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.