Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Re:Displaying a form window from its (width,0) to (0,0)

Re:Displaying a form window from its (width,0) to (0,0)

Scheduled Pinned Locked Moved C#
9 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RameshwerE
    wrote on last edited by
    #1

    Can anybody give me some idea on displaying a form from its right most position to left most.Just as reverse to its normal display.Here i want to use a timer while displaying the form.

    A 1 Reply Last reply
    0
    • R RameshwerE

      Can anybody give me some idea on displaying a form from its right most position to left most.Just as reverse to its normal display.Here i want to use a timer while displaying the form.

      A Offline
      A Offline
      Assaf82
      wrote on last edited by
      #2

      you just go to the properties of the form and set the localize = true with the location 0,0 .

      Assaf

      R 1 Reply Last reply
      0
      • A Assaf82

        you just go to the properties of the form and set the localize = true with the location 0,0 .

        Assaf

        R Offline
        R Offline
        RameshwerE
        wrote on last edited by
        #3

        Hi assaf, Actually i didn't explained my question clearly.I have display a form from a specified pt lets say(x1+width,y1) to(x1,y1).

        L 1 Reply Last reply
        0
        • R RameshwerE

          Hi assaf, Actually i didn't explained my question clearly.I have display a form from a specified pt lets say(x1+width,y1) to(x1,y1).

          L Offline
          L Offline
          leoiser
          wrote on last edited by
          #4

          write the code in ur form this.location = new point(x1+width,y1) Is it solve ur issue? Thanks

          R 1 Reply Last reply
          0
          • L leoiser

            write the code in ur form this.location = new point(x1+width,y1) Is it solve ur issue? Thanks

            R Offline
            R Offline
            RameshwerE
            wrote on last edited by
            #5

            It is not correct solution to my issue.Otherwise is it possible to display a form in reverse co-ordinates interms of its width? Lets say it starting location is (x1,y1) and its end pt should be (x1-width,y1-height).

            L 1 Reply Last reply
            0
            • R RameshwerE

              It is not correct solution to my issue.Otherwise is it possible to display a form in reverse co-ordinates interms of its width? Lets say it starting location is (x1,y1) and its end pt should be (x1-width,y1-height).

              L Offline
              L Offline
              leoiser
              wrote on last edited by
              #6

              I am not clear abt ur issue.I think u want to reverse the form.If u put a control at position (0,10) when u reverse it should display at (width,10). Is it? Can I know why u want to reverse the form?I think it is not possible..not sure. Thanks

              R 1 Reply Last reply
              0
              • L leoiser

                I am not clear abt ur issue.I think u want to reverse the form.If u put a control at position (0,10) when u reverse it should display at (width,10). Is it? Can I know why u want to reverse the form?I think it is not possible..not sure. Thanks

                R Offline
                R Offline
                RameshwerE
                wrote on last edited by
                #7

                I will give a brief about my requirement i have to expand a child window form to the left or right side of the parent window depending on the parent window location when i click on a button. And there should be more button on the child form when clicked ,then that window should be collapsed. Thanks for your assistance.

                L 1 Reply Last reply
                0
                • R RameshwerE

                  I will give a brief about my requirement i have to expand a child window form to the left or right side of the parent window depending on the parent window location when i click on a button. And there should be more button on the child form when clicked ,then that window should be collapsed. Thanks for your assistance.

                  L Offline
                  L Offline
                  leoiser
                  wrote on last edited by
                  #8

                  Now much clear I think.You can do this from your parent form.In parent (let assume form1)form's button (btnForm) click event call the form2 btnForm_Click() ********************** form2 f = new form2() f.size = new Size(100, 100); //set the size of ur form2 f.location= new point(this.Location.X + this.Width -100 , this.Location.Y ); // here 100 is width of form2:) f.Show(); hope this will work for u ... if not pls let me know.Thanks -- modified at 4:51 Friday 17th August, 2007

                  R 1 Reply Last reply
                  0
                  • L leoiser

                    Now much clear I think.You can do this from your parent form.In parent (let assume form1)form's button (btnForm) click event call the form2 btnForm_Click() ********************** form2 f = new form2() f.size = new Size(100, 100); //set the size of ur form2 f.location= new point(this.Location.X + this.Width -100 , this.Location.Y ); // here 100 is width of form2:) f.Show(); hope this will work for u ... if not pls let me know.Thanks -- modified at 4:51 Friday 17th August, 2007

                    R Offline
                    R Offline
                    RameshwerE
                    wrote on last edited by
                    #9

                    I am sorry to say this is not exactly wat i am looking for.It can display the form2 on the right hand side of the form1.But my requirment is to expand the form2 from its extream right to its staring location with the help of a timer control. Thanks

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups