dgv cell click setting column header selection state

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 2 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: dgv cell click setting column header selection state

Post by jvierra »

Here is some more good background on app.config files, how they are used and how they cannot be eliminated. There is actually no way to eliminate them. If you ship an exe without an app.config the EXE will create one the first time it is run.

The short article has two links to more detailed information from the Microsoft docs.

Note that the question asked is similar to yours and it was asked 11 years ago. Your question is not new and has been a normal issue for new programmers in Windows.

https://stackoverflow.com/questions/217 ... difference

As Alex has pointed out, the idea of a single application file is ancient and no operating system I know of today actually defaults to a single file although self-generation of configurations has been provided so a single EXE can be delivered but the config file will still be generated.

If you do not use teh Net Framework (actually the CLR) then single file executables can be built. This also would not allow you to build WinForms apps although you can still use the Win32 API. Utility apps distributed on the Web that claim single file deployment are created using the Win32 API.

Good luck.
User avatar
owinsloe
Posts: 161
Last visit: Tue Mar 26, 2024 8:14 pm
Been upvoted: 1 time

Re: dgv cell click setting column header selection state

Post by owinsloe »

Thanks for the response, totally understand. Cheers
This topic is 2 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked