views:

31

answers:

1

Hi Guys,

I have a my own file type .Has and a program HasEditor which i want to be Default program for my file type. but when i right click on the has file select open with and browse to HasEditor.exe it just attaches internet explorer insteat of HasEditor.exe.

What exactly happens is strange when i double click HasEditor.exe its icon doesnt appear in the open with dialog.

any suggestions will be appreciated. HasEditor is my own app made in c#.net

A: 

Have at look at this question which will allow you to set up the association programmatically. Maybe doing this will fix the problem?

w69rdy
thanks for the link but i do not want to it programmatically i want the user to do manual attachment using the open with dialog in win 7.
jaminator
Ok in that case is your icon for your program the correct size for the 'open with' dialog? It could be that it requires it in a different size and that's what is causing the problem. Also I assume your program is a windows app and not a web app?
w69rdy
hmm i think you are right. i made a custom icon for my app
jaminator
i just tried this in vista seems to be working there and icon is appearing. but the problem seems to be only in win7
jaminator
Hmmm interesting. Does it appear properly everywhere else (eg the executable itself, top left of the app when it is running etc)?
w69rdy
yup its running perfectly fine there
jaminator
Ok in that case I'd try changing the icon to one you know should display properly (ie the default application icon) and see if it still has the problem. If it does you know it's something to do with windows and the 'open with' dialog, if it doesn't then you know it's something to do with the icon. Once you know either way you can try some more specific things to fix it.
w69rdy