window

Create Window larger than desktop (display resolution)

我是研究僧i 提交于 2020-01-11 04:57:05
问题 I need to resize a window larger than screen resolution or size of desktop, programmatically & preferably also manually. Since MS-Windows XP/Vista disallows a window size larger than screen, does anybody have any ideas to work around this limitation? I trying to make pan effect on a laptop to give me more space to work. An older laptop with a smaller LCD size did have such a feature. See this: http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/98/Q_21832063.html 回答1: If

How to create a handler for window closing in Java Swing

好久不见. 提交于 2020-01-11 02:34:12
问题 I'm trying to call a function to do cleanup when my window (created with Java Swing) is closed . In my initialization code I do this: public class FormLogin extends JFrame{ private void initComponents(){ ... setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosed(java.awt.event.WindowEvent evt){ formLoginWindowClosed(evt); } }); ... } } But the function "formLoginWindowClosed" is never called when I

What is application's site of origin and when to use it

淺唱寂寞╮ 提交于 2020-01-10 21:18:26
问题 What is application's site of origin When to use it How is the build action of a resource file associated with it What is the difference between pack://application:,,, and pack://siteoforigin:,,, 回答1: The site of origin is the location (i.e. the physical folder) of the application executable assembly (i.e. the .exe that the user runs). The URI is thus relative to that folder. Example: You have C:\Programs\MyApp\MyApp.exe C:\Programs\MyApp\MyIcon.bmp C:\Programs\MyApp\Icons\MyOtherIcon.bmp The

Resize image map on window resize

China☆狼群 提交于 2020-01-10 05:00:07
问题 I'm trying to resize an image map on window resize event. The closest I've gotten is to use a mouseclick event, but it needs to be window resize for what I'm doing. I'm using Firefox 3.5.5 I'm using jquery somewhat. Here's my example - the area button I want to resize on window resize is in the top left (click on it to resize map and area button): http://www.whitebrickstudios.com/foghornstour/imagemap3.html Any help would be appreciated! Thank you, Rich 回答1: I wrote some simple function to

Send parameter to Bootstrap modal window?

百般思念 提交于 2020-01-09 12:47:09
问题 I have a problem, I cannot pass any parameters to a modal window (using Bootstrap 3), I tried using the solution stated in this link, but I cannot make it work: Dynamically load information to Twitter Bootstrap modal (Solution kexxcream user). But pressing the button, the display does not show me anything, apparently blocks, attached a picture below: http://i.imgur.com/uzRUyf1.png I have attached the code (same code post above left); HTML Code: <div id="myModal" class="modal hide fade"> <div

Fading out a window

元气小坏坏 提交于 2020-01-09 09:06:53
问题 I am currently developing a wpf c# application. I have added to event triggers to the xaml of the form to fade in when the window loads and fades out when the window closes. The fading in works perfectly without any problems but the fading out is not working. I have it set up so the window fades in when it loads, has a timer to last 5 seconds, and then calls the form fade out event. However, the window doesn't fade out it just closes straight away no animation. Below is the code I have for

Fading out a window

Deadly 提交于 2020-01-09 09:05:54
问题 I am currently developing a wpf c# application. I have added to event triggers to the xaml of the form to fade in when the window loads and fades out when the window closes. The fading in works perfectly without any problems but the fading out is not working. I have it set up so the window fades in when it loads, has a timer to last 5 seconds, and then calls the form fade out event. However, the window doesn't fade out it just closes straight away no animation. Below is the code I have for

bring a console window to front in c#

旧街凉风 提交于 2020-01-09 04:56:44
问题 How can I bring a console application window to front in C# (especially when running the Visual Studio debugger)? 回答1: It's hacky, it's horrible, but it works for me (thanks, pinvoke.net!): using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Threading; public class Test { [DllImport("user32.dll")] [return: MarshalAs(UnmanagedType.Bool)] static extern bool SetForegroundWindow(IntPtr hWnd); [DllImport("user32.dll", EntryPoint="FindWindow", SetLastError =

How to open in default browser in C#

醉酒当歌 提交于 2020-01-08 12:01:48
问题 I am designing a small C# application and there is a web browser in it. I currently have all of my defaults on my computer say google chrome is my default browser, yet when I click a link in my application to open in a new window, it opens internet explorer. Is there any way to make these links open in the default browser instead? Or is there something wrong on my computer? My problem is that I have a webbrowser in the application, so say you go to google and type in "stack overflow" and

c# or Javascript set window zoom on 100%

放肆的年华 提交于 2020-01-06 14:07:33
问题 How do you programatically zoom in on a web page in a WebBrowser control in Visual C# or with JavaScript? This is my try: if (window.screen.width=='600') { document.write ('<body bgcolor="#4FB8CB" style="zoom: 55%">') ;} else if (window.screen.width=='800') { document.write ('<body bgcolor="#4FB8CB" style="zoom: 75%">') ;} else if (window.screen.width=='1024') { document.write ('<body bgcolor="#4FB8CB" style="zoom: 100%">') ;} else if (window.screen.width=='1152') { document.write ('<body