matcfs
How to store/show only ip settings of one ethernet device.
Hello, I'm stuck in this situation: my application must choose one ethernet device, change its ip configuration, do something and then restore previous configuration.
It seems easy but after several tries I've no idea how to solve it.
I tried to use and then with no avail.
I'm thinking about a workaround to store only the ip configuration of that ethernet device but netsh show information of all ethernet devices (and unfortunately in my case are not few).
Maybe the only solution is to store the output of netsh and then parse it ? (Ok but how? Regex?)
My question for you is if there are any other solution to this problem?
Sorry for the question, and thanks in advance.
3 replies
Progress bar and an TFTP library
Hi everyone, in my old .Net 4.7 Framework app I have a frame to performe a firmware upgrade thanks to a tftp library.
The issue is about UI: until now I never succed to show the progress on my form because when I tried I I have always run into infamous Cross-thread operation not valid error.
The library (https://github.com/Callisto82/tftp.net) that I use has a progress method that work very well in console.
What do you think is the best solution to solve this? Something like BackgroundWorker/Thread for the TFTP library calls or something else?
Thanks in advance for your help and sorry for this silly question.
8 replies
✅ Huge problem with translation file and setup
Good morning at everyone. I apologize for this silly request but I have a big problem with a setup/build project.
My project is an oldish .Net Framework 4.7 developed with WinForm but lately I had this request to translate in another language.
After a brief research I found a good way to do it with resx. files that I move in Translations folder, and the program was perfect in Visual Studio!
When I tried to compile setup file there was no error at all but my software crashes instantanealy if launched from Start Menu.
I researched some workaround with no avail until now.
Do you have some idea to how solve this issue?
Thanks in advance.
7 replies
❔ How to resolve System.UnauthorizedAccessException when a serial port is open but already in use
Hi there, I'm sorry for this newbie request but I looked for any solution on SO with no avail.
I have a simple .NET 4.5 software that use a Serial port to connect with a device. In the first form there a combobox with all serial port but even if I checked in advance if the portName is open, if the port is already in use the software there will be an infinite loop of Error in Serial Configuration due to System.UnauthorizedAccessException.
Do you have any suggestions? Thanks in advance.
5 replies