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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

863 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

22 Experts available now in Live!

Get 1:1 Help Now