By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,701 Members | 1,782 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,701 IT Pros & Developers. It's quick & easy.

How to remove MDIForm without border ?

P: 2
Hi
I want to remove MDIForm without border .You can move the
MDIForm with click its border,however when u select the border as none, u will not be able to move the MDIForm.
Does anyone know how to solve this problem ?

Thanks
rick
Aug 30 '10 #1
Share this Question
Share on Google+
3 Replies


MrMancunian
Expert 100+
P: 569
I assume it's a childform, otherwise you could have just called the close() method of the form. Best thing to do is to loop through the children of your MdiParent form. Something like this:
Expand|Select|Wrap|Line Numbers
  1. Dim intNumberOfForms As Integer = Me.MdiChildren.Length
  2. Select Case intNumberOfForms
  3.   Case Is > 0
  4.     Dim a As Integer
  5.     For a = 0 To intNumberOfForms - 1
  6.       Me.MdiChildren(0).Close()
  7.     Next
  8. End Select
Steven
Aug 30 '10 #2

P: 2
Thank u MrMancunian
I think you misunderstand me. What I want is to move the MDIParent Form that without border.Let me explain it. It is easy to move the MDIForm just need to click the menu bar and hold .However if you choose the form border style as none in the properties the MDIparent form will has no border. What I want to know is how to move the MDIForm in this situation.
I have already known how to move the normal form without border.for the MDI I tried several methods but still have not found any solution.
Do i explain clearly ?MrMancunian do you know how to solve
this problem ?Pls tell me if I do not explain clearly.

Thx again

Rickllary
Aug 30 '10 #3

MrMancunian
Expert 100+
P: 569
Okay, then I misunderstood indeed. I think the only way to move a form around if there are no borders is to change the size/position properties by code. I'm not sure how to do that as I have no experience with it.

A good point to start would be the question if the fact that the form is an MDI-Parent is relevant. A form (no matter what) can be moved around by changing the top and left position. Is that what you're looking for? If not, please elaborate and perhaps, upload a screenshot to illustrate the situation.

Steven
Aug 31 '10 #4

Post your reply

Sign in to post your reply or Sign up for a free account.