textbox

What WPF threading approach should I go with?

时光总嘲笑我的痴心妄想 提交于 2020-02-02 11:40:13
问题 I'm writing a WPF application (new technique, mostly I've been writing in WinForms). My goal is to make UI responsive whole time, and I've read that it can be achived using Threading/BackgroundWorker. I think that I should use background worker to put there time consuming methods. But I plan to use method *m_AddLog(string logText)* which should append text to textbox. This method I want to call from main UI thread aswell as from background worker, so messages would be sent immediatelly while

FolderBrowser with textbox in VB.NET

久未见 提交于 2020-02-01 17:19:27
问题 This bounty has ended . Answers to this question are eligible for a +50 reputation bounty. Bounty grace period ends in 21 hours . Chad is looking for a canonical answer : “@Smith's answer works great for vb.net, but the code sample is very reluctant to run without throwing exceptions after having converted it via the Telerik converter. It would benefit the community to have the same useful class for use in C# projects as well without requiring a DLL include. My comments on @Smith's answer

using control arrays

落花浮王杯 提交于 2020-01-30 13:13:21
问题 i am having trouble with .net again. i have a series of 10 text boxes. I want to be able to populate them from an array and read there values into another array. In vb6 I would create a text box array with 10 text boxes / indices. I could then populate them by txtbox(i).text = arrVal(i) and to reference them arrVal(i) = txtbox(i). I am stumped I can create 10 text boxes on a form if I have to, but I want them somehow tied to each other as they were in vb6. Any help in how I could do this

WindowStyle None and touch input

吃可爱长大的小学妹 提交于 2020-01-30 08:25:47
问题 In Windows 10, when using touch device like Surface, touching an input control like a TextBox in a not maximized window, causes moving the whole window up, so that the user can see what he is typing (if keyboard is docked). But it does not happen when WindowStyle is set to none . Why it does not happen? We need this behavior in our app. Can it be fixed on WindowStyle=None? I found it's not connected with it's style - there are no build in triggers or something. We need WindowsStyle=None for

c# TextBox border changes when it gets disabled compared to other disabled TextBox(es)

∥☆過路亽.° 提交于 2020-01-29 17:54:17
问题 I have a really strange problem. I have multiple TextBoxes for username/passwords, and a CheckBox beside every user/pass group. When user clicks on the CheckBox, and if he checked it, the username and password TextBox beside it become enabled and focus is set to username TextBox. If user unchecked the CheckBox the TextBoxes beside it become disabled. However the border of one TextBox stays different than other disabled TextBoxes. See: I've thought it was a focus problem, so I've changed the

how do I set disabled attribute on html textbox in asp.net-mvc?

时光毁灭记忆、已成空白 提交于 2020-01-29 06:59:04
问题 I am trying to dynamically set the disabled attribute on the html textbox and having issues I tried this in my view: string disabledString = ""; if (SomeLogic) { disabledString = "disabled"; } Html.Textbox()...new Dictionary<string, object> { { "maxlength", 50 }, { "disabled", readOnlyState } })%> As you can see I am setting the disabled attribute to "" or disabled but when I test, it seems to be disabled in either case. Am I missing something? 回答1: This was ugly for us, due to the fact that

Text box in android

流过昼夜 提交于 2020-01-25 21:05:05
问题 I wonder where can I get the text box (as shown in diagram below) at the left panel of android studio ? As I can see, there only has textFields which has a line below the text but not text box. 回答1: It's called EditText . I believe in Android Studio it is the TextField which has a line below. Just using a different theme. To get the TextBox look you need to use one of the old themes like `@android:style/Theme.Light for your application. 回答2: There is no such object "TextBox" in Android. What

Text box in android

只愿长相守 提交于 2020-01-25 21:04:21
问题 I wonder where can I get the text box (as shown in diagram below) at the left panel of android studio ? As I can see, there only has textFields which has a line below the text but not text box. 回答1: It's called EditText . I believe in Android Studio it is the TextField which has a line below. Just using a different theme. To get the TextBox look you need to use one of the old themes like `@android:style/Theme.Light for your application. 回答2: There is no such object "TextBox" in Android. What

After setting ActiveX textbox to empty value, previous text briefly appears in box before disappearing again

孤人 提交于 2020-01-25 09:34:08
问题 I have created a data entry form on a spreadsheet using ActiveX TextBoxes, these are coupled with a submit details button and a clear data button, both at the end of execution set the text boxes back to blank to allow them to be refilled by the next user of the tool. However I ave noticed that after the boxes are set to "", when the user proceeds to begin filling the form in again each time the user selects one of the text boxes the previous entry details very briefly flash in the text box

Excel VBA Textbox_Exit Event Handler

旧城冷巷雨未停 提交于 2020-01-25 07:52:09
问题 At a road block here. Simple user form using three text boxes, one for user id, two to enter serial number using hand scanner. User loads excel file, userform.show loads, user enters id then simple validation to verify numberic number, then focus set on first textbox, user scans barcode to input serial number, again simple validation to ensure numeric and length, same with last textbox, scan serial number, validate first textbox entry matches second textbox entry. Hand scanner is used to