Results 1 to 7 of 7
  1. #1
    AndrewAfresh is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2006
    Posts
    21

    MsgBox strange/missing icon

    I have the following line:


    MsgBox "Imported!", vbInformation + vbSystemModal, "Test title"
    And it produces the message box shown in the attachment. Does anyone know why there is a white square icon at top-left? Can I remove this or even replace it with a different icon? If I omit vbSystemModal, the white square disappears.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I believe the +vbSystemModal is not necessary and the default behavior and can be left off. If not then try vbApplicationModal instead.

  3. #3
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    Why not simple use vbOkOnly if you only want to display an Ok button.

    David

  4. #4
    AndrewAfresh is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2006
    Posts
    21
    As suggested I changed the line to:
    MsgBox "Imported!", vbInformation + vbSystemModal+vbOKOnly, "Test title"
    And the strange white square still appears at the top left of the message box (if using vbSystemModal).

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Do you get the results you need with:
    MsgBox "Imported!", vbInformation + vbOKOnly, "Test title"
    ...is not, what else is required?

  6. #6
    AndrewAfresh is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2006
    Posts
    21
    If I use:
    MsgBox "Imported!", vbInformation + vbOKOnly, "Test title"
    ...the MsgBox looks OK but doesn't get focus. I want the MsgBox to get the focus even if i am in another application. However, whenever I use vbSystemModal, I get the unwanted white square at top-left. I tried replacing vbSystemModal with 4096, the constant's value, but it still happens.

  7. #7
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    OK, I now see and understand what you are talking about. That issue exists in AccessXP and Access 2007 as well. It may be by design but I don't know. When you use the vbSystemModal constant does it work as expected? Will it grab the focus even when you are in another application? You may have to just live with it.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 08-11-2009, 02:21 PM
  2. Alterations to MsgBox command
    By Robert M in forum Programming
    Replies: 4
    Last Post: 06-30-2009, 02:14 PM
  3. pass a variable to the MsgBox function
    By 3dmgirl in forum Programming
    Replies: 2
    Last Post: 04-19-2007, 07:14 AM
  4. Replies: 0
    Last Post: 07-24-2006, 06:31 AM
  5. Security icon created on desktop !!!
    By wasim_sono in forum Security
    Replies: 1
    Last Post: 02-07-2006, 09:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums