❔ How to work with Hwnd in c#
I want to open programs using Process.Start but all those programs have empty MainWindowHandle and MainWindowHandle do i need after it opens search again for all processes using EnumWindows or smth like that to refresh datas in this opened processes to have control or is there any better solution to search for hwnd and title data or just get it after Process.Start. And is it all safe?
J
Jester•396d ago
what are you trying to achieve?
you want a list of all windows? or just the handle of the window of the process you started?
and with that handle you want the window title?
A
Accord•395d ago
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
51KMembers
View on DiscordWant results from more Discord servers?
More Posts❔ VS For Mac Code CoverageHas anyone figured out how to show which lines are covered after running unit tests in VS For Mac?✅ Run code in main thread after Task.Run completed?Hello, I have a long running void function that I execute in a separate thread by calling `Task.Run(❔ methodHello,
If I create a method, does the method know about things in the Main method? Or am I supposed ❔ Project structure1. In my Solution there should be only 1 Project right? Unless its a big App
2. I started using fo❔ how to use EF6 in library with no dependancy injection and no startup.csI used EF core power tools to generate DB Context and reverse engineer the models.
now I get an erro❔ HeadFirst Design PatternSo I started with this Book today. First problem starts with the Duck Project:
and when he tests h✅ EqualityComparerHello, anyone know of this code work ?
--> `EqualityComparer<ICollection<myclass>> .Default.Equals❔ error attaching script (unity)this error appears when trying to attach the script, does anyone know how to solve it?❔ i have an app that runs well on my pc but not on other pcsi have an app that runs well on my pc but on when i zip it and bring it to another pc the ui is all yield???```cs
public IEnumerable<int> A()
{
for (int i = 0; i <= 10; i += 2)
yield return i;
}