I am working on a project and want to change its main application icon (EXE Icon) occasionally like X-mas or whatever through code. Tried some ways but its not working and rest only works to change Form's icon.
Related
I installed XamlSpy using NuGet in my UWP app.
I debug my application and connect it successfully using the XamlSpy.
The problem is that every mouse hover is responses by XamlSpy what prevents me from clicking on buttons etc'...
How can I start inspect only when needed ?
I tried CTRL+Shift without success...
How can I start inspect only when needed
According to this article, Ctrl+Shift is worked for XAML Spy 2. By testing on my side, I guess you are using XAML Spy 3.
In that case, when you are using the XAML Spy desktop app to inspect, the "Select Visual" button which is for moving your mouse to the app, and click to select a visual in the user interface, is highlighted by default. You may need to click it to not highlight the button to stop inspecting, and click again can start inspecting again when you needed.
I am trying to set the icon of my application. I set the icon once before by changing the property of the form and the property of the project. Now I am trying to change the icon to a different one. The icons of the form and the application have been successfully changed, but when I copy the application to the desktop, the desktop icon still remains the previous one. Can anyone please tell me how to change the desktop icon?
Thanks,
Kai
If you change the icon properly on the form it should get visible in the Taskbar immediately as soon as you start your application.
However even if you did change the project icon properly and therefore your executable has the correct (new) icon (check that in your \bin-folder) you can get the wrong (old) icon from the desktop because you system might retrieve it from the icon cache.
Please check the following link to understand that topic and to see how you can enforce windows to renew its icon cache.
Win 7--: http://www.winability.com/repair-windows-desktop-icon-cache/
Win 8++: http://www.winability.com/how-to-erase-icon-thumbnail-cache-windows-8/
I created a VB.Net application with a target .NET Framework of 4.5. The application runs fine on my computer (or any system with Visual Studio installed). But when I try to run the exe generated from the build, the application loads, but the buttons are not displaying. There is an outline where the button is, and you can actually click the button to perform the action just fine. I assume this has something to do with a reference problem, but I really don't know for sure. They are just standard Windows form buttons. No images attached.
So I figured out the solution, but not necessarily the problem. The button had a BackColor property set to Black which is the same color as the form. For some reason, on certain machines this caused the button and the form to blend together. Changing the button BackColor to something different (such as Control grey) worked just fine.
So I have this application I have made in VB. The problem is that when I start it it does not show up in my taskbar. It only shows up if I maximize another window infront of it and then minimize it. Also it has the basic VB icon even though I changed the icon in the properties.
There is no relevant code for this issue.
I found the same thing; no icon was showing in the taskbar. I had to go into Task Manager and Switch To the program to get it to show. I could ' maximize another window in front of it and then minimize it as well.'
Found the solution that worked for me. The 'Main' form did not have anything in the 'text' property because I was doing that and a Ver number in the program. As soon as I put text into the 'text' property, it started working. The problem was only with VB2015. Worked fine in VB2010.
I have a program in vb.net which is ready to be published.
Its a small detail, but I'd like to change the icon on both the published app shortcut on my desktop, but more importantly on my taskbar (like where the chrome circle shows up).
Is there any way to accomplish this?
To change the main icon for your application, go to the "Application" tab under the project property page, and change the "Icon:" combo box.