window

Javascript window.open pass values using POST

拜拜、爱过 提交于 2019-12-27 13:34:37
问题 I have a javascript function that uses window.open to call another page and returning the result. Here is the section of my code: var windowFeatures = "status=0, toolbar=0, location=0, menubar=0, directories=0, resizable=1, scrollbars=1"; window.open ('http://www.domain.com/index.php?p=view.map&coords=' + encodeURIComponent(coords), 'JobWindow', windowFeatures); My problem now is that I am passing to much data for the GET to handle and I need to pass it using the POST method. How can I

Keep form open when clicking on another application

时光总嘲笑我的痴心妄想 提交于 2019-12-25 17:49:13
问题 I've got an application that I'm trying to use as a keyboard to type special characters. It currently has this function (not my code!): Protected Overrides ReadOnly Property CreateParams() As CreateParams Get Dim baseParams As CreateParams = MyBase.CreateParams Const WS_EX_NOACTIVATE As Integer = &H8000000 Const WS_EX_TOOLWINDOW As Integer = &H80 baseParams.ExStyle = baseParams.ExStyle Or CInt(WS_EX_NOACTIVATE Or WS_EX_TOOLWINDOW) Return baseParams End Get End Property This makes it so the

Can't use implemented namespace System.Windows

微笑、不失礼 提交于 2019-12-25 17:45:01
问题 I have a UserControl with a context menu, when the user clicks on an item in the context menu I want to let another user dialog pop up. I designed a user dialog and searched for a method to let it pop up. I found the easy variant with: Window myWindow = new Window { Title = "myTitle".. }; and then myWindow.ShowDialog(); Then I implemented the reference to System.Windows and used the line: using System.Windows; But when I try to write my Code above Visual studio says type or namespace not

Shell script to mount windows network location in linux machine

可紊 提交于 2019-12-25 16:48:15
问题 I have two questions here. I am able to mount a windows network path in my Ubuntu machine by doing following: sudo mount -t cifs -o username=user \\\\my_windows\\test /net/loc All the files and folders present in Windows machine is now available in Ubuntu machine with path '/net/loc'. Here are my doubts: I can see all files of windows in linux path. Is it possible to create files/folders in Linux path(the mount path where windows path is mounted) and it will be reflected in Windows machine? I

Start multiple instances of the window service

百般思念 提交于 2019-12-25 09:17:00
问题 I have created a windows service that reads an IBM MQ messages and processes them. My Win Service is currently designed OnStart it triggers a timer interval which calls the function that calls the class which does all the work (See code below). What I am trying to accomplish is to scale (if that is the right word) the application, if there are a lot of messages on the queue to process we would like to run multiple instances/threads of the service. Ideal situation would be to have some type of

WTSSendmessage before stopping a service

て烟熏妆下的殇ゞ 提交于 2019-12-25 08:58:14
问题 Am trying to display a message box once the user tries to stop a service. For this I used WTSSendmessage API... And I called the function once the SERVICE_CONTROL_STOP event occurs.. Am I right in the above step?? Because am not getting a message box once the user trie to stop the service.. Please guide me... Below is my code snippet:: case SERVICE_CONTROL_STOP: WTSSendMessage = (fptr1)GetProcAddress(hinstLib, "WTSSendMessage"); BOOL ret = WTSSendMessage(WTS_CURRENT_SERVER_HANDLE, dwSession,

When window is split on startup, how to open the file on the right side?

拜拜、爱过 提交于 2019-12-25 08:17:03
问题 How do I open a file foo, associated with a major mode (in this case python, so it's a foo.py), on the right side of a split window (and the window is split only for this major mode)? The following code doesn't work at all (it displays the scratch buffer on both sides). (defun my-eval-after-load-python() (split-window-horizontally) ) (eval-after-load "python" '(my-eval-after-load-python)) 回答1: For setting up a particular major-mode that matches a file name or file extension, see the variable

PHP if-statement screen width

偶尔善良 提交于 2019-12-25 07:18:26
问题 I want to check if the screen width is higher than 1024 pixels, to set sidebar + 50px I tried this piece of code (but the sidebar doesnt load on 1024+): <?php $arjunaOptions = arjuna_get_options(); ?> <?php //calculate sidebar and content area ratio if ($arjunaOptions['sidebarDisplay'] != 'none') { $available = 920; $available2 = 970; $contentArea = $arjunaOptions['contentAreaWidth']; $sidebar = $available - $contentArea; $sidebarlarge = $available2 - $contentArea ; $sidebarLeftRight = floor(

File or Folder rename to lower case In C# using DirectoryInfo/FileInfo.MoveTo()

允我心安 提交于 2019-12-25 05:36:09
问题 I have a program that renames files or folders to lower case names. I have written this code: private void Replace(string FolderLocation, string lastText, string NewText) { if (lastText == "") { lastText = " "; } if (NewText == "") { NewText = " "; } DirectoryInfo i = new DirectoryInfo(FolderLocation); string NewName = ""; if (checkBox2.Checked) { if (i.Parent.FullName[i.Parent.FullName.Length - 1].ToString() != "\\") //For parents like E:/ { NewName = i.Parent.FullName + "\\" + i.Name

accessing control in parent window from child window in c#

匆匆过客 提交于 2019-12-25 04:46:20
问题 I have a main "parent" window contains a button and a textbox. I have another window "child" window which fires when I enter some text in the textbox and click the button on the main window. now the child window contains another textbox and a button. what I need to do is to enter some text in the textbox on child window then when I hit the button on the child window the textbox on parent window should get updated with the text I entered from the child window.. here is the sample: Form1.cs