what's the code for changing Screen?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kapil Choubisa
    New Member
    • Sep 2009
    • 47

    what's the code for changing Screen?

    I want to move from one Screen to another screen. Can you tell me about it.
  • markmcgookin
    Recognized Expert Contributor
    • Dec 2006
    • 648

    #2
    Probably...

    (Hint: More information helps with responces)

    Comment

    • Kapil Choubisa
      New Member
      • Sep 2009
      • 47

      #3
      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

      Comment

      • markmcgookin
        Recognized Expert Contributor
        • Dec 2006
        • 648

        #4
        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?

        Comment

        • Kapil Choubisa
          New Member
          • Sep 2009
          • 47

          #5
          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.

          Comment

          • markmcgookin
            Recognized Expert Contributor
            • Dec 2006
            • 648

            #6
            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

            Code:
             frmYourForm form = new frmYourForm();
            then you need to call it's .show method

            Code:
             form.show();
            Is this what you have tried? Are there any SPECIFIC errors?

            Comment

            • Kapil Choubisa
              New Member
              • Sep 2009
              • 47

              #7
              Thank You Dear, Thats it what I am Looking for.
              Thank you very much for helping me in my other problems too.

              Comment

              • markmcgookin
                Recognized Expert Contributor
                • Dec 2006
                • 648

                #8
                No problem, that's what we are here for :)

                Comment

                • Kapil Choubisa
                  New Member
                  • Sep 2009
                  • 47

                  #9
                  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?

                  Comment

                  • markmcgookin
                    Recognized Expert Contributor
                    • Dec 2006
                    • 648

                    #10
                    In the constructor for your 2nd form (the bit at the top that is the same as the file name

                    i.e.
                    Code:
                    public frmMyForm()
                    you need to allow it to accept an argument/variable.

                    so it would need changed to

                    Code:
                    public frmMyForm(string _yourVariable)
                    then when you create the form in your first form you should pass it in

                    Code:
                     frmMyForm newForm = new frmMyForm(strVariable)
                    then it will be passed into your new form

                    Comment

                    Working...