2 tera term application process within winform
CodeProject » C#
by
4M ago
I was able to get 2 seperate processes to run the tera term applications within WinForm successfully. I have a DUT that has 2 ports and each process to communicate with one of the port. Manually sending the command within the tera term process window works well. However, I have the list of commands using DataGridView above two terminals. I was planning on having the user to click on the command from the datagridview and send the command to one of the tera term process. I'm not sure on how to issue the command string to the process. Been searching online and wasn't sure on how to do this. Any ..read more
Visit website
C# and Excel
CodeProject » C#
by
4M ago
Hi. I'm working with Visual Studio 2022 and I have an application that uses excel. I'd like to know your opinion on the interfaces available: Interop, ClosedXML or any other. Which one is the best? Thank you ..read more
Visit website
How to use functions of a dll in another dll "on the fly"
CodeProject » C#
by
5M ago
Hello, I have a VS project to implement a dll. This dll is a kind of "Master" dll and it should be possible to extend its functionality with "Extension" dlls without touching the "Master" dll. The "Master" dll should check everytime when it is loaded, what other dlls are available and thus extend or reduce its functionality by itself. If "Extension" dlls are missing, the "Master" dll should recognize this without any error and function with reduced functionality. Any hints from your side which approach would make sense here ..read more
Visit website
Why doesn't Console.Writeline write to the debugger in .NET 8?
CodeProject » C#
by
5M ago
Console.WriteLine doesn't write to the debugger Output window in .NET 8. It always works in the .NET Framework, but not in the new .NET. The difficult we do right away... ...the impossible takes slightly longer ..read more
Visit website
Game
CodeProject » C#
by
5M ago
Hi I need to make a game using window form in c# just an example thx ..read more
Visit website
How do I check for existance or clear the contents of a SharePoint List from C# code?
CodeProject » C#
by
5M ago
How do I check for existance or clear the contents of a SharePoint List from C# code? I have complete the code that creates a sharepoint List from scratch, creates the columns, and loads the data that I get from an API GET query of an external database. How do I: check and see if the SharePoint List already exists clear the contents of the sharepoint list load the list with new data. Without doing these steps, I am left with creating the list from scratch each time and giving it a unique name each time. Is there some source of information on how to do this that I ..read more
Visit website
Would this be a valid Extension?
CodeProject » C#
by
5M ago
using locks, from my understanding this should work as long as lock is being called on the same object. C# internal static async Task Lock<T>(this T lockObject, Action DoAction) where T : class { await Task.Run(() => { lock(lockObject) { DoAction ..read more
Visit website
Visual Studio Weirdness
CodeProject » C#
by
5M ago
I have a dot net 8.0 C# DLL project that holds a reference to a C++ .net 8.0 mixed mode DLL project. Whenever the mixed mode project is rebuilt, then none of the projects that depend upon it will load the previous build of the mixed mode DLL. It gives a library version not found error if I try to run the previous build. This is annoying because this happens whenever the mixed mode DLL is rebuilt, even if there are zero code changes in that project. Just where do you think Visual Studio is managing this auto-incrementing build number that is disrupting my development feng shui? When I open ..read more
Visit website
Converting ulaw to alaw
CodeProject » C#
by
5M ago
I've been trying to convert ulaw to alaw following a few examples that I found online. I'm able to covert the alaw to ulaw quite well but when converting back to alaw the output becomes distorted. If anyone knows a better solution please do share. Here is the code that is producing the distorted alaw. C# public static NativePointer Encode(G711.Ulaw ulaw) { if (ulaw == null || !ulaw.ContainsAudio()) throw new Exception(nameof(ulaw)); List<byte> bytes = []; NativePointer pointer = ulaw._nativePointer!; byte[] result = new byte[pointer.S ..read more
Visit website
Button event handler where it drops it?
CodeProject » C#
by
6M ago
Is there a way to set where to drop an event handler? When I double click on a button it drops mine at line 1500 for some reason. Then I have to cut and paste. It's doing it in a region of code and it expands that region, which is a little annoying. I'm hoping to drop at the top somewhere, possible ..read more
Visit website

Follow CodeProject » C# on FeedSpot

Continue with Google
Continue with Apple
OR