Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

No Border

Posted on 2003-11-18
Last Modified: 2010-05-03
I need to make the BorderStyle = 0
no bored but I still need to be able to move the form and to be able when minimized to get down to the taskbar, not to the right...
last thing, how to change the border at runtime
if u put
Me.BorderStyle = 0
Me.BorderStyle = 1
'nothing is happening?!
how can it be done?
Question by:deathman5
LVL 26

Accepted Solution

EDDYKT earned 20 total points
ID: 9770993

Expert Comment

ID: 9773945
The following code enabled moving you mouse by clicking and dragging the form somewhere - useful for non-title-forms...

I think the BorderStyle Property can't be changed at runtime - no news for you...

' put that into a module
Declare Function ReleaseCapture Lib "User32" () As Long
Declare Function SendMessage Lib "User32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Public Const HTCAPTION = 2

'put this into you form's mousemove
 If Button = vbLeftButton Then '< change to vbrightbutton if you want to use right mouse button
  End If



Author Comment

ID: 9778479
thx everyone, sorry I wasnt able to split the points because they're only 20, sorry but I really dont have alot of pnts

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

790 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