I want to connect to a remote PC through my own app. I planned to make one in Visual Studio 2012.
I've searched around on the internet, and couldn't find the solution to make an remote connection inside of a form.
I've read something about the "Microsoft Terminal Services Control Type" Liberary (http://www.codeproject.com/Articles/43705/Remote-Desktop-using-C-NET), but i couldn't get it working.
Any help would be appreciated!
You can use this guide : http://www.codeproject.com/Articles/43705/Remote-Desktop-using-C-NET
It's a pretty outdated technology and only works on WinForms AFAIK. I tried using this control in one of my projects but decided to ditch it as I couldn't get it to resize dynamically.
Gaucomole is another good option. but is a bit more complex: http://guac-dev.org/doc/gug/writing-you-own-guacamole-app.html
It runs in a browser and uses HTML5.
EDIT: Just noticed the article I linked is the one you were using. Why couldn't you get it working?
As an alternative for C#, you can also try Myrtille. It was first a commercial application that I made open source recently. Like Guacamole, it works from a web browser (HTML4 and HTML5) in pure javascript (no plugin).
But, as Jonathan said, if you want the remote connection into a winform, you'd better use the Microsoft Terminal Services COM control.
Related
I am currently working on a project that requires a text editor. All of the computers that will be running this app will have the whole office suite installed, more specifically Office365.
I started building my own text editor but it would take a lot of time to implement some QOL Microsoft Word has so I started looking up ways to somehow host Microsoft Word inside a WPF Window or at least make it look like it is docked. So far I have found stuff from 10+ years ago mentioning OLE and what not but I figured it is probably way outdated.
Can anyone here please point me in the right direction ?
You can't host Office365 product in your app, Microsoft does not offer such a service.
Since you want a text editor, you can look for off-the-shilf products like avalonEdit:TextEditor, download it via NuGet and use it in your view just like this..
<avalonEdit:TextEditor
xmlns:avalonEdit="http://icsharpcode.net/sharpdevelop/avalonedit"
Height="400"
FontFamily="Consolas"
FontSize="12pt" />
Another lovely open source WPF-based text editor is Notepads, but there is no ready-to-use usercontrol similar to avalonEdit:TextEditor. You have to include it in your solution as a class library then embed it in your windows application (can't predict how much effor/time can it take).
I am a C++ and python developer but I need to use C# for a professional project.
I know some good basics of .NET Core but I want to find a good UI library to learn.
I test Avalonia and I want to try Uno.Platform for is multi-platform capabilities.
But, I make simple test on Visual Studio and just try if it works on Windows (with UWP sub solution).
It works (thx for templates and tutorial) when I run the application from Visual Studio.
But I want to try the application directly by executing the App.exe generated in bin/x86/... but nothing append. No trace, no error... just nothing.
I try to deploy but the problem persist....
I probably miss something important but I found no information that can help me on internet.
Did you have information to help?
When kind of topic I don't understand in the C# with Uno.Platform CI?
This seems a pretty general question. The best way to go about it is to go to Uno Platform Discord community and chat with users there - www.platform.uno/discord - #uno-platform channel.
For specific questions on how to do X with Uno Platform you should post to Stack Overrlow.
hmm i will try to answer your question. i am also experimenting with Uno.
Since Uno is Crossplatform, every Operating systems Uses its own "Programm Header"
This Header contains a lot of stuff including the needed Code entrance Point for each OS.
For Windows i tried it with the WPF HOST header and it worked.
If you want to get a executabale for the "Hallo World" example try to publish the WPF HOST Header into a folder. it will contain the .exe
Is there any way to download Windows updates programmatically from within a C# application? I want to manage the installation of updates from within my application.
The Windows Update API is documented here. A quick stackoverflow search has convinced me that you can indeed use COM from C# so this should solve your problem.
I also have some sample code, not in C#, but it may give you a head start in understanding how the interfaces can be used.
I'm a web developer so all my experience is with ruby, python, or PHP. However, I'm gonna do a little windows programming.
I want to build a light weight web server that can handle incoming requests and pass them on to a COM port. I want to be able to distribute it as an exe that will install the server as a windows service.
What do you think would be the best language to do this in? What IDE would be best for said language?
Thanks,
Seth
To be honest you will probably have the most fun doing this in C#. The learning curve will be smaller and the language and most of its features are your friend. The fact that you can set up a windows service in 2 minutes is also a plus.
C# and Visual Studio should be fine for this. C# can be compiled/linked into a .exe, and you can make this into a service very simply.
Please take a look at the source code of Cassini. It's actually the built in server over Visual Studio. It might give you some good ideas to get started with: Link.
Grz, Kris.
I'm a beginner in programming. I've just made a program called "Guessing Game". And it seems to work fine. Can I integrate it into a website? The CMS that I'm using is Mambo.
===
additional info's
Thanks for all your suggestions.
I still don't have any background about Silverlight, WPF and Java Script which I think sounds good. I'm using Windows and I programmed my "Guessing Game" from Microsoft Visual Studio 2008 and it's using Window application forms.
Yes I guess, for the moment I let it be and start to learn Silverlight or Java Script so that I can integrate it on my website:-)
Thanks for all your input guys:-)
Cheers
A standalone executable cannot be directly integrated into a website. You have a few choices though:
Allow your users to download the executable and run it locally for themselves
Rewrite your program in JavaScript to have it run directly inside of an HTML page, though this could obviously involve a fair amount of reworking
Use Microsoft's Silverlight technology, which allows you to code in C# and produce a web-based frontend similar to Adobe Flash. Your program logic should remain the same and you should only have to change the UI code. In fact if you're already using WPF for the front end, the transition will be even easier.
There are several questions that you still need to answer.
What is your server running? If its not Windows, your exe will not run at all unless it is compatible with Mono or a similar framework for your server's operating system.
How does your "Guessing game" interact with the user? If it is through a WinForms GUI, it will you will not be able to use that GUI on the web. If your game is a WPF application your easiest route may be to port it to Silverlight and serve it up on a web page.
It is typically not trivial to make a regular windows application run in a web environment since on on the web you are really running in the browser, not on Windows.
Yes - in general, when you're talking about software, anything is possible. The question is, how difficult will it be?
To understand that, you have to give us more details about "Guessing Game" including how it is designed, what it's interfaces are, how readily extensible it is, and how prepared you are to change or extend it.
For example, if it is a Windows Forms GUI app, then it will be diifficult to integrate into a web app. If it is a console app, then it will be a little easier. If you can modify it to run as a Windows Service, then a little easier. If you can modify it to accept input from the network (as opposed to getting input solely from the keyboard + mouse), still easier.
You may be able to use reflection to load your assembly into the web application, but most likely, the answer is no.
Your best solution is probably to re-write the game in javascript.
The short answer to your question is now. I'm presuming that since you're running Mambo you're web environment is a LAMP stack. However, you're "Guessing Game" is most likely a Windows application from the sound of it. For a beginner in programming, there is no integration path you're going to be able to take that will allow you to have your game running on your website.
However, here are avenues you can take, which will require a significant amount of time to learn. I'm not saying you shouldn't take time to learn, by all means you should! I'm simply trying to illustrate the fact that this is not something that is going to be doable in a couple of hours.
Silverlight - allows you to run C# code with a WPF like interface on your client's browser and can integrate with your web site through javascript.
Let your client download it from your website and run it off of their PC. This would actually be fairly trivial and would be your quickest option, but it sounds like it's not the kind of integration you were looking for.