❔ execute winform application by using windows service

i have already made winform application and it works properly but i want to make winform program executed by windows service is it possible ? and if it is impossible then please tell me the reason why.
11 Replies
Fred
Fred15mo ago
Look up ProcessStartInfo and Process.Start()
어부지망생
어부지망생15mo ago
i have already tried them but it doesn't work it executes process but i can't see ui
jcotton42
jcotton4215mo ago
why are you starting it with a service? windows services run under their own context, and don't have access to the user's desktop
Fred
Fred15mo ago
Does setting ProcessWindowStyle to Normal work ?
jcotton42
jcotton4215mo ago
no Windows Services run under a completely different desktop what are you actually trying to accomplish? like the end goal @Maladofeu
어부지망생
어부지망생15mo ago
Em.. actually i want to execute ui in service like teamviewer.. And thanks for helping me both of you 🙂 @jcotton42 is it possible?
jcotton42
jcotton4215mo ago
yes, but idk how you'd do it
어부지망생
어부지망생15mo ago
Can u explain me how to doit?
jcotton42
jcotton4215mo ago
... I just said I don't know how like, it's obviously possible since things like TeamViewer exist but I don't know how
어부지망생
어부지망생15mo ago
Ah ok 😦
Accord
Accord15mo 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.
Want results from more Discord servers?
Add your server
More Posts
❔ Implementing security from a web libraryWe're coding a web library to generate a html CRUD at runtime from a metadata, after a lot of effort❔ Avalonia ComboBox SelectedValuePath```xml <ComboBox SelectedValue="{Binding Path=SomeValue, Mode=TwoWay}" SelectedValuePath="Tag"> ✅ ef core can't translate a queryquery: ```cs var username = "some username"; var user = await _db.Users .FirstOrDefault❔ Is the functionality of my code in the right placeI created a valueobject for my sitemap. I'm wondering if it's in the right place or shouldn't it be ❔ Microsoft SQL Server Management Studio ("authority that is not trusted")I'm trying to connect my local server from SSMS but there's an error after I connect.❔ ✅ Trying to understand HID device response dataI have a wireless mouse that I'm trying to make my own software for. So far, it has been quite straiIssue with FolderBrowserDialog in console applicationHey, when I start my application via Visual Studio everything works, but as soon as I start the cons❔ How to restart a BackgroundServiceSearching the internets, I seem to be finding answers that don't really seem right, and not good eve❔ Whats the difference between classes and public classes?Tried looking at Microsoft docs earlier but the don't really answer the question. I already know wh❔ Questions on validating columns and types (updating a single column in a table via REST API)I'm new to .NET and C#. I'm trying to implement a somewhat more difficult endpoint where the user pr