Is there a way to set the program icon dynamically with #IF - vb.net

I'm working on a windows forms project in vb.net (vs2019) where there are two versions. One for average users and another for managers. I'm using conditional compilation (#IF's) to accomplish this.
Is there a way to set the windows icon at compile time based on a compilation constant? Basically, I'd like to be able to easily identify the version based on the icon in windows explorer.

Related

Only the UWP project is running

It doesn't work if I try to add multiple pages to UNO SOLUTION. There are a lot of mistakes coming out. Only the UWP project is running. One of the mistakes.
LIST
First create a Page (Uno Platform UWP) then copy the body.
I also fixed the error in the same way.
To fix InitializeComponent error in Uno, you could refer to the following steps that are from the official document.
You could build your project once, close the solution and reopen it. It is also important to note that Uno uses a multi-project structure, for which each project has to be build individually for errors to disapear from the Error List window (notice the Project column values).
In order to clear the Error List window, build the whole solution completely once. Thereafter, build a specific project and prefer the use of the Output tool window (in the menu View -> Output), taking build messages by order of appearance.

JavaFX11 program multiple windows using scenebuilder

I am learning how to build program in java FX using IntelliJ and Scenebuilder but I have a problem in how to create a program can implement many functions
my questions are
How can I build an application to use multiple windows?
start window includes many choices (many subprograms ) each choice replace the window by its content
how to go back to the main menu window?
To open a new Window, you can call new Stage(), which creates a new Window, for which you can then set the content by using set Scene().
Don't forget to then show your Stage by using show().

Is it possible to extract an icon from an old Visual Studio project?

I have an old VB project that I'm converting from WinForms into WPF. I was re-creating the user interface without problems until I tried to locate the Icon that the old application uses. I can't find it in the project files and I can't see a way in visual studio to export it.
Anyone know of a way to accomplish this? I'd like to keep the UI as close to the old UI as possible (users don't like change).
You can extract icon resources from your file. See a free app to do it:
nirsoft.net/utils/resources_extract.html

Better way to add custom controls to your project

There are groups of customized user-interface components, freely available for VS 2010 Express. They are called "themes". Here you have a video showing how these themes can be added to a VB project:
http://www.youtube.com/watch?v=Ec9GZaPMGqE
I would like to be able to apply a "theme" to my already existing application, but doing so would require me to manually replace all the elements in my form with the newly imported ones. Is there a better way to do this?

How can I change the name of my Windows 8 app without starting a new project?

I'm working on a windows 8 app which is called (boter kaas en eiren) but I want to rename the whole project to (Tic Tac Toe). Is this possible? If it is how can I do that?
Your best bet is to do a find in your entire project. Below is a search for an application called "feedgrind":
Some notes on how the text is being used:
App.xaml - Your application uses this to display its name.
Package.appxmanifest - I'm not completely sure on this, but I believe Windows uses it to get information on your (deployed) app.
Package.StoreAssocation.xml - When you upload your app to the Windows Store, this name must match with the name that you have set up at the Windows Store. If you have not uploaded your app to the Store yet, this file may not exist.
AssemblyInfo.cs - Windows Explorer displays this information when you display the file properties of your exe.
application.csproj - Visual Studio uses this for the executable name (application.exe).
Obviously this answer is for a C#/ XAML/ Windows Store app. Your files may vary depending on your project type.