|
I am packaging my application for distribution. One of the items I have on the To-do list is to put a shortcut in the Start menu with a particular icon.
I started an Installer project, right clicked on the project and chose View->File System. I selected the "User's Programs Menu" and created a folder. I then created a shortcut from my Application Folder/Primary output from ... and placed it in this folder.
Now comes the bit which doesn't work. I right clicked on the shortcut I had created, and selected Properties Window. This has an "Icon" item. I want to change the Icon so that it looks like my program. So I browse and select the App icon inside my Primary output file.
Build/install and I get the default icon look - not my custom icon.
Hmmm - I thought - why don't I add a .ico file with the appropriate icon in it, and point the icon at that. So I uninstall the previous version, alter the icon, build/install and I get the same default icon look.
Can someone please explain how I can make my installed shortcut have my desired icon?
-Adrian
|
|
|
|
|
I did almost the same as you, but instead of pointing at the .ico file in the project or a custom one I pointed at the .exe I was creating the shortcut to then chose the icon I wanted from the list.
That did the trick for me anyway.
James
"The elastic retreat rings the close of play as the last wave uncovers
the newfangled way.
But your new shoes are worn at the heels and
your suntan does rapidly peel and
your wise men don't know how it feels to be thick as a brick."
"Thick as a Brick" from Thick as a Brick, Jethro Tull 1972
|
|
|
|
|
Yep - thats what I did the first time (the application Icon App.ico which is embedded into the executable) - that didn't work for me.
Alternative - are there any alternate setup/installer systems out there that integrate with VS.NET IDE?
-Adrian
|
|
|
|
|
InstallShield is there but I its a differnt beast altogether, but has all the facilities you need to prepare a good installer but has a good learning curve.
Kannan
|
|
|
|
|
I want to implement the IObjectWithSite interface (and
others too, this is just a concrete example).
Did Microsoft already implemented these interfaces? I
saw that in some beta they reside in
Microsoft.Win32.Interop or something. Now it is gone.
Do I have to manually do that, use a tool, or they are
implemented somewhere?
Please help!
|
|
|
|
|
Hate to tell you this, but it's not there at all. Looks like you'll have to write it yourself.
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|
|
IObjectWithSite is just a stupid interface with only 2 methods aimed to register yourself as a host.
You've got samples for that in many places (even in codeproject). Here are some :
- ATL : IObjectWithSiteImpl default implementation
- IE samples : bandobj, explorerbar, regview, ...
|
|
|
|
|
This particular one is really simple.
But what about IDownloadManager. It has a lot of things to implement.
There should be some namespace, some tool, or some third-party stuff about that. Right?
|
|
|
|
|
standard Workflow, here[^].
A working sample[^] (written in Delphi, but easy to understand).
|
|
|
|
|
I know about these.
Here the problem is much bigger, you have numbers of interfaces to implement to make it working.
Isn't there any tool for implementing them automatically?
|
|
|
|
|
Rincewind wrote:
Here the problem is much bigger, you have numbers of interfaces to implement to make it working.
You have been talking about the download manager, which is a simple callback mechanism. Other interfaces, such as IObjectWithSite, are interfaces that of course have to be implemented since you are building a IE host, but that's a total different story than the download manager stuff itself.
As you have probably seen from the samples I have referred to, there is a way to simplify your life as a coder by just querying the IServiceProvider services, instead of building a full fledge host. You decide.
Rincewind wrote:
any tool for implementing them automatically?
And yes, ATL provides some default implementation for a lot of these standard ActiveX interfaces.
Codeproject is often the automatical implementation for your needs.
|
|
|
|
|
Rincewind wrote:
I want to implement the IObjectWithSite interface (and
others too, this is just a concrete example).
Did Microsoft already implemented these interfaces?
In addition to Stephane's links, here is Microsoft's implementation of BaseCodeGeneratorWithSite[^] that was a public class in VS.NET 2002 but made internal in VS.NET 2003.
Some add-ins made use of this class, notably .NET CollectionGen[^].
James
"The elastic retreat rings the close of play as the last wave uncovers
the newfangled way.
But your new shoes are worn at the heels and
your suntan does rapidly peel and
your wise men don't know how it feels to be thick as a brick."
"Thick as a Brick" from Thick as a Brick, Jethro Tull 1972
|
|
|
|
|
Hello everyone,
I have been working on C# programs, my friend gave me a C++ program that is useful to me and i need to call that C++ program from my C# program. Is there a way to do that? Thanks for any help in advance
min
|
|
|
|
|
It depends on what you mean by "call".
If you mean "executed the executable", you can use the Process class to spawn out a new process.
If you mean "call into the code", look at this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp12192002.asp
|
|
|
|
|
if you Call the .exe file.You can call the API :ShellExecute().Of course,you must import the function at first.;)
|
|
|
|
|
Hello everyone,
I got this error when i try running my C# program: "Fatal out of memory error."
anyone knows how to solve this problem? Thanks alot in advance
min
|
|
|
|
|
|
my program consists of a few classes so it is quite hard to post online..
by the way, is there a way to free the memory allocated? Cos i got this error "System.OutOfMemoryException".
Thanks alot
min
|
|
|
|
|
Thanks alot for your help, i have solve the problem.. Thanks again..
|
|
|
|
|
Hey,
I have been working through many attempts to communicate with a ServerIron load balancer from a c#/ .Net app. I have tried an approach using a TcpClient, StreamReader and StreamWriter. Herein, I basically use a multithreaded approach and IAsyncResult callbacks. I have also tried a synchronous variation and a single threaded variation to reduce complexity in the face of continued lack of communication between my app and the load balancer. Alternatively I have tried using a Socket with my own read and write methods. I have searched and adopted a few other approaches from the web all to no avail.
Basically, I am having issues where I cannot find a return of control from the ServerIron and/ or It pauses at odd places in the return stream. It will not recognize the terminating character variations be it; cr, lf or crlf.
Apart from the specific implementation details, I am wondering if I am simply missing someting fundemental about telnet or about these machines. Others have recomended expect scripts, which I have looked at and effectively do the same thing I am attempting to do; read till you get a terminating character, then send data. I also do not want to leave the c# world at all, nor do I feel I should have to. I am not a beginner and I have several .Net apps in production. any help would be greatly appreciated.
Thanks,
Chris
|
|
|
|
|
What is the best way to prevent user to change the size of form?
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
Set the FormBorderStyle of the form. There are 6 or 7 different styles, so pick which one best suites you.
|
|
|
|
|
Thanks.
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
Hi All,
I would like to get answer for the following questions.
1. In C# How do we create new themes for Desktop?.
2. How Intellisense Editors are build?. Is is it possible to do using C#?
3.Is there any book for Internationalization using .NET or C#?
Thanks and Regards
Balachandar Ganesan.
|
|
|
|
|