473,466 Members | 1,332 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SmartPhone application in C#.NET

Ranjith Reddy Bandi
6 New Member
SmartPhone application in C#.NET
1. I have a login screen on mobile(Form1)..when user selects login it should take to another screen(Form2)...
2. how to pass session values from one form to other(in mobile application)
Jun 22 '07 #1
6 11317
Frinavale
9,735 Recognized Expert Moderator Expert
SmartPhone application in C#.NET
1. I have a login screen on mobile(Form1)..when user selects login it should take to another screen(Form2)...
2. how to pass session values from one form to other(in mobile application)
Hi Ranjith,

I have moved your thread from the Mobile Articles section to the Mobile Forums section. You should get more help now. The Articles section is reserved for "how-tos" and general information whereas the Forums section is where you are supposed to ask your questions. In the future, you'll receive better help if you ask your question in the right place (blue menu along the top: Forums->Mobile Development...or .NET...)

Thanks a lot!

-Frinny
Jun 22 '07 #2
RedSon
5,000 Recognized Expert Expert
SmartPhone application in C#.NET
1. I have a login screen on mobile(Form1)..when user selects login it should take to another screen(Form2)...
2. how to pass session values from one form to other(in mobile application)
There are a few ways to do this. You can create global variables or you can expose class methods where one form can query another form's information. Or you can have one main state class that saves all the state.
Jun 25 '07 #3
manmis
1 New Member
Thanks it worked

I have created this class as Session.cs

[PHP]using System;
using System.Collections.Generic;
using System.Text;

namespace TrakBak
{
public class Session
{
public static global::System.Int16 UserID;

public static global::System.Int16 BatchID;

public static global::System.Int16 ItemID;

}
}[/PHP]

and then in the beginning of each Form I instantiate it as follows
[PHP]public global::TrakBak.Session Session = new Session();[/PHP]

later I can access the properties as follows:
[PHP]Session.BatchID=45;[/PHP]
Jan 23 '08 #4
markmcgookin
648 Recognized Expert Contributor
Or you could simply add it into the constructor and pass the variable at runtime:

Expand|Select|Wrap|Line Numbers
  1. public frmMyForm(int _number, bool _isNew)
  2.         {
  3.             InitializeComponent();
  4.             number = _number;
  5.             isNew = _isNew;
  6.         }
  7.  
  8. .....
  9.  
  10. //then when creating an instance
  11.  
  12. Form newForm = new frmMyForm(12, true);
  13. newForm.Show();
  14.  
Jan 28 '08 #5
LTCCTL
49 New Member
SmartPhone application in C#.NET
1. I have a login screen on mobile(Form1)..when user selects login it should take to another screen(Form2)...
2. how to pass session values from one form to other(in mobile application)

Hi,

I am also creating the same application, can you please send me the codes you have used...

Thanks in advance
Feb 16 '08 #6
Frinavale
9,735 Recognized Expert Moderator Expert
Hi,

I am also creating the same application, can you please send me the codes you have used...

Thanks in advance
Hi there,

Please take the time to research the problem before you post your question. The experts here are more than willing to help you with a specific problem but you have to do you part to learn the basics. Please take the time to read over the posting guidlines specifically the section on Before you post your question.

Thanks
-Moderator Frinny
Feb 16 '08 #7

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

Similar topics

6
by: Andrew Banks | last post by:
I own VS.NET and am wondering what else I need to develop for the Smartphone 2002 platform? What languages can I develop for the Smartphone 2002 in and does it support ..NET? Thanks in advance,...
1
by: MEGASILVER | last post by:
Hi, I am very new to this, but is there anyway I can play a wma file on the smartphone from my application? I need this urgently, any help would be greatly appreciated. Thank you!!!
5
by: Cooley | last post by:
hi, Can i develope software for SmartPhone device??? (what i need, and where i can find) where i can find Compact Framework Redistributable??? in my VS .NET2003 it is include??? i find a CF...
0
by: timsohn | last post by:
I am trying to hook in a soap extension to my application for my smartphone using VS 2005. There does not seem to be a config file that I can declare my extension. Anyone have any ideas?
0
by: JDeats | last post by:
I'm running Visual Studio.NET 2003 Enterprise and if I have an option under C# projects for a "Smart Device Application" if I proceed forward I can build an application, but when I go to run it...
2
by: LTCCTL | last post by:
Hi all, I have developed an application for sending SMS to a particular number with a predefined text message. The application works fine when I deploy it to the emulator but when I deploy it...
3
by: LTCCTL | last post by:
Hi All, I am trying to create a service for smartphone which uses Windows Mobile 5. When ever I switch on the Smartphone that service should run. How can we do it? Please give some...
6
by: LTCCTL | last post by:
Hi, I have created a SmartPhone/PDA application to send and recieve SMS. Now whenever the application is running and the message comes in, it is shown on the screen and is strored in the inbox(I...
1
by: LTCCTL | last post by:
Hi all, I have created an application to send and recieve a particular type of message, now when the message comes in, the application grabs the message and show it on the screen, but when we...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.