473,378 Members | 1,384 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

How to remove MDIForm without border ?

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
3 1787
MrMancunian
569 Expert 512MB
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
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
569 Expert 512MB
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

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

Similar topics

10
by: Dave | last post by:
Hi, I have a centred table 700px wide. I'd like to use CSS instead of a table. Is the following the best, relatively standards compliant way for a non-expert to have content centred that will be...
3
by: Bob Dankert | last post by:
I am trying to remove an EventLog I accidentally created (typo) without having to write a program just to delete the log. Is there an easy way in windows to do the same as EventLog.Delete would...
6
by: peter hansen | last post by:
By changing the backgroundimage of a form into a picture and then enable the TransparencyColor you can make a form as a cirkel etc (the form has the same 'form' as the picture has). I have then...
2
by: Asterbing | last post by:
Hi all. I'm trying and don't succeed to include an HTML page into another without any border nor visible scroll-bar. Even if I would like something which will work under Netscape too, at this...
17
by: michel.ank | last post by:
Hi, I'm using the class PrintLines and my last record of page aren't with the borders. Somebody can help me? Thanks,
7
by: fuchsia555 | last post by:
hi how can i remove the dashed border that appear when clicking on sites's header button ? i think it's css issue any help please ?
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.