Solved

MDI parent border

Posted on 2004-10-20
8
708 Views
Last Modified: 2010-05-18
In VB.NET I set the property
IsMDIParent=true
FormBorderStyle=none
But the Form still has 2 pixels border. How can I remove it?
0
Comment
Question by:f_asmaa
  • 4
  • 3
8 Comments
 
LVL 28

Expert Comment

by:mmarinov
ID: 12367009
Hi f_asmaa,

you have to use

IsMDIContainer = True
FormBorderStyle = FormBorderStyle.None

and it works as a charm

Regards!
B..M
0
 

Author Comment

by:f_asmaa
ID: 12367030
Yes, These properties are sat but I still have 2 pixels border. Please check
0
 
LVL 28

Expert Comment

by:mmarinov
ID: 12367059
f_asmaa,

set to the form a mainmenu control, keep these settings and start the application - you will see that over the menu control there is no border. the border you see is not on the form but inside it

B..M
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:f_asmaa
ID: 12367111
OK, how to remove this border? Have you direct solution?
0
 
LVL 28

Expert Comment

by:mmarinov
ID: 12367122
f_asmaa,

as i know you can not remove it if the form is mdicontainer, sorry

B..M
0
 

Author Comment

by:f_asmaa
ID: 12367157
Don't worry

In order to hide this border. I set the left=-2 and top=-2, I also increased the size by 4 pixels for both width and height. (That is because I need to display a picture as background). But I faced another problem, the MDI parent form size increases more than required if you set th left and top to negative values, that causes the background picture to partially repeat itself. Anyway I found a solution for his problem but I want to report this as a bug.
0
 
LVL 28

Expert Comment

by:mmarinov
ID: 12367195
f_asmaa,

i see, good luck    

B..M
0
 
LVL 1

Accepted Solution

by:
names earned 500 total points
ID: 12368127
try Me.DockPadding.All = -2
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question