inputbox

Prompting a user with an input box? [C++]

有些话、适合烂在心里 提交于 2019-11-28 13:21:59
My goal is to simply use a pop-up box to ask the user for an input. I've searched around quite a bit and pretty much all the results say that creating a messageBox is really easy: MessageBox (NULL, "Hello World" , "Hello", MB_OKCANCEL); But that creating a pop-up that takes input is more involved and there isn't a straight forward way to do it. All of the results I could find on Google were dated somewhere from 2001 to 2005. I guess I'm here asking if some more straight forward solution has come about in recent years. Hopefully something nice and straight forward like in Java: int number =

Handle cancellation of InputBox to select range

会有一股神秘感。 提交于 2019-11-28 10:10:56
I have the following piece of code: dim selectRange as Range Set selectRange = Application.InputBox("Select your range", "Hello", , , , , , 8) When a user chooses Cancel the InputBox prompt, it returns error of Object not set . I have tried to use a Variant variable type but I can't handle it. In case of cancelling, it returns False , meanwhile in case of selecting a range, it returns Range of InputBox. How can I avoid this error? This is a problem when selection a range with an inputbox. Excel returns an error before the range is returned, and it carries this error on when you press cancel.

put an image as the background of an input box

旧时模样 提交于 2019-11-28 06:49:33
问题 I wanted to put an image in a msgbox . After I searched for it I found it impossible so I decided to put the image into the background of a input box on msgbox . But I can't find how to do that: Putting an image as the background of a input box Customize the input box like removing the border and change the background color 回答1: The built-in InputBox function doesn't support custom backgrounds. You can build custom dialogs using the Internet Explorer COM object, though: Set ie = CreateObject(

Which control to use for quick text input (inputbox)?

↘锁芯ラ 提交于 2019-11-28 04:16:35
问题 I need a quick text input dialog box (MessageBox with a single text box in it). Is there any control available or should I use a form? I just want user to enter some ID. And in other occasion I want 2 texboxes for username and password. 回答1: Microsoft.VisualBasic.dll has an InputBox method which you can use from C# to get a single string. For example (Add a reference to Microsoft.VisualBasic.dll first) using Microsoft.VisualBasic; string response = Interaction.InputBox("Enter a string:",

Input boxes with transparent background are not clickable in IE8

我们两清 提交于 2019-11-27 10:28:56
问题 I have an absolutely positioned input box in a form. The input box has transparent background: .form-page input[type="text"] { border: none; background-color: transparent; /* Other stuff: font-weight, font-size */ } Surprisingly, I cannot select this input box by clicking on it in IE8. It works perfectly in Firefox however. The same happens for background: none . When I change the background color: background-color: red; It works fine, so this is issue associated with transparent background.

How to add reference to Microsoft.VisualBasic.dll?

一世执手 提交于 2019-11-27 05:50:05
问题 using Microsoft.VisualBasic; Microsoft.VisualBasic.Interaction.InputBox("Favourite RPG?", "Game", "Cool!"); So what this does is basically ask the user their favourite RPG. Then it displays the default value. I know this is a small example but my program will not run because I'm getting this error: The type or namespace name 'Interaction' does not exist in the namespace 'Microsoft.VisualBasic' (are you missing an assembly reference?) Originally I found this here 回答1: You need to add a

VBA Password Input with Cancel Function

橙三吉。 提交于 2019-11-27 05:22:56
I have been using the standard password textbox written by Daniel Klann ( http://www.ozgrid.com/forum/showthread.php?t=72794 ) to hide the password inputs. The main problem is that the standard InputBox returns empty fields and cancel the same way. Application.InputBox however is capable of returning a False on cancel. Updating Daniel Klann's script to work with the Application.InputBox is beyond me. How would this be done? Here is Daniel's code: Option Explicit '//////////////////////////////////////////////////////////////////// 'Password masked inputbox 'Allows you to hide characters

Handle cancellation of InputBox to select range

空扰寡人 提交于 2019-11-27 03:27:57
问题 I have the following piece of code: dim selectRange as Range Set selectRange = Application.InputBox("Select your range", "Hello", , , , , , 8) When a user chooses Cancel the InputBox prompt, it returns error of Object not set . I have tried to use a Variant variable type but I can't handle it. In case of cancelling, it returns False , meanwhile in case of selecting a range, it returns Range of InputBox. How can I avoid this error? 回答1: This is a problem when selection a range with an inputbox

Styling HTML5 number input (spin box) in Chrome

Deadly 提交于 2019-11-26 20:42:39
问题 Chrome recently updated its input element styles. I really like the number input type, but their new style gives us rounded buttons that don't fit neatly into square input boxes. I've put in many attempts to get these inputs to change, but they won't budge. From the input[type='number'] itself to these buttons: input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { border-radius: none !important; background: black; color: red; } input:-webkit-autofill { background: black; color:

VBA Password Input with Cancel Function

放肆的年华 提交于 2019-11-26 11:33:50
问题 I have been using the standard password textbox written by Daniel Klann (http://www.ozgrid.com/forum/showthread.php?t=72794) to hide the password inputs. The main problem is that the standard InputBox returns empty fields and cancel the same way. Application.InputBox however is capable of returning a False on cancel. Updating Daniel Klann\'s script to work with the Application.InputBox is beyond me. How would this be done? Here is Daniel\'s code: Option Explicit \'////////////////////////////