Re:Displaying a form window from its (width,0) to (0,0)
-
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.
-
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.
-
you just go to the properties of the form and set the localize = true with the location 0,0 .
Assaf
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).
-
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).
-
write the code in ur form this.location = new point(x1+width,y1) Is it solve ur issue? Thanks
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).
-
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).
-
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
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.
-
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.
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
-
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
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