Results 1 to 5 of 5

Thread: readonly checkbox in common dialog

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Location
    California, USA
    Posts
    111

    Question

    In the common dialog, how do you retrieve the value of the checkbox for readonly? Also, where would I find information about what flags are available? Thanks.

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    commondialog1.flags = cdlOFNReadOnly

    to get information if you are using VB6 you put the control on the form, select it and hit F1
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Location
    California, USA
    Posts
    111

    Question

    If _______=unchecked then
    msgbox "Not in readonly mode"
    elseif ______=checked then
    msgbox "Readonly mode"
    end if

    What would I put in ________, which is the name for the readonly checkbox in the common dialog for open. Thanks.

  4. #4
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Code:
    If CommonDialog1.Flags <> cdlOFNReadOnly Then
       MsgBox "Not in readonly mode"
    ElseIf CommonDialog1.Flags = cdlOFNReadOnly Then
        MsgBox "Readonly mode"
    End If
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Location
    California, USA
    Posts
    111

    Question

    The code from above doesn't work right. If the flag was set and the checkbox was changed during the open, it doesn't reflect the change. Need more help. Thanks.

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