Advertisement

12.17.2006 at 08:53AM PST, ID: 22095965
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.4

Dialog Box set to thumbnail as default help

Asked by pgoulet_fsac_info in Microsoft Access Database

Tags: ,

Hello Experts

I am allowing users to put thier own pictures on an image control of a form.  They browse to the image, click it, and the image is stored in a folder and displayed on the image control.  Works great!  I would like for the default to be thumbnail rather than list.  Can anyone help.  I have no idea how to tie the two samples that I have identified or even if they will work together.  I found ONE reference out on the web and sadly DH lost me in the process, and I am unable to bring the referance up again.  Any takers out there.


I am currently using Ken Getz
Call Windows File Open/Save Dialog box found at http://www.mvps.org/access/ ...

Recently located this little gem of Bryan Stafford.
Code found on http://www.mvps.org/vbvision/grouped_demos.htm#Common_Dialogs
Attribute VB_Name = "MDialogHook"
  Option Explicit
  ' demo project showing how to call the GetSaveFileName and GetOpenFileName API functions
  ' by Bryan Stafford of New Vision Software® - newvision@mvps.org
  ' this demo is released into the public domain "as is" without
  ' warranty or guaranty of any kind.  In other words, use at
  ' your own risk.


  ' this demo also shows how the view type for the file list can be set before the
  ' dialog is shown by sending the undocumented windows messages discovered by Brad Martinez
  ' (http://www.mvps.org/btmtz/index.html).  THANKS Brad!  you can find more information
  ' in Brad's listview demo on his site.
 
  '***********************************************************************
  ' MESSAGES PROVIDED BY Brad Martinez
  ' view menu command IDs fall within the FCIDM_SHVIEWFIRST/LAST
  ' range defined in ShlObj.h:
  Public Const FCIDM_SHVIEW_LARGEICON As Long = &H7029&   ' 28713
  Public Const FCIDM_SHVIEW_SMALLICON As Long = &H702A&   ' 28714
  Public Const FCIDM_SHVIEW_LIST As Long = &H702B&        ' 28715
  Public Const FCIDM_SHVIEW_REPORT As Long = &H702C&      ' 28716
  Public Const FCIDM_SHVIEW_THUMBNAIL As Long = &H702D&   ' 28717
  Public Const FCIDM_SHVIEW_TILE As Long = &H702E&        ' 28718
  '***********************************************************************
etc....

My code snipet...  I am thinking that I need to call something on Bryan software, but I am really lost at trying to make them work together.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 Dim strFileLocation As String
    strFileLocation = CreateObject("WScript.Shell").SpecialFolders("Desktop") & "\Facilities\"
   
    If "" & Dir(strFileLocation & strDocName) = "" Then
        If Me.tglDelImage = -1 Then MsgBox "Please do NOT delete the default   NO-PHOTO.JPG   image. " _
        & Chr(13) & Chr(13) & "Select Cancel to CANCEL if you have changed your mind"
      Dim strFilter As String
      Dim strInputFileName As String
      Dim mystrFilter As String
        strFilter = ahtAddFilterItem(strFilter, "JPG Files (*.JPG)", "*.jpg")
        strInputFileName = ahtCommonFileOpenSave( _
                Filter:=strFilter, OpenFile:=True, _
                DialogTitle:="Please select an input file...", _
                Flags:=ahtOFN_HIDEREADONLY)
        If Len(strInputFileName) Then
          FileCopy strInputFileName, strFileLocation & strDocName  'strInputFileName  = image to be copied and saved selected from dialog
           
            'Load the image to the screen and give positive feedback.
           
        strLength = Len(strDocName)
        char = Mid(strDocName, Len(strDocName) - 4, 1)
        imgSeq = "img_" & char 'Set the location name
        Me(imgSeq).Picture = strFileLocation & strDocName  'Yes, show match in Directory
        Else
          ' user hit cancel...
        End If
     End if
++++++++++++++++++++++++++++++++

Thank you.

Paul
Start Free Trial
 
Keywords: Dialog Box set to thumbnail as default h…
 
Loading Advertisement...
 
[+][-]12.17.2006 at 09:43AM PST, ID: 18155031

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.17.2006 at 11:53AM PST, ID: 18155340

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.17.2006 at 07:35PM PST, ID: 18156509

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.17.2006 at 08:42PM PST, ID: 18156668

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.18.2006 at 12:18AM PST, ID: 18157120

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.18.2006 at 01:14AM PST, ID: 18157273

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.18.2006 at 02:31AM PST, ID: 18157517

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.18.2006 at 11:22AM PST, ID: 18160775

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.18.2006 at 12:42PM PST, ID: 18161388

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.03.2007 at 02:31AM PST, ID: 18234066

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.06.2007 at 01:40PM PST, ID: 18259493

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.20.2007 at 05:40PM PDT, ID: 19536486

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]07.24.2007 at 07:59PM PDT, ID: 19562183

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Access Database
Tags: thumbnail, getopenfilename
Sign Up Now!
Solution Provided By: Computer101
Participating Experts: 4
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32