473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Public variable in C# windows application

366 256MB
hello

i am developing c# windows application where i got a requirement of using the

login name through out my application. even i have created a variable as public

and i am able to access that public variable in other windows form ,but the

value of the variable i am getting null how to maintain the vaeriable value

through out my applicvation


thanks

nmsreddi
Dec 27 '06 #1
5 3810
use Session i supposed??

cheers!
Dec 28 '06 #2
ashmc44
12
sessions or cookies makes it possible
Dec 28 '06 #3
nmsreddi
366 256MB
Hello friends

thanks for your reply


but where can i get sessions and cookies in WINDOWS APPLICATION

MY PROBLEM IS IN WINDOWS APPLICATION



REGARDS

NMSREDDI
Dec 29 '06 #4
Wihtout seeing details of the code, it is kind of hard to say, but it seems you've done it right. My first idea would be to create a dummy application where you will only rewrite this behavior, and see if it works.

I would not use in this case, but a similar solution to cookies and sessions for windows application is the use of Caching. You will find lots of articles about this on the web.

Cheers!
Dec 31 '06 #5
Start your application from an static class, define your public variables here
Dec 31 '06 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Qingdong Z. | last post by:
Posted in asp.net newsgroup, no answer. Hope some experts can help me here 1. Does class shared variable share same feathers as ASP.NET application variable? 2. If it is, it may work better...
2
by: THY | last post by:
Hi, I am having some problem, I declare few variable in a public module and use them in the web application. But after that I found that the variable declared in public variable =...
1
by: Aaron | last post by:
Is it the same as cache in asp.net? how do you load an app var in asp.net (C#)? Can you use app variable in a windows app?(.exe) thanks
10
by: darrel | last post by:
I'm still trying to sort out in my head the differences between public and shared when referring to declaring properties or variables. This is my understanding: shared - akin to a 'global'...
8
by: Floris van Haaster | last post by:
Hi All! I have a question, i have a web application and I store some member information in a variable i declared in a module like: Public some_info_variable as string in module1.vb But...
27
by: thomasp | last post by:
Variables that I would like to make available to all forms and modules in my program, where should I declare them? At the momment I just created a module and have them all declared public there. ...
7
by: Steve Mauldin | last post by:
I have a public variable that is declared in a public module. This Variable is stored into a Session variable and used to pass data from page to page. I am seeing on my local development box that...
1
by: D. | last post by:
Hi, i come from classic asp and i'm a little confused with variable declaration in VB. I read: "A Public variable is accessible from any place within the module it was declared or other...
8
by: rk2008 | last post by:
I have an ASP.NET application, which needs to initialize a memory location and update it multiple times in different projects in the same solution. I have used a public static variable and I could...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.