14 Replies - 816 Views - Last Post: 02 December 2011 - 06:46 PM Rate Topic: -----

#1 Neph1x  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 110
  • Joined: 19-November 11

how to control our own designed gui

Posted 02 December 2011 - 05:48 PM

I designed a design for my form and now I wonder how can I move a window? I do not want to be static this form.
Is This A Good Question/Topic? 0
  • +

Replies To: how to control our own designed gui

#2 smohd  Icon User is offline

  • Critical Section
  • member icon


Reputation: 1817
  • View blog
  • Posts: 4,625
  • Joined: 14-March 10

Re: how to control our own designed gui

Posted 02 December 2011 - 05:53 PM

What do you mean by moving a form? If someone drag it or just move by it self?
Have you tried to change the location of the form?
Was This Post Helpful? 1
  • +
  • -

#3 Neph1x  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 110
  • Joined: 19-November 11

Re: how to control our own designed gui

Posted 02 December 2011 - 05:57 PM

View Postsmohd, on 02 December 2011 - 05:53 PM, said:

What do you mean by moving a form? If someone drag it or just move by it self?
Have you tried to change the location of the form?

Normally you click and you move a window, as well as other software.
Was This Post Helpful? 0
  • +
  • -

#4 smohd  Icon User is offline

  • Critical Section
  • member icon


Reputation: 1817
  • View blog
  • Posts: 4,625
  • Joined: 14-March 10

Re: how to control our own designed gui

Posted 02 December 2011 - 06:00 PM

Normally you can move a form by drag the form and move the mouse to the place he want s to move the form. But if your form is border-less, then you can look at this tutorial.
Was This Post Helpful? 1
  • +
  • -

#5 Neph1x  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 110
  • Joined: 19-November 11

Re: how to control our own designed gui

Posted 02 December 2011 - 06:11 PM

View Postsmohd, on 02 December 2011 - 06:00 PM, said:

Normally you can move a form by drag the form and move the mouse to the place he want s to move the form. But if your form is border-less, then you can look at this tutorial.

I think the same as when you open a folder and you move the window left,right,up and down, I want my software has that option.

This is my first time I have designing my form, and i need a help.
Was This Post Helpful? 0
  • +
  • -

#6 smohd  Icon User is offline

  • Critical Section
  • member icon


Reputation: 1817
  • View blog
  • Posts: 4,625
  • Joined: 14-March 10

Re: how to control our own designed gui

Posted 02 December 2011 - 06:16 PM

You dont need to do that by yourself, when you create a form, it has those properties with it. Is yours not working?
Was This Post Helpful? 1
  • +
  • -

#7 Neph1x  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 110
  • Joined: 19-November 11

Re: how to control our own designed gui

Posted 02 December 2011 - 06:19 PM

View Postsmohd, on 02 December 2011 - 06:16 PM, said:

You dont need to do that by yourself, when you create a form, it has those properties with it. Is yours not working?

i dont have those properties because i design my software by my own and i don't use vb.net standard design.
like this: http://zerocode.byet...81283374473.jpg
Was This Post Helpful? 0
  • +
  • -

#8 smohd  Icon User is offline

  • Critical Section
  • member icon


Reputation: 1817
  • View blog
  • Posts: 4,625
  • Joined: 14-March 10

Re: how to control our own designed gui

Posted 02 December 2011 - 06:25 PM

Quote

i don't use vb.net standard design.

What design are you using? WPF or what?
And are you sure that you cant move by dragging it? Then you have to follow the tutorial to make your own moving capabilities like what we have in tutorial above
Was This Post Helpful? 0
  • +
  • -

#9 Neph1x  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 110
  • Joined: 19-November 11

Re: how to control our own designed gui

Posted 02 December 2011 - 06:29 PM

View Postsmohd, on 02 December 2011 - 06:25 PM, said:

Quote

i don't use vb.net standard design.

What design are you using? WPF or what?
And are you sure that you cant move by dragging it? Then you have to follow the tutorial to make your own moving capabilities like what we have in tutorial above

FormBorderStyle: None
and i set on this my design as background image and now i want to move this.
Was This Post Helpful? 0
  • +
  • -

#10 trevster344  Icon User is offline

  • The Peasant
  • member icon

Reputation: 224
  • View blog
  • Posts: 1,501
  • Joined: 16-March 11

Re: how to control our own designed gui

Posted 02 December 2011 - 06:36 PM

That's exactly what Smohd is talking about. Follow the tutorial. IF you are new to vb.net this isn't a simple task for beginners, if you ask me.
Was This Post Helpful? 0
  • +
  • -

#11 Neph1x  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 110
  • Joined: 19-November 11

Re: how to control our own designed gui

Posted 02 December 2011 - 06:37 PM

View Posttrevster344, on 02 December 2011 - 06:36 PM, said:

That's exactly what Smohd is talking about. Follow the tutorial. IF you are new to vb.net this isn't a simple task for beginners, if you ask me.

i'm not new, but this is my first time to work my own design.
Was This Post Helpful? 0
  • +
  • -

#12 smohd  Icon User is offline

  • Critical Section
  • member icon


Reputation: 1817
  • View blog
  • Posts: 4,625
  • Joined: 14-March 10

Re: how to control our own designed gui

Posted 02 December 2011 - 06:38 PM

SO you have FormBorderStyle: None and so your form has no border thus cant be moved?
Then what you have to do is to deal with mouse events on the form:
- When mouse down, get the current position of the form
- When mouse moves, start changing the position of the form according to the movement.
- And when mouse up, we are done now set the location as the forms location and stop responding to the mouse move.

That is all you have to do and has been explained in the tutorial,did you read it?
Was This Post Helpful? 1
  • +
  • -

#13 trevster344  Icon User is offline

  • The Peasant
  • member icon

Reputation: 224
  • View blog
  • Posts: 1,501
  • Joined: 16-March 11

Re: how to control our own designed gui

Posted 02 December 2011 - 06:42 PM

Rectangles can make this simpler.
Was This Post Helpful? 1
  • +
  • -

#14 Neph1x  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 110
  • Joined: 19-November 11

Re: how to control our own designed gui

Posted 02 December 2011 - 06:43 PM

View Posttrevster344, on 02 December 2011 - 06:42 PM, said:

Rectangles can make this simpler.

Done, thank you very much!
I appreciate it.
Was This Post Helpful? 0
  • +
  • -

#15 smohd  Icon User is offline

  • Critical Section
  • member icon


Reputation: 1817
  • View blog
  • Posts: 4,625
  • Joined: 14-March 10

Re: how to control our own designed gui

Posted 02 December 2011 - 06:46 PM

Glad we could help :)
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1