473,320 Members | 2,146 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,320 software developers and data experts.

how to pass the value one form to another form

palanivel
hi ,



i am greating finance project step by step value pass on one form to another form what can i do?
Jun 11 '07 #1
7 4948
radcaesar
759 Expert 512MB
Using Session, Properties, Accessing the form object etc.
Jun 11 '07 #2
Using Session, Properties, Accessing the form object etc.
i am using VB.NET windows application . how to use the session
Jun 11 '07 #3
Frinavale
9,735 Expert Mod 8TB
i am using VB.NET windows application . how to use the session
You cannot use sessions in a VB.NET Desktop application.
These are used by VB.NET Web applications.

-Frinny
Jun 11 '07 #4
TRScheel
638 Expert 512MB
You cannot use sessions in a VB.NET Desktop application.
These are used by VB.NET Web applications.

-Frinny
Dont know why you would want to either. Too many strings in an application is never a good thing.


Properties would be your best bet.
Jun 11 '07 #5
Frinavale
9,735 Expert Mod 8TB
Dont know why you would want to either. Too many strings in an application is never a good thing.


Properties would be your best bet.

(I like sessions)

Anyways, Palanivel, you should set public properties for your form...then when you instantiate it, you can set these properties...effectively passing data from one form to another...just as TRScheel has hinted at.
Jun 11 '07 #6
TRScheel
638 Expert 512MB
(I like sessions)

Anyways, Palanivel, you should set public properties for your form...then when you instantiate it, you can set these properties...effectively passing data from one form to another...just as TRScheel has hinted at.

Oh dont get me wrong, I like them too... on web apps. I just come from the school of throw exceptions instead of error codes, no to little embedded strings, etc... so sessions kinda quirk me at times. I normally encapsulate the session variables into their own class so I have those strings only showing up once in my code, which in essence makes me end up using my session like a property instead of an indexer.
Jun 11 '07 #7
Frinavale
9,735 Expert Mod 8TB
Oh dont get me wrong, I like them too... on web apps. I just come from the school of throw exceptions instead of error codes, no to little embedded strings, etc... so sessions kinda quirk me at times. I normally encapsulate the session variables into their own class so I have those strings only showing up once in my code, which in essence makes me end up using my session like a property instead of an indexer.

Yeah I do the same thing.
Make an object like "user" which holds things like UserName and UserID...that way you can refer to a whole bunch of strings by simply calling Session("user"). It'd get confusing storing them all individually.
Jun 11 '07 #8

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

Similar topics

1
by: vishal | last post by:
hi i am using get method to pass data from one form to another and my value may contain & symbol. so when this is case the value after & sign is truncated which is logically true. so what...
4
by: Fred | last post by:
Hi, i know how to pass a value from Javascript to ASP with a hidden field into a form and submitting it, or with cookies, but here i have to pass a lot of data in an array. There is a list of...
11
by: Vanessa | last post by:
Hi, I would like to know whether there's any way for me to pass an object by reference to another form? Regards Vanessa
1
by: carmen | last post by:
I am using the code below to open another page depending on what is selected. This is working ok but I would like to streamline it so that I will hot have to create a page everytime a new category...
3
by: Lyn | last post by:
Hi, I have been experiencing a problem passing a LIKE statement in the WHERE argument of a DoCmd.Openform statement. I have posted that issue separately. However, in an attempt to work around...
4
by: tom | last post by:
Hi Experts, I want to pass the selectedDate value from my calender form to another web form or a web user control. Could you please show me how to do this? Thanks in advance.
2
by: c676228 | last post by:
Hi, This is my first time to post asp.net question on this forum. I have a question for "How to pass the first form value to the next form" I have enrollinfo.aspx form which look like as follow:...
17
by: Rabbit | last post by:
Hi, On my 1st page, i have a function which gets a new ID value and need to transfer to another immediately. which I want to get in 2nd page using Request.form("txtID"), but doesn't work, the...
2
by: Rudy | last post by:
Hello All! I have been trying to figure this out, have recieved alot of help, but it's just not clicking in the ol' noggin. I basicly have a value in a text box, I need to keep that value and...
12
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms....
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.