473,599 Members | 3,118 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OpenFile dialog hangs

I have an app that uses the OpenFile Dialog class. When I invoke the ShowDialog method, the hourglass appears and just stays. The dialog window never opens. I created a test form with an OpenFileDialog object in a new app, and it works fine. I then added that test form to the original project, and it no longer works. So far, the application is fairly simple, it contains a treeview and a listview and some data access components. Has anyone ecer heard of this problem?
Nov 15 '05 #1
4 6224
Netork share?

"dave" <an*******@disc ussions.microso ft.com> wrote in message
news:5D******** *************** ***********@mic rosoft.com...
I have an app that uses the OpenFile Dialog class. When I invoke the

ShowDialog method, the hourglass appears and just stays. The dialog window
never opens. I created a test form with an OpenFileDialog object in a new
app, and it works fine. I then added that test form to the original project,
and it no longer works. So far, the application is fairly simple, it
contains a treeview and a listview and some data access components. Has
anyone ecer heard of this problem?
Nov 15 '05 #2
Here is some more info. If I do not open an SQL connection, and run the app without debugging, the dialog opens. However, if I open a SQL connection prior to showing the dialog, even if I close the connection right away, the dialog hangs. It also hangs if I run under debug whether or not I open the connection. I created a test app which only contains the openfile dialog, the sql connection and a button. I cut and paste the connection string form my original app, and the dialog worked fine even with an open connection. I then made a copy of the original app and deleted everything from it except the dialog, the sql connection and a button. It looks identical to the working test app I created, but the open file dialog still does not work. I am totally confused. I am going to start cutting and pasting code from the old app into the working test app and see what happens.

----- dave wrote: -----

I have an app that uses the OpenFile Dialog class. When I invoke the ShowDialog method, the hourglass appears and just stays. The dialog window never opens. I created a test form with an OpenFileDialog object in a new app, and it works fine. I then added that test form to the original project, and it no longer works. So far, the application is fairly simple, it contains a treeview and a listview and some data access components. Has anyone ecer heard of this problem?
Nov 15 '05 #3
When you created the project, did you specify that it was a windows forms
project, or a control, or a console application, etc...
It may be that you created the second application using a different
selection than you used the first time, and that VS set up different
settings for you.

Just a hunch,
Good Luck,
--- Nick

"Dave" <an*******@disc ussions.microso ft.com> wrote in message
news:4C******** *************** ***********@mic rosoft.com...
Here is some more info. If I do not open an SQL connection, and run the app without debugging, the dialog opens. However, if I open a SQL
connection prior to showing the dialog, even if I close the connection right
away, the dialog hangs. It also hangs if I run under debug whether or not I
open the connection. I created a test app which only contains the openfile
dialog, the sql connection and a button. I cut and paste the connection
string form my original app, and the dialog worked fine even with an open
connection. I then made a copy of the original app and deleted everything
from it except the dialog, the sql connection and a button. It looks
identical to the working test app I created, but the open file dialog still
does not work. I am totally confused. I am going to start cutting and
pasting code from the old app into the working test app and see what
happens.
----- dave wrote: -----

I have an app that uses the OpenFile Dialog class. When I invoke the

ShowDialog method, the hourglass appears and just stays. The dialog window
never opens. I created a test form with an OpenFileDialog object in a new
app, and it works fine. I then added that test form to the original project,
and it no longer works. So far, the application is fairly simple, it
contains a treeview and a listview and some data access components. Has
anyone ecer heard of this problem?
Nov 15 '05 #4
Thanks for the reply. I don't think I did that. Anyhow, I
cut and pasted the code from the non-working app into my
test app, one section at a time. Now it works OK. However,
when I copied the entire thing over into the test app, it
didn't work. I am not sure what is going on, but now that
it works, so I won't worry about it.
-----Original Message-----
When you created the project, did you specify that it was a windows formsproject, or a control, or a console application, etc...
It may be that you created the second application using a differentselection than you used the first time, and that VS set up differentsettings for you.

Just a hunch,
Good Luck,
--- Nick

"Dave" <an*******@disc ussions.microso ft.com> wrote in messagenews:4C******* *************** ************@mi crosoft.com...
Here is some more info. If I do not open an SQL
connection, and run theapp without debugging, the dialog opens. However, if I open a SQLconnection prior to showing the dialog, even if I close the connection rightaway, the dialog hangs. It also hangs if I run under debug whether or not Iopen the connection. I created a test app which only contains the openfiledialog, the sql connection and a button. I cut and paste the connectionstring form my original app, and the dialog worked fine even with an openconnection. I then made a copy of the original app and deleted everythingfrom it except the dialog, the sql connection and a button. It looksidentical to the working test app I created, but the open file dialog stilldoes not work. I am totally confused. I am going to start cutting andpasting code from the old app into the working test app and see whathappens.

----- dave wrote: -----

I have an app that uses the OpenFile Dialog
class. When I invoke theShowDialog method, the hourglass appears and just stays. The dialog windownever opens. I created a test form with an OpenFileDialog object in a newapp, and it works fine. I then added that test form to the original project,and it no longer works. So far, the application is fairly simple, itcontains a treeview and a listview and some data access components. Hasanyone ecer heard of this problem?
.

Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3477
by: Michael | last post by:
Hello Currently I'm migrating an applet from Java 1.1 to 1.3. Targetplattform: Microsoft Internet Explorer 5.x with Sun's Java VM 1.3.1 Problem: The attached applet works fine with the Microsoft VM. But when I use Suns' VM the applet hangs after opening the dialog. And you have to
1
1300
by: Mr Gordonz | last post by:
Hi All, I am trying to replicate the functionality of the HTML FileField control (<INPUT type="file">). It does everything I need but for one thing: I can't programmatically set the value of the FileField control - all the reading I have done says that it is impossible for security reasons. So, I want to use a standard Server controls: a TextBox control and a Button control, and replicate the functionality of the FileField HTML...
1
1375
by: Fabiano | last post by:
Please, i need to create an webpage that allows user to upload a file to server. I looked up at webcontrols that allow something like this but didn't found anything, just the HTML Control. I thought i could create my own usercontrol, but i have no idea how can i show the OpenFile dialog box from within a web form. Anyone can help me?
3
1359
by: Me | last post by:
I posted on this about two months ago and got no response. I am creating an app in which the user needs to select a file somehow and then have its full path put into a text box (or label). I am using the Open File Dilog Bo to do this. The problem is that the file they need to select is an execitable (exe). When theyhighlight it and then select the Open button it attempts to run the program. This only seems to happen in Windows 9x but may be...
1
1246
by: Sean Campbell | last post by:
Hi all! I have a problem with the OpenFile dialog that I use in my program. I created a Browse button to allow for the selection of a text file that is processed by my program. The Browse button works perfectly when the .EXE is on my station. If I copy the .EXE to a network drive, the Browse button stops functioning. I have never seen this happen before. I created my program with VB 2005. Is this a known problem or did I code
0
2039
by: dieter grobler | last post by:
Hi there, I wanted to know if there is a way to specify the default location the OpenFileDialog shows when the browse button is pressed on the FileUpload Control. i.e "c:\program files\". I know this can be done for the win forms version of the dialog box. I understand that is displays the client side folder structure and not the server, and I know for a fact that the default location exists. What I need to do is intergrate my app...
3
2171
by: Grumman | last post by:
For various reasons, I've found myself in the position of needing to automate the operation of a small VB6 application from an external process. After a bit of searching, I found watsup, and it has fit the bill nicely, except for one problem. Roughly, I have a script that fills in a field, sets a combobox, then clicks a button via clickButton. At this point, the python interpreter hangs. The only thing I've been able to identify as...
4
4233
by: Marco Trapanese | last post by:
Hi! I show an OpenFile Dialog with: dlgOpen.ShowDialog() but I'd like to change the default view among Detail, Thumbnail, Icons, ect. Users change the view mode by this button: http://i15.tinypic.com/48nsol1.jpg I want to do the same from code. How should I do?
0
1139
by: jaeden99 | last post by:
I have created a datagrid filled with information from the database. When a user clicks on a particular cell (this cell contains drive letter and file name), I would like to be able to open the file. I have the datagrid cell selection code complete however when the openfiledialog appears, the filename showing in the filename box is openfiledialog1. How do I get the filename to be the actual selection from the datagrid cell. See code below: ...
0
7992
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7904
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8398
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8051
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8267
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6725
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5850
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
1505
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1250
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.