Solved

MDI parent border

Posted on 2004-10-20
8
706 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

777 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