Results 1 to 9 of 9

Thread: Title Bar???

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Beirut, Lebanon
    Posts
    318

    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?

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Beirut, Lebanon
    Posts
    318
    People please I need this urgent, can it or can it not be done?

  3. #3
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530
    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.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Beirut, Lebanon
    Posts
    318
    Nope,

    I need to hide the title bar of the whole Microsoft Access Application.


    Thank you very much.

  5. #5
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    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)

  6. #6
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530
    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

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Beirut, Lebanon
    Posts
    318
    thank you very much, I got the code.

  8. #8
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530
    Gush, did you get some code that works to remove the titlebar from access?

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Beirut, Lebanon
    Posts
    318
    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
  •  



Click Here to Expand Forum to Full Width