473,548 Members | 2,604 Online
Bytes | Software Development & Data Engineering Community
+ 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 11318
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...o r .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.Collecti ons.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
1520
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, Andrew Banks
1
2184
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
1688
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 in http://www.microsoft.com/downloads/details.aspx?FamilyId=359EA6DA-FC5D-41CC-AC04-7BB50A134556&displaylang=en
0
865
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
1141
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 apparently something isn't working properly. I get an error message: "One or more files from the Windows CE emulator is missing I have installed...
2
2072
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 on a smartphone nothing happens. I am using C#.Net and Windows Mobile 5.0 SDK can anyone help me to solve this...
3
2138
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 suggestions/ideas/links.
6
7446
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 have tried both the options Notify and NotifyAndDelete but I am not satisfied with that). I want to delete a SMS from SmartPhone/PDA inbox which...
1
2163
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 switch of the phone and switch it on again, the message starts coming in before the application starts and goes directly to the PDA/Phone inbox. My...
0
7512
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7438
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7707
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7466
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7803
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6036
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5082
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3495
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
751
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.