How can a Windows Store App close itself? [duplicate] - c#

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.

Related

How to hide window from taskbar in C# Console [duplicate]

This question already has answers here:
How to run a .NET console application in the background
(8 answers)
Single Form Hide on Startup
(23 answers)
Closed 7 years ago.
I needed to make an application that doesn’t show any window.
I couldn't find the answer Also I looked at stack overflow pages.
Does your application require a user interface? If not, you should really be creating a console application rather than a Windows Forms or WPF Application.
If you simply want to hide a form from within the form you can type the following:
this.Hide();
Edit:
From a console application, you'll want to compile the project as a Windows Forms application under the project properties. Ensure that you have no startup object selected.

Is it possible to run a python file from within Visual Studio? [duplicate]

This question already has answers here:
How do I run a Python script from C#?
(9 answers)
Closed 7 years ago.
I am completely new to Visual Studio and C#, so I apologize in advance if this sounds like a dumb question. I am trying to develop a Windows Forms Application such that when I click a button, a Python script is run, performing data analysis on some files, with the eventual goal of displaying that data as a graph on the Windows Forms Application after the button is clicked.
My question is: how do I get the python script to run when the button is clicked from the Windows Forms Application?
Yes, it is possible.
You can create a process that runs python shell.
Pyton Tools for Visual Studio will help with debugging python from within VS
https://pytools.codeplex.com/
For more details and how to look at this video
http://www.youtube.com/watch?v=JNNAOypc6Ek&hd=1
Yes, it is possible there is Microsoft approved extension for VS to yse Python.
You can downloaded it from here:
https://visualstudiogallery.msdn.microsoft.com/9ea113de-a009-46cd-99f5-65ef0595f937
For more details and how to look at this video
http://www.youtube.com/watch?v=JNNAOypc6Ek&hd=1

Is it possible to disable Alt for web applications? [duplicate]

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

Splash screen - winforms vs. WPF ? VS 2012 [duplicate]

This question already has answers here:
Splash Screen waiting until thread finishes
(5 answers)
Closed 9 years ago.
In browsing MSDN I saw that one could easily create a Splash-screen by importing an image file & setting the Build Action to 'Splash Screen'.
Is this only for a WPF or can I do the same for a Windows Form application?
No you can not do it for a Windows Form the same way that you did in WPF.
How to build splash screen in windows forms application?

How can I change the icons used in Windows Explorer? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Shell Icon Overlay (C#)
Tortoise changes the icons so you know what files have been changed locally. That's what I want to do.
I want to write an app that changes the icon for an app under certain conditions.
It's called shell extensions, and Microsoft recommends against writing them in managed code.
Here is official MSDN documentation on how to create icon overlays.
Also look at:
How to change the icon for a shortcut on the desktop in C# 2.0?
Programmatically change the icon of the executable

Categories