Click here to Skip to main content
15,501,036 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can anyone tell me what's wrong with this in markup.

HTML
tn:notifyicon x:name="NotifyIcon" text="Keep me sane" icon="resources\UFO.ico" mousedoubleclick="NotifyIcon_DoubleClick" xmlns:x="#unknown" xmlns:tn="#unknown"


I get the following error,

Unsupported URI syntax. Method expects a relative URI or a pack://application:,,,/ form of absolute URI...

when I execute the program the icon IS shown ok?

What do I put i.s.o resources\UFO.ico if anything?
Posted
Updated 9-Nov-14 3:49am
v3
Comments
OriginalGriff 9-Nov-14 6:22am     CRLF
Where in the C# are you using it? Some context would probably help...
Richard MacCutchan 9-Nov-14 7:11am    
That looks more like XML/HTML/XAML than C#.
Afzaal Ahmad Zeeshan 9-Nov-14 7:27am     CRLF
If the icon is shown without any trouble, then what is the trouble. Somehow, if the program is compiled, linked and executed without any error then this is not an error it is a warning raised by the compiler. As also said, this is not C# code this is XAML (XML) markup code to generate the GUI for your WPF (or anyother) application.
KevinBadger 9-Nov-14 9:05am     CRLF
Well it compiles but I can't edit the resource(dialog) because of this error Yes, sorry This is XAML
Afzaal Ahmad Zeeshan 9-Nov-14 9:07am    
You might be editting the resource from the Visual Studio visual editor, right? Not directly from the code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900