Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

No Border

Posted on 2003-11-18
3
Medium Priority
?
274 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 80 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

927 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