473,378 Members | 1,397 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,378 software developers and data experts.

session in winform

Tom
hi friends.

I'm still unfamiliar with winform does it have a session or application
storage that allows session to be passed from one form to the next ?

thanks
Tom
Nov 16 '05 #1
3 10455
Hi Tom,

No, Session and Application objects are used for webforms where the lifetime of web pages and web applications are very different.

In winforms you just use variables that you expose to other forms through methods or properties.
static variables are also handy.

--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #2
Tom wrote:
hi friends.

I'm still unfamiliar with winform does it have a session or
application storage that allows session to be passed from one form to
the next ?


That begs the question what a session in winforms application is meant to
be. Unlike Web Forms, Windows Forms are stateful. They can keep references
to other objects as long as they're not being disposed.

Cheers,

--
Joerg Jooss
jo*********@gmx.net
Nov 16 '05 #3
Hi,

Not, they are two completely different environments. Now, it;s very easy
to implement a similar feature if you want it. Just create a static class
with one collection like hashtable.

what is what you want to do anyway?

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Tom" <to********@optushome.com.au> wrote in message
news:41***********************@news.optusnet.com.a u...
hi friends.

I'm still unfamiliar with winform does it have a session or application
storage that allows session to be passed from one form to the next ?

thanks
Tom

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John Cobb | last post by:
In a nutshell I have a 1.1 Framework VB Winform app with one form and one .vb file. The .vb file is defined with it's own namespace MyNameSpace. In form code I can reference properties of ...
1
by: John Indra | last post by:
Hello all... I need to have global data available within the lifetime of my Winform app, accessible from any objects this application might spring at runtime. In ASP.NET, I can just create...
6
by: Steve - DND | last post by:
I'm currently creating an application with an n-tier design(not separate boxes for each layer, just separation of pres/logic/data) that will have both a web and windows interface. I'm trying to...
3
by: Tom | last post by:
hello question 1: I have the following code below but the funny thing is that Session only works when I invoke it from the server side.. When I call this session from client (winform app) I...
3
by: Lucas Tam | last post by:
Is there a way to write to IIS' Application or Session variables from a Winforms application? I am trying to share application state between a web application and a desktop app. Remoting would...
5
by: Sean | last post by:
Problem with sessions I have created an application without concern for sessions. As it turns out I think that might be my undoing. What I have: I have an online quiz. I don’t need to know...
2
by: Kevin Yu | last post by:
hi all got a questoin here, I have a winform client to call web service and the web service functions have EnableSession =ture, use IE to test the web service session, it works, but how to get...
5
by: benjamin_kohler | last post by:
hi, if have the following scenario: I have a winform client which communicates with a web service method that supports session (EnableSession=true), so a cookie is created for this client after...
3
by: Rory Becker | last post by:
Does anyone know of a good way to kill the session of a single user? I need to locally simulate the arrival of a user at a given point in my application and then them waiting sufficient time for...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.