-
March 24th, 2008, 04:16 AM
#1
Folder containing our application created file popping up when opening the file
Our application has its own file type and when we double click on it the application opens the file. The problem is when the file is in a folder and when i double click on our file the application is working fine but the folder in which the file is present is popping up in front of the application. we want to disable this. Look forward for some replies
-
March 24th, 2008, 05:47 AM
#2
Re: Folder containing our application created file popping up when opening the file
How are you opening the file ? please show the code.
-
March 24th, 2008, 06:57 AM
#3
Re: Folder containing our application created file popping up when opening the file
by double clicking on the file
-
March 24th, 2008, 08:00 AM
#4
Re: Folder containing our application created file popping up when opening the file
:-) I mean how are you reading the file ? show the code where you pass the file path as arguments and the way you read it in your application.
-
March 24th, 2008, 12:19 PM
#5
Re: Folder containing our application created file popping up when opening the file
Check your registry entries (HKEY_CLASSES_ROOT/.yourextension) to see what else is associated with that file type besides your application.
-
March 25th, 2008, 01:12 AM
#6
Re: Folder containing our application created file popping up when opening the file
@Mike
Can you please tell me how to look for other application associated with the file type. This is what i found in my file extension in the data
"C:\Program Files\RIBA Enterprises\DefinIT\DefinIT.exe" "%L"
and the following in the command
K3pN36]FK97u?ar!9Jgs>REnF!Ee4m8+u%]59OR9+ "%L"
K3pN36]FK97u?ar!9Jgs>REnF!Ee4m8+u%]59OR9+
I am having the same problem when i click on the exe of our application.
-
March 25th, 2008, 01:22 AM
#7
Re: Folder containing our application created file popping up when opening the file
@MMH
The following is the code sample
This is how i am getting the file name from the zeroth argument
static void Main(string [] args)
{
openFileName = args[0];
}
and this is how i am passing it in the formloading event
OpenProject(openFileName);
where openproject takes the filename and establishes a connection to the database at that location.
PS: I am having the same problem when i click on the exe of the application.
-
March 25th, 2008, 02:41 AM
#8
Re: Folder containing our application created file popping up when opening the file
Originally Posted by devarakondark
@Mike
Can you please tell me how to look for other application associated with the file type. This is what i found in my file extension in the data
"C:\Program Files\RIBA Enterprises\DefinIT\DefinIT.exe" "%L"
and the following in the command
K3pN36]FK97u?ar!9Jgs>REnF!Ee4m8+u%]59OR9+ "%L"
K3pN36]FK97u?ar!9Jgs>REnF!Ee4m8+u%]59OR9+
I am having the same problem when i click on the exe of our application.
replace %L with %1...
Code:
"C:\Program Files\RIBA Enterprises\DefinIT\DefinIT.exe" "%1"
try this, i guess this will solve your problem
And as you mentioned, that you are having the same problem with the exe of your application, i would say this is the only problem. Because, when you click on the file which is associated with your application, it will run your application and this is where you face this problem. Also check the way you are associating the application with its file. Try the above change as i mentioned. See if it solves your problem.
-
March 25th, 2008, 04:41 AM
#9
Re: Folder containing our application created file popping up when opening the file
@MMH
I tried it, but its not working...........
-
March 25th, 2008, 04:43 AM
#10
Re: Folder containing our application created file popping up when opening the file
Originally Posted by devarakondark
@MMH
I tried it, but its not working...........
Can u attach ur code ? I Think there is some another problem with it that can be resolved by looking into the code n running ur app.
-
March 25th, 2008, 05:18 AM
#11
Re: Folder containing our application created file popping up when opening the file
@MMH
Can you be specific about the part of the code you want
-
March 25th, 2008, 07:04 AM
#12
Re: Folder containing our application created file popping up when opening the file
Yes. it will be nice if we get to see why is ur apllication behaving like this. so if u can attach files such as ur program.cs (the file having main function) and other file where u are having open/read file methods. Also attach ur exe file if possible along with ur custom file which u open it from ur application.
I remember i had also made one application which used to open and read my custom made file when double clicked. and it worked as expected.
-
March 26th, 2008, 12:56 AM
#13
Re: Folder containing our application created file popping up when opening the file
@MMH
We are showing a splash screen before launching our application and today i found out that this was the problem. I commented the splash screen code and the application is working fine. Can you post a sample code for splash screen which will not cause a problem like what we are having.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|