I have two text boxes in two different forms. On form 1 I have a button too. There is a numeric value in the text box in form1 when a user clicks on the button in form1, form2 loads and the value in form2 shows the same value as the textbox in form1 but +1.
For example if the first textbox had 4 when the user clicks on the button the textbox in form 2 will show 5.
I have tried frm2.textbox1.Text +1 = Me.textbox1.Text
Is it possible to have a Textbox on a form that when the user inputs data, ( during Runtime )that data remains in the Textbox for good and the Textbox then becomes read only ? Is it also possible to make it so that the CD with the programme on, is in the PC when the programme is being used. Perhaps writing the Textbox data back onto the CD ?
I have a database I am creating with about 50 users over a network. There are about 6 groups of users and these users are spread across 10 branches. I want to block/allow users from particular forms and views. For example I want branch users forms to be filtered by their branch number but depending on the group they are in they can only see some forms. i.e. 50 users, 10 branches, each branch has about 5 ppl of where 1 is in group A and 4 are in group B. I want all users that belong to branch 1 to see the information they enter, but Group B enter data but cannot approved or delete, and group A can enter, approve and delete. So then. On my login form I have the user type his/her username but the i want LEAVE function to update 2 textbox where I have named GroupName and BranchNo. Basically to run a query and look for the username and return in one textbox that user's groupname and the other textbox the user's branch no. This information will be used to filter forms and block the user from certain controls. This is the code I have so far but still can't figure how to display the results.
Private Sub UsernameTextBox_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles UsernameTextBox.Leave 'Make Connection to database
[Code].....
It keeps highlighting the BranchNumber and UserGroup and giving error "Value of type 'String' cannot be converted to System.Data.OledbCommand
I recently learned how to send the contents of a vb textbox to a flash textbox which is in an swf embedded on my vb form using a vb button to trigger...
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load AxShockwaveFlash1.LoadMovie(0, "C:sample.swf") End Sub
[code]....
This workds great, however what i REALLY want to do is the other way around.... I want to click a flash button thats in the embedded swf and have it put text into my VB textbox... The text I want to dislay is:"well done!" SO Far:I have built a simple swf with a dynamic textbox and a button. textbox is named "sampleField" and its var is: "sampleFieldVar"...button instance named "Button1" is an instance of "button".
using as2 I have put the following code onto the button: (read this somwhere online) on(press){
I have a lot of control array textboxes called txt(1) to txt(320) on form2. I have a textbox1 on form1 with a click evet that says textbox1.text= form2.txt(1).text but it gives an error (txt is not a member of form2). I tried disabling option explicit, option strick and option infer. Still won't work. My code is to long for this place maybe a short version osf the code. Do I need to make a Public MyArray(15,15,15,15) as string, in the Module1 then copy txt(n).text to the array or is there a way to access txt(n).
Public Class Form2 DPrivate Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Loadim txtBox(340) As TextBox
QuoteImports System.Data.OleDb Public Class admin Inherits System.Windows.Forms.Form Dim mypath = Application.StartupPath & "\db1.accdb" Dim connection As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=d:\db1.accdb;Persist Security Info=False;")
I have a form with a text box in a toolstrip. I would like to make the width of the textbox relative to the form size when the form is resized. The following code works fine except when you click the restore button from a maximized state.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim textbox1 As New TextBox
[Code].....
When this row GroupBox1.Controls.Add(textbox1) and GroupBox control are being deleted from Form, the TextBox isn't created on the Form after the event is fired.
I was using 2 forms, the first one has general data capture and the second one is a calendar form. On Form1 I have mulitple windows controls. A Textb ox and beside a Calendar button. When I click on a Calendar Command button, it should open calendar form and once the user selects the date, the date should be placed in the text box on the form1. Identical to this on Form1 I need multiple textboxes that needs date to be captured.I cannot use a global variable for this as I need to validate mulitple text boxes. To explain this, I have a Transaction Date and Date Received. I need to validate whether Transaction date is prior Date Received or not? I dont want to use several global variables b'coz I might need multiple validations as above. Please help me on this.
I am having trouble getting the Student Name entered in the Student Name Form to change the Text titles of the GroupBox's on the Main Form and Schedule Form. I understand the logic of what needs to be done to some extent, but I am having trouble coming up with the correct coding.
Below is a snippet of the Student Name Form code that I tried most recently just to see if I could get any change to happen to the other 2 Forms when the Accept Name button was clicked. As of yet, I cannot get a change to happen at all in the groupboxes of the other Forms.[code...]
I have a date selector on mdi parent that updates a property when date is changed. When I open a child form, it grabs the property just fine. However if I change the date again after the child is open the date does not change on the child unless I close and reopen the form as expected. What would be the best way to automatically update all open child forms when the date is changed on the parent at anytime? running a timer to parse the date property is impractical.
I'm sure the answer to this is simple but i don't know it so I'm asking. in my second form i have a multiline textbox that i want to write via a button on my first form. i want the button to take the text on the textbox in my first form(form1) and add it to my the text box on my second form (form2). i thoute i could do this with the flowing codeForm2.textbox1.text += me.textbox1.textbut nothing happens when i press the button o and to further my confusion i also need it to write to the next line every time it adds a number. i also need to access these numbers to do things like "average" ,""mean","sum". i think that that might be done using some property of strings and arrays but i don't know what property that is.
form2 button here is my full sorce code follwed by my form2 souce code
How can I access another form's text box in the current form in order to retrieve data from that particular text box to save its content taken as a parameter for an INSERT statement in the current form?
I'm making an input form where a user can add a new contact by filling in 4 textboxen and 1 combobox. Now I want to make a button on the form where the user can click on so that a new line of input field appear so that a user can add another new contact. And when the user clicks on the submit button that it saves all the input fields to the SQL. (this part I can make).
I'm only want to know if you can make a button to add a new line of textboxen en comboboxen and how I can make it?
And Is this possible in Visual Studio 2005 (vb.net)?
I want Call a TextBox from another Form Example I create the TextBox on Form3 and call that TextBox on Form2.
Dim TextBoxes As List(Of TextBox) = New List(Of TextBox) Dim tbWidth As Integer = 50 Private Sub Form3_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load[code].....
How to clear textbox if the value equal zero i have several textbox's with currency look at the picture i am posting you will see the price of 2.99 then under neath for other box'shas this $0.00
I have three forms similar to the one in the link. I want add a Total textbox to every form. The total will add the values that will be entered in the montant textbox. So the total will take the specific value of that texbox for all the entries that the user will have and add them. [URL]
I would make a textbox in the form, then I add a Microsoft Speech Object Library reference. Then using Microsoft Speech, I would have the text-to-speech option. In the same class I would add this
''' <summary> ''' Starts text to voice. ''' </summary>
[Code]....
So now the problem is that the text in txtanswer would be something like, "hello" or whatever it is. When I try to read it from the SoundThreading class, the text in txtanswer returns empty.
I have 3 forms, the form one is an intro, form 2 loads a user and form 3 displays a user. i use the streamread / writer to load values on form 2, then when successful it loads form 3 and the vaules are transferred perfectly, now to save time i changed the start up form from form1 to form2 (saves having to skip every time). so after having all the code load and transfer i wanted to see it in action and then the issues started.
Form1 shows form2 and form2 shows form3. From form2 I can change the value of the textbox in form1 but from form3 I can't change the textbox value in form2.Please can you look at the application and correct it so I can change the value in the textbox of form2 from form3.
I set form.Opacity = 0.5, textbox1.Multiline = True, textbox1.Height = 60. when running the code, i key-in any text in Textbox, until textbox's Vertical scrollbar visible, when i move up the scrollbar, system hang and wait few minute then system become normal back.
Im using visual studio 2008, i have created 2 webforms frm1 and frm2,,,i have a button in frm1 which i would like it to onclick populate textbox values to the other form(frm2)...
I have a form, with one textbox. This textbox should be useable with commands such as examples:/title TITLE OF FORM so the form title is TITLE OF FORM (without /title infront) - I have tried with splits, serveral of string formats and much more but without any luck and i don't seem to find it on google with search tags: TextBox, Command, Strings etc.
I'm using visual basic 2008. I am done coding the CRUD... but i want it to have confirmation first. Then, i tried using panel, it works. but, my interface looks not organize. Is it possible to access the values in the text boxes from the other form?
For example: the client's information text box are on the form1 and once add button is click, the confirmation box will pop out. and the pop out box is in the form2. Is it possible to access the form1 text boxes from the form2?