how to locate a program to desktop by C# - c#

i want to do a program that like daily organizer or agenda. i want that program runs on desktop like a wallpaper but as transparantly. (like the clock on vista). how can achieve this by c#. i only ask to locate program on desktop.
thanks.

You need to create a Windows Sidebar Gadget, which is typically an HTML "application", an HTML "application" that hosts Flash (Silverlight may work as well, although I'm not sure), or a C# application, as shown here.

Related

Creating fillable form after windows login

I would like to create or ideally use a pre-made program that will start-up every time a user logs into our lab computer (Windows 10), I am asking for simple information such as name, type of experiment, etc. Ideally this form would be mandatory. I have read about using the Credentials Provider in windows, but my programming knowledge is frankly limited to Matlab and I have no experience with SQL, C# or creating any windows applications.
This question is probably to open-ended for this forum, but I have no idea where to start! Google searches only direct me to windows login-related issues :/
Any insight on possible ways of doing this would be greatly appreciated!
If you create a windows form in C# with some text box entry fields then you can add the program to the windows startup items for all users (https://www.labnol.org/software/add-programs-to-windows-startup/13013/). If you're really at the beginning then you need to get visual studio community here (https://visualstudio.microsoft.com/downloads/) and then follow a windows forms tutorial (probably easier than WPF) here: https://msdn.microsoft.com/en-gb/library/dd492132.aspx.

Launch Windows 8.1 and/or Embedded directly into application instead of desktop

We are developing a .NET application (Modern UI). What we wish to do is to launch directly into the Modern UI application, instead of the desktop. We wish to effectively lock the user into our application, which will then be operated through a touch screen.
Is there any way of doing this? Perhaps replace explorer.exe? But this sounds a bit risky and hacky.
Thanks in advance!
You can set windows 8.1 into a Kiosk mode, and this will lockdown user into your app.
Go to Charms->Settings->Change PC Settings->Accounts and you can choose user and application for Kiosk mode.
With this option there is no need for hacks this serves exactly the purpose you need.
Here is detailed info how to setup kiosk mode:
http://blogs.msdn.com/b/hyperyash/archive/2013/10/25/enable-kiosk-mode-in-windows-8-1.aspx
I found this:
http://winaero.com/blog/exclusive-how-to-start-a-modern-app-from-desktop-without-going-to-the-metro-start-screen/
So, what about to create something like this:
Process.Start("explorer.exe shell:AppsFolder\Microsoft.WindowsReadingList_8wekyb3d8bbwe!Microsoft.WindowsReadingList");
This is only idea, but can be helpful.
Just found this: Windows Embedded 8.1 Lockdown & Branding
This seems to do exactly what we need, but we need to use Windows Embedded. Thanks to those who also gave helpful responses!

How to use a monitor which is not part of desktop (Windows 7)

I would like to use a monitor which is actually marked "disconnected" in the windows control panel under "Change display settings". (I do NOT mean a physically disconnected monitor.)
I know how to add a second monitor in Windows and make it part of desktop. I also know how to make my application run on a primary or on secondary monitor when they are part of desktop.
I have a piece of equipment attached to the PC which has a touch screen on it. The touchscreen is connected to the PC over USB looking as an ordinary USB-Monitor and I can make it part of my Windows desktop. But that is not what I want.
What I would like to do is make sure that only one special application can run on this monitor. I also do not want to have a windows desktop on it because than the user could move any window to it which is not what I want. The idea behind all this is to use the touch screen to have an application on it which can control this external piece of equipment. The user would only have to run the PC but not to login. I was thinking about starting the app from a windows service before the windows desktop is loaded. And once the user logs in I do not want him to be able to use the touch screen for anything else except this special application. That is why the touch screen must not be part of the windows desktop but ”deactivated”.
I am using . NET 4.0 and C# for my application, but I will use C++ or whatever comes handy.
Any help or idea is appreciated. Thank you!
It seems WDDM does not support independent displays any more. Here are a few links in case somebody wishes to take a look for himself:
(old MSDN link) = /windows/win32/gdi/multiple-display-monitors
(old MSDN link) = /windows/win32/gdi/using-multiple-monitors-as-independent-displays
The important part is this note from the second link:
ⓘ Note
Using other monitors as independent displays isn't supported on drivers that are implemented to the Windows Display Driver Model (WDDM).

How can I make a simple launcher app?

I want to make a simple launcher for an application (like, using CreateProcess), that I can use as a HelloWorld app and customize the app tile appearance -- sort of killing two birds at the same time:
Getting familiar with the environment and
Creating tiles who's appearance can be changed (beyond just changing the icon for the app).
However, I'm not sure where to start. I've tried copying this code into the namespace, but this is not working:
[DllImport("coredll.dll")]
private static extern bool CreateProcess(null, "C:\\Program Files (x86)\\Steam\\Steam.exe");
The full code is of course this blank application template for c# ( App.xaml.cs -- at C#, VB, and C++ project templates for Windows Store apps)
Writing Windows Store Apps requires learning new ways of doing common tasks.
For one, Windows Store Application (Metro) are restricted from running other processes. Think of your app as if it is running in a sandbox. You don't have direct access to the underlying system, you need to go through approved channels.
To run apps or open files in Metro you should use a launcher.
To modify the application tiles, you should use the tile API
Rather than call CreateProcess, you should use the Process class. The linked page has an example of creating and running a process. I think you'll find it much easier to use than calling the Windows API directly.

windows system tray application like the volume application

I would like to create a application very similar to the windows 7 volume bar which is located in the system tray. I'm new to windows development and would like a point in the right direction.
Should i just make a normal application and just put in the system tray?
I don't need a main window for the application, it has to accessible only via system-tray (i need only the volume bar, nothing else)... how can i do this?
Would it be better to write it in C++ instead of C#?
How can i detect the "volume" of the sound that is outputted by windows (even if the system sound is muted)?
Thanks for your reply's.
You can by using the class NotifyIcon. Just google for it to find samples. Here is one.

Categories

Resources