Solved

MDI parent border

Posted on 2004-10-20
8
704 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
 

Author Comment

by:f_asmaa
ID: 12367111
OK, how to remove this border? Have you direct solution?
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

759 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now