Connecting Tech Pros Worldwide Forums | Help | Site Map

what's the code for changing Screen?

Member
 
Join Date: Sep 2009
Location: Sunvillage
Posts: 42
#1: Sep 10 '09
I want to move from one Screen to another screen. Can you tell me about it.

markmcgookin's Avatar
Moderator
 
Join Date: Dec 2006
Location: Northern Ireland / England
Posts: 546
#2: Sep 10 '09

re: what's the code for changing Screen?


Probably...

(Hint: More information helps with responces)
Member
 
Join Date: Sep 2009
Location: Sunvillage
Posts: 42
#3: Sep 10 '09

re: what's the code for changing Screen?


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
markmcgookin's Avatar
Moderator
 
Join Date: Dec 2006
Location: Northern Ireland / England
Posts: 546
#4: Sep 10 '09

re: what's the code for changing Screen?


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?
Member
 
Join Date: Sep 2009
Location: Sunvillage
Posts: 42
#5: Sep 11 '09

re: what's the code for changing Screen?


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.
markmcgookin's Avatar
Moderator
 
Join Date: Dec 2006
Location: Northern Ireland / England
Posts: 546
#6: Sep 11 '09

re: what's the code for changing Screen?


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?
Member
 
Join Date: Sep 2009
Location: Sunvillage
Posts: 42
#7: Sep 11 '09

re: what's the code for changing Screen?


Thank You Dear, Thats it what I am Looking for.
Thank you very much for helping me in my other problems too.
markmcgookin's Avatar
Moderator
 
Join Date: Dec 2006
Location: Northern Ireland / England
Posts: 546
#8: Sep 11 '09

re: what's the code for changing Screen?


No problem, that's what we are here for :)
Member
 
Join Date: Sep 2009
Location: Sunvillage
Posts: 42
#9: Sep 11 '09

re: what's the code for changing Screen?


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?
markmcgookin's Avatar
Moderator
 
Join Date: Dec 2006
Location: Northern Ireland / England
Posts: 546
#10: Sep 11 '09

re: what's the code for changing Screen?


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
Reply