fullscreen

Application that can open program in full screen?

与世无争的帅哥 提交于 2019-12-01 17:02:21
I need to make an application that starts new program (ex. notepad) in fullscreen mode. Can I do that in c#? I'd appreciate a code sample.Thanks:) SwDevMan81 You can use Process.Start with a ProcessStartInfo object which has a WindowStyle property. You can set that property so that the window starts maximized. Adapted from the example at Process.Start : ProcessStartInfo startInfo = new ProcessStartInfo("notepad.exe"); startInfo.WindowStyle = ProcessWindowStyle.Maximized; Process.Start(startInfo); If the process is already running, see here 来源: https://stackoverflow.com/questions/4743213

Full screen Window won't get keyboard input using KeyListener or KeyBoardFocusManager

跟風遠走 提交于 2019-12-01 16:54:58
I'm having problems with getting my KeyBoardFocusManger to work with my full screen Window . No matter what, it just wont get keyboard input. I used a System.exit(0) and a println() to look for any call to the keypressed/released/typed method, but no errors are thrown. I've tried KeyListeners ; but after I read this , I changed to a KeyboardFocusManager , and the same thing still happens. I'm really getting desperate; from what I can judge, the Window is not getting focus of the keyboard? Here is my main: public static void main(String[] args) { EventQueue.invokeLater(new Runnable() {

MPMoviePlayerController seek forward in fullscreen mode until end is stuck

我的梦境 提交于 2019-12-01 16:14:06
问题 There seems to be a problem with the MPMoviePlayerController where once you're in fullscreen mode and you hold down the fast forward button, letting it seek forward (playing at fast speed) all the way to the end of the video. Thereafter the you just get a black screen and it's stuck. In other words it does not respond to any taps gestures and you can not get out of this situation. Has anyone else encountered this problem? Is there anyway to work around it in code? 回答1: It seems it's an iOS

Full screen Window won't get keyboard input using KeyListener or KeyBoardFocusManager

主宰稳场 提交于 2019-12-01 15:31:08
问题 I'm having problems with getting my KeyBoardFocusManger to work with my full screen Window . No matter what, it just wont get keyboard input. I used a System.exit(0) and a println() to look for any call to the keypressed/released/typed method, but no errors are thrown. I've tried KeyListeners ; but after I read this, I changed to a KeyboardFocusManager , and the same thing still happens. I'm really getting desperate; from what I can judge, the Window is not getting focus of the keyboard? Here

Footer not 100% bottom crossbrowser

非 Y 不嫁゛ 提交于 2019-12-01 14:32:06
This is my first question here, so bare in mind that we may have some issues with code. But the thing is that i'm using a template (Cant remember what template atm) that is supposed to work in every browser but i cant get the code to the bottom. URL TO SITE IN 1 Comment. I'm pasting the HTML & CSS with Pastebin for you people that don't wanna see the page. Please bare in mind that the CSS is rough and not clean, same with the HTML as the page is under development. I searched here a couple of times without result, and couldn't get it going without messing up the whole page. I can only test this

Java - Screen turns black, when setting a JFrame to Fullscreen

给你一囗甜甜゛ 提交于 2019-12-01 14:09:57
I'm trying to draw something on a Canvas, add it to a JFrame and then set this JFrame to Fullscreen. My problem is: in fullscreenmode I only see a black screen. Before the screen turns black I shortly can see the pink background of the canvas. Drawing directly on a JFrame and then setting it to fullscreen works perfectly fine and I can see the testtext. I assume there is a problem with displaying the Canvas properly. Here is my code: public class FullscreenTest extends Canvas { private JFrame mainFrame; public FullscreenTest(){ this.mainFrame = new JFrame(); JPanel contentPane = (JPanel)

Show image in Full screen

陌路散爱 提交于 2019-12-01 13:49:26
I am working on Windows Phone 8 app and have a Image view like this in XAML: <Image Name="Image" Grid.Row="0" Visibility="Collapsed" Width="Auto" Height="Auto" Tap="Image_tap" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="1,1,1,1"/> Now i have this event called Tap="Image_tap" , when i tap on the image i want to show the same image in full screen without any bar on top and bottom, how to acheive this ? Toni Petrina Bottom bar is ApplicationBar and top bar is SystemTray . If you create a new page without the ApplicationBar and with SystemTray.IsVisible to false, you have a

Footer not 100% bottom crossbrowser

自作多情 提交于 2019-12-01 13:25:57
问题 This is my first question here, so bare in mind that we may have some issues with code. But the thing is that i'm using a template (Cant remember what template atm) that is supposed to work in every browser but i cant get the code to the bottom. URL TO SITE IN 1 Comment. I'm pasting the HTML & CSS with Pastebin for you people that don't wanna see the page. Please bare in mind that the CSS is rough and not clean, same with the HTML as the page is under development. I searched here a couple of

Making a single component full screen

眉间皱痕 提交于 2019-12-01 13:25:28
I'm trying to make a JPanel go full screen when you click a button, and back again when you press escape. I've managed to get the window to go full screen, but because of the whole thing about adding components removing them from other containers, I end up with a blank JPanel. I chose to make a separate JFrame to render full screen, the class of which is as follows (note that this is an inner class, so myPanel refers to a panel that already exists in MyJFrame): public class FullScreen extends JFrame { private static final long serialVersionUID = 1L; private GraphicsDevice device; private

Activity doesn't show in full screen

梦想的初衷 提交于 2019-12-01 13:08:10
I defined a new Activity on my project and I have some trouble with fullScreen. I defined in the manifest file like this: <activity android:name=".Test" android:launchMode="singleInstance" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" ............. > If I start the activity from another activity, I got the desired full screen. The problem is when I start this activity from a BroadcastReceiver - I need to open this activity inside a BroadcastReceiver something like this: public void onReceive(Context context, Intent intent) { Intent test = new