472,145 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

what's the code for changing Screen?

I want to move from one Screen to another screen. Can you tell me about it.
Sep 10 '09 #1
9 1626
markmcgookin
648 Expert 512MB
Probably...

(Hint: More information helps with responces)
Sep 10 '09 #2
Hey Mark,
Can you plz give me a big hint.
I m unable to understand your hint.

Thanxxxxx for replying me.
And Nice picture budy
Sep 10 '09 #3
markmcgookin
648 Expert 512MB
Kapil,

We don't know what you mean by "Move from one screen to another" is this on the PDA? How does a PDA have two screens? What OS are you using? What device is it? What language are you writing in?
Sep 10 '09 #4
I am writting in C#.
and my mean that I have two forms. How I hide form1 and how to display form2 while form2.show property is not working in Windows Mobile 6.
So now can you help me.
Sep 11 '09 #5
markmcgookin
648 Expert 512MB
First of all Form.Show(); is a method not a property, so make sure you are putting () after the .Show.

You need to create an instance of the form

Expand|Select|Wrap|Line Numbers
  1.  frmYourForm form = new frmYourForm(); 
then you need to call it's .show method

Expand|Select|Wrap|Line Numbers
  1.  form.show(); 
Is this what you have tried? Are there any SPECIFIC errors?
Sep 11 '09 #6
Thank You Dear, Thats it what I am Looking for.
Thank you very much for helping me in my other problems too.
Sep 11 '09 #7
markmcgookin
648 Expert 512MB
No problem, that's what we are here for :)
Sep 11 '09 #8
Hey Mark, Can you tell me that how can I take a value of one form to another.
my mean for this purpose there are a lots of technique in ASP.Net where from I. but ASP.Net is a Web development Area.

I had worked in VB6 too. I gives us the facility of Modules in which we can put global variables.

Whats in C# for. I have a variable and I need its value on the other form How can I do it?
Sep 11 '09 #9
markmcgookin
648 Expert 512MB
In the constructor for your 2nd form (the bit at the top that is the same as the file name

i.e.
Expand|Select|Wrap|Line Numbers
  1. public frmMyForm()
you need to allow it to accept an argument/variable.

so it would need changed to

Expand|Select|Wrap|Line Numbers
  1. public frmMyForm(string _yourVariable)
then when you create the form in your first form you should pass it in

Expand|Select|Wrap|Line Numbers
  1.  frmMyForm newForm = new frmMyForm(strVariable) 
then it will be passed into your new form
Sep 11 '09 #10

Post your reply

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

Similar topics

3 posts views Thread by John Hrusovszky | last post: by
3 posts views Thread by Jukka K. Korpela | last post: by
47 posts views Thread by Neal | last post: by
6 posts views Thread by Darian | last post: by
12 posts views Thread by DanG | last post: by
reply views Thread by A. User | last post: by
33 posts views Thread by Adeel Hasan Akbari | last post: by
reply views Thread by Saiars | last post: by

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.