473,461 Members | 1,917 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

mdi client with out 3D boarder?

Is there any easy way to remove the 3D boarder around the MDI client area?
Nov 23 '05 #1
1 1749
"Brian Henry" <no****@nospam.com> wrote in message
news:u8**************@TK2MSFTNGP10.phx.gbl...
Is there any easy way to remove the 3D boarder around the MDI client area?


Modify the Designer Generated code to add a reference to the MDIClient
control:

\\\
Private WithEvents MDI As MDIClient
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Me.MDI = New MDIClient
...
Me.Controls.Add(Me.MDI)
...
End Sub
///

Then add a call to setwindowlong in the forms Layout method. (if you put it
in the Load method then where the 3d border was will not be redrawn when the
form is shown).

\\\
Private Sub Form_Layout(ByVal sender As Object, ByVal e As LayoutEventArgs)
Handles MyBase.Layout
SetWindowLong(MDI.Handle, GWL_EXSTYLE, IntPtr.Zero)
End Sub
///

These are the necessary declarations:

\\\
<System.Runtime.InteropServices.DllImport("user32" )> _
Private Shared Function SetWindowLong(ByVal hWnd As IntPtr, ByVal nIndex As
Int32, _
ByVal dwNewLong As IntPtr) As IntPtr
End Function

Private Const GWL_EXSTYLE As Int32 = (-20)
///

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Michael Rybak | last post by:
hi, everyone. I'm writing a 2-players game that should support network mode. I'm now testing it on 1 PC since I don't have 2. I directly use sockets, and both client and server do...
18
by: cjl | last post by:
Hey all: I know that it is silly in the age of Google to 'lose' something on the internet, but I recently checked out a project that had implemented a database with a subset of SQL in pure...
0
by: The Eeediot | last post by:
I've got a silly question for the group. I have an DataGrid that displays its information inside a panel... Well, actually it's a MultiPage object. I have a boader around the MultiPage object but...
3
by: Paul Welter | last post by:
I'm building a MDI application that has child forms. I'm trying to find a way to hide the inner boarder of the child frame area. Setting the FormBoarderStyle of the child form has no effect. ...
0
by: Brian Henry | last post by:
Why cant you in .NET 2.0 change the boarder on the progress bar? i thought before we had a choice between none, 3D and flat?
2
by: J Huntley Palmer | last post by:
I am having a horrific time integrating uw-imap's c-client for imap support in php. The problem is a whole bunch of "Text relocation remains referenced against symbol" errors during linking....
3
by: News | last post by:
img { border-color: WHITE; border: 10px; } I read that if I do the above there will be a boarder on all four sides of the IMAGE and that the boarder will be white. This does not work. What am...
2
by: nsaffary | last post by:
hi I hava a client/server program that run correctly when i run it in one computer(local) but when I run client on a one computer and run server run on another, connection does not stablish.(I set...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.