This question already has answers here:
Capturing Ctrl-Alt-Del in JavaScript/jQuery
(4 answers)
Closed 8 years ago.
Is it possible to disable the Alt key for web applications or is it only possible for windows application using C#. & if it is possible what is the easiest way this can be done.
It is not possible. Web applications will run in client's browser. You can't disable Alt key on client's machine.
See: Limitations of Web Applications
Related
This question already has answers here:
How to open a web page from my application?
(9 answers)
Closed 7 months ago.
I am a c# noob and I am making a console app to sporadically make you lose the game by open the website and writing "the game!"
I am trying to make it open a link to the game's website, but it does not work.
What I am using, but doesn't work is what MS docs says which is
System.Diagnostics.Process.Start("http://website.com");
I use windows 11, MS edge for default browser.
How to open a web page from my application?
the default for the useShellExecute is now false, so you have to explicitly set it as true.
This question already has answers here:
how do i change default browser using c# or batch file
(3 answers)
Closed 9 years ago.
I need to set my application as a default web browser for "HTTP" and "HTTPS" protocols. And I need to do it from application. My app is in C# using .Net 3.5. (It is a web browser)
The default browser is set in the Windows registry and I would presume that the "command" in the link below would be your application.
See here: How do I change default browser using C#
This question already has answers here:
ASP.NET/Silverlight Control USB Device
(3 answers)
Closed 10 years ago.
I'm developing web application using MVC3 and the requirement is to access USB port. if not possible is there other way or workaround for accessing port using web browser. Please send me a sample link.
Thanks
You might find more answers if you provided detail on why your App required access to a USB port. If this Intranet, then you are talking Corporate and you have more control over the Client side. If this is Internet, it's hopeless (or should be).
Yes - it is possible. Silverlight 5 can access the Win32 API using PInvoke (platform invocation). The Silverlight application must be a trusted application.
Here's an example (there are lots of others, Google it):
http://blogs.msdn.com/b/silverlight_sdk/archive/2011/09/27/pinvoke-in-silverlight5-and-net-framework.aspx
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Close Button on VS11 Apps
How can a Windows Store app close itself in code (C# but JS could be helpful too)?
Comment reposted as answer:
Duplicate of this question: Close Button on VS11 Apps
The short of it: you shouldn't have a close button if you are actually making a Windows Store app (it won't be certified), but you can use Application.Current.Close() if you need a button for debug close.
This question already has an answer here:
Closed 10 years ago.
Possible Duplicate:
How to access web camera settings (like in Skype) using DotNet
I found another question "How to access web camera settings (like in Skype) using DotNet" but it is very old with no answer. I have pretty much the same question.
I am developing a app using SkypeKit and to make it more complete to the user I would like to be able to tap into the webcam/audio/mic settings.
Is there an easy way using C# or skypekit ? & any advice.
Thanks.
You can use DirectShow or a .Net wrapper for it such as DirectShow.Net.
Here are some projects that can help you going:
http://www.codeproject.com/Articles/18511/Webcam-using-DirectShow-NET
http://www.barebonescoder.com/2012/01/finding-your-web-cam-with-c-directshow-net/