|
-
May 29th, 2001, 02:11 AM
#1
Thread Starter
Hyperactive Member
Title Bar???
I'm using this code to maximize the Microsoft Access window:
Code:
cn = "OMain"
wn = "Microsoft Access"
Dim w As Long
w = FindWindow(ByVal cn, ByVal wn)
ShowWindow w, SW_SHOWMAXIMIZED
It's working fine.
Now I want (if can be done) to hide microsoft access's title bar.
Can we do that?
-
May 30th, 2001, 02:51 AM
#2
Thread Starter
Hyperactive Member
People please I need this urgent, can it or can it not be done?
-
May 30th, 2001, 03:36 AM
#3
Registered User
I think this is what you want. In access set the border style to none for the form you want to hide the title bar of.
-
May 30th, 2001, 04:08 AM
#4
Thread Starter
Hyperactive Member
Nope,
I need to hide the title bar of the whole Microsoft Access Application.
Thank you very much.
-
May 30th, 2001, 04:20 AM
#5
Fanatic Member
http://www.vbaccelerator.com/tips/vba0016.htm
This sample uses the Form's hWnd, but it can easily be replaced by Access's hWnd. Should work...
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
-
May 30th, 2001, 04:22 AM
#6
Registered User
In the absence of an alternative suggestion, you can always change the title from Access to your own custom title like so:
Code:
Function ChangeProperty(strPropName As String, varPropType As Variant, varPropValue As Variant) As Integer
Dim dbs As Object, prp As Variant
Const conPropNotFoundError = 3270
Set dbs = CurrentDb
On Error GoTo Change_Err
dbs.Properties(strPropName) = varPropValue
ChangeProperty = True
Change_Bye:
Exit Function
Change_Err:
If Err = conPropNotFoundError Then ' Property Not found.
Set prp = dbs.CreateProperty(strPropName, _
varPropType, varPropValue)
dbs.Properties.Append prp
Resume Next
Else
' Unknown error.
MsgBox "Change Property Error: " & Err.Number & ": " & Err.Description
ChangeProperty = False
Resume Change_Bye
End If
End Function
Used to change application's title:
Code:
ChangeProperty "AppTitle", dbText, "I hope your app has a cool title To put here" 'custom title
-
May 30th, 2001, 04:24 AM
#7
Thread Starter
Hyperactive Member
thank you very much, I got the code.
-
May 30th, 2001, 05:04 AM
#8
Registered User
Gush, did you get some code that works to remove the titlebar from access?
-
May 30th, 2001, 05:41 AM
#9
Thread Starter
Hyperactive Member
I tried the code from
http://www.vbaccelerator.com/tips/vba0016.htm
and it worked on a visual basic form, but not on Access,
any other suggestions would be appreciated.
Thank you all for your replies.
Gush.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|