473,386 Members | 1,674 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

File Dialog runs twice?

Dpot
30
I have a bound object frame that is being used to upload signatures. My problem is after I've already clicked the object frame and selected a signature to populate it, if I click anywhere else on the form the code runs again. After that second time I'm able to go about things normally. I tried setting the focus to another object but I keep getting an error. Any suggestions? The code is:

Expand|Select|Wrap|Line Numbers
  1. Dim dlgOpen As FileDialog
  2. Set dlgOpen = Application.FileDialog(msoFileDialogOpen)
  3. With dlgOpen
  4. .AllowMultiSelect = False
  5. .Filters.Clear
  6. .Filters.Add "Bitmap", "*.bmp", 1
  7. .InitialFileName = "C:\Sig\Untitled.bmp"
  8. .Show
  9. End With
  10. If dlgOpen.SelectedItems.Count = 1 Then
  11. ImageFrame.SourceDoc = dlgOpen.SelectedItems(1)
  12. ImageFrame.OLETypeAllowed = acOLELinked
  13. ImageFrame.Action = 1
  14. End If
  15. Set dlgOpen = Nothing
  16.  
Oct 13 '14 #1

✓ answered by Dpot

Nevermind! I figured it out. I had some old code clashing with it. Sorry to waste anyone's time!

1 1441
Dpot
30
Nevermind! I figured it out. I had some old code clashing with it. Sorry to waste anyone's time!
Oct 13 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: BillH | last post by:
I have an ASP page to download a CSV file using the following code Response.ContentType="text/plain Response.AddHeader "Content-disposition", "attachment; filename=Report.csv Response.Write...
2
by: Sharon | last post by:
Hi all. I have an aspx page that starts a download: Response.WriteFile(file). The problem is that the Open / Save dialog appears twice when i choose Open. Any idea why? 10x. Sharon.
2
by: Mattbooty | last post by:
Hello, Not sure if anyone else has seen this bug, but I have a form where the entire form is covered with a picturebox. The picturebox has a mouseup event. I also have an open file dialog for...
4
by: Vikram | last post by:
i am using following code in button click... of asp.net code behind page Response.Clear() 'clears the current output content from the buffer Response.AppendHeader("Content-Disposition", _ ...
4
by: Jonny | last post by:
Hello Group How do I open a Save File Dialog from an ASPX page behind a browse button? Any help would be fantastic!! I am using ASP.NET 1.1 using VB.NET as the coding language TIA
1
by: Josha | last post by:
I am very new to vb and Access and the like, please be gentle. I am trying to use the below script in Access 2000 to open a file picker dialog then display the selected text in a text box. A...
3
by: ApexData | last post by:
I am using code from the following links to establish a Browse File and Browse Folder dialog. http://www.mvps.org/access/api/api0001.htm http://www.mvps.org/access/api/api0002.htm This code...
1
by: mvlt | last post by:
I am trying to create a button and related text box that allows a user to click, open the standard Windows File Dialog Box and populate the text box with the selected file path, which will then be a...
8
by: Learner | last post by:
Hello, I converted a VS 2003 project to VS 2005. It works perfectly alright in VS 2003 but when I try running in VS 2005 I got strange thing going on. The code (my button click event ) runs...
3
mshmyob
by: mshmyob | last post by:
I am scratching my head over this. I have a combo box control where the afterupdate event or even the onchange event keeps runnning twice. Below is some simple code to emulate the problem I am...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.