Solved

No Border

Posted on 2003-11-18
3
267 Views
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
'OR
Me.BorderStyle = 1
'nothing is happening?!
how can it be done?
0
Comment
Question by:deathman5
3 Comments
 
LVL 26

Accepted Solution

by:
EDDYKT earned 20 total points
ID: 9770993
0
 

Expert Comment

by:sutt
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
'--------------module-code-------------------------------
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 WM_NCLBUTTONDOWN = &HA1
Public Const HTCAPTION = 2
'--------------------------------------------------------

'put this into you form's mousemove
'--------------Form_MouseMove-Code-----------------------
 If Button = vbLeftButton Then '< change to vbrightbutton if you want to use right mouse button
    ReleaseCapture
    SendMessage Me.hWnd, WM_NCLBUTTONDOWN, HTCAPTION, 0
  End If
'--------------------------------------------------------


regards

sutt
0
 

Author Comment

by:deathman5
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
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

705 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

20 Experts available now in Live!

Get 1:1 Help Now