I'm currently working on "transferring" my vb6 application to vb.net. I'm doing a complete rebuild from the ground up - which allows me to address issues that have arisen over the life of my vb6 application and I'm also learning .net as I work. My primary concern though, is that on one of my forms I display all the information about a customer (Name, Address, Notes, Phone Number, Assigned Salesman, etc.) in VB6, I put all the textboxes in a frame and disabled the frame so they boxes looked "normal", meaning there were still white with black text. In .net, if I add the textboxes to a
I Just know how to Expand the Treeview when the user click on the checkbox, but how to uncheck all the child nodes and un-expand the treeview ?so if the treeview nodes is not clicked then unable to expand...
How do I disable a textbox the second time? here is my code, In form load the textbox is disabled, unless the user will input an idnumber that is in the database. But what if the user will input an idnumber that is in the database then, input again another that is not, That is where this code comes in, but it has problems, it doesnt disable the textbox in the event of a mouse click, what would be the proper way of doing this?
I want to disable | from bleeping... see attachment. The problem is the thing in the top left corner which indicates where in the text are you. What is this thing called anyway?
I am building a form and i want to prevent certain characters from being typed in a textbox? I want to disable the " and ' characters in some of my textboxes
Possible Duplicate:if i type in textbox 1,3 then checkbox1 and checkbox3 will be disabled not checked !! i want to disable checkboxes according to textbox textFor example --- if i enter 1,4 in textbox then checkbox1 and checkbox4 will be disabled and even after that when i type 2,3 in textbox then checkbox2 and checkbox3 will be disabled and checkbox1 and checkbox4 will be enabled again ...Remember : i wanna use this coding with unlimited no. of checkboxes...How to do this ?The code mentioned below can checked according to textbox text --but i want to disabled ony not checked ....
Protected Sub TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles MyTextBox.TextChanged Dim separator As Char = ","c
For the life of me, I cant seem to do this. In the textbox_textchanged method, I want Button to disable in textbox has anything else besides whole positive integers.If text box has positive integers, i want button1 to enable.
How do I disable that the user can't paste data into a textbox, and how do I disable the contextmenustrip of the textbox the one that always appears with the copy-paste options two.
I have set KeyPreview Property of the form to True and in the KeyDown event capturing the 'Enter' key to navigate to the next control on the form (using Me.SelectNextControl). But for one particular textbox i dont wish to perform the form's keydown event instead i want that when the user keys ctrl+enter it should perform some particular task. I have noticed that when the keypreview is on the keydown event of the textbox isn't executing.. The following is the code i have used for textbox keydown
I'm quite new to VB.net (and VS 2008), so I'm afraid my question might be basic, but I'm not sure how to solve it.I have a winform with three textbox fields and a button. All textbox fields must be filled before the user can click the button to continue. To this end I would like to disable the button as long as there is at least one empty textbox.
If I had only one textbox field, it would be easy for me to do. In the Textbox1_Leave event I would check if Textbox1.Text is not empty and if so, set Button1.Enabled = True.But what should I do if I have three textboxes? Have three event handlers, one for each textbox? Or is there a way I'm not familiar with?
if booking closed column values is equal or more than textbox1 text then the book button in gridview will be disabled for each gridview item whose booking closed time is greater and equal to textbox1 time ..
how to disable textbox when click on radiobutton using VB script on Visual Studio.Net 2005.currently i used this coding but it is not functioning. Private sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged If RadioButton1.Checked Then Me.textBox1.Visible = True
i've read where you can disable the default context menu for a textbox. But what I neeed to do.. is remove the default and add my own context menu items... Thus far, i've not foudn a way yet
I have a text box set up so when someone presses enter it performs a function, how can I disable the "Ding" sound that the computer makes when someone presses enter?
Using winform w/vb.net.When I have form w/a textbox and one right-clicks on the textbox a context menu pops up w/copy/paste options. How do I disable this from poping up (I want to use the right-click for my one function)?
I have a textbox on my form and I am showing a contextmenustrip when the user right clicks on it. That all works but the only problem is the copy,paste,cut etc menu is appearing above it. How can I disable the copy,paste and cut menu from appearing?
yeah i wanna make a proper system to hide the I beam cursor in a textbox, you know, when you click on a textbox, the cursor appears so u can know where to write, etc... i want it disabled, is there such thing possible with a code? or do i really have to play around with focus? i hate playing around with object focus :P
I got some textboxes that I can't write in, and no it is not because it is enabled = false. It is strange but I click on a textbox, type something but the textbox stays empty. It is focussed but I can't write in anything I tried this with two textboxes and still having the same problem.I didn't add any new code that could do this, I don't know what's wrong
I am confused what will happen, when I disable a timer. Will it finish the process and then disable or will it immediately disable without completing process? for example
[Code]....
I want to run getMessage from somewhere else, so I need to disable timer during that time to be asured not to override anything and also before timer disable it should complete that function code.
My application has to do a lot of work when I press as single button. When he is doing this he got to changes sometimes a few tings in a textbox. Sometimes the calculation can take more then 10 - 15 minutes, is there any way to make it doesn't say not responding? And you are able to work further in the program. I did try backgroundworker but I'm not able to edit the textbox.
I am using the following code to filter on a textbox value using the BindingSource.Filter function.I thought this was the right code based on my many searches.
When do a debug, it shows the correct value which is "432360ac-ac35-4101-8d46-f2cbd5b5dc52.There are spaces in the end of this value and it is exactly the same in the SQL database with the spaces. ValueID is a column in my SQL server. It does not filter the records in my dataset.I tried replacing the ValueToFilter.Text with my actual value as shown above including the space at the end and it filters the records just fine exactly as I want it to. Although I obviously need it to work for multiple values from my SQL server.
I am having some trouble using string.Format + textBox.
Dim formatStr As String = "{0,30}{1,15}{2,15}{3,10}" Dim i As Integer txtShowAll.Text = (String.Format(formatStr, "Video Name", _ "Year Produced", "Running Time", "Rating"))
[code]....
I used this code, and nothing works.I am trying to output a header, then the data under it.
i made 3 textbox and 3 button. when button click, button name can put textbox. but when i try to run it, button name can go only 1 textbox,the other 2 textbox does not working. I will put my code, Please chk it what is wrong.
Private Sub b_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btna.Click, btnb.Click, btnc.Click Dim btn As Button btn = sender If TextBox1.Focus() Then