VS 2008 Way Of Of Saying Textboxes 1-9 'Bob'
Mar 20, 2009i am new to visual basic express and i am currently learning. Is there a way of of saying textboxes 1-9 = "Bob". [code]
View 4 Repliesi am new to visual basic express and i am currently learning. Is there a way of of saying textboxes 1-9 = "Bob". [code]
View 4 RepliesOn my form, i've got some textboxes and some richtextboxes. I'm using the following code, to search through the text properties of each of the two types of control. see below:-
For Each ctl As Control In Me.Controls
If ctl.Text = "7777" Then
ctl.Text = "found the sevens"
End If
Next
What i'd like to do is isolate the textboxes only, is there a way to do that? I tried this but i got an error:-
For Each box As TextBox In Me.Controls
If box.Text = "7777" Then
box.Text = "Found"
End If
Next
My goal is to, Pull information from a websight's textboxes in IE into my program textboxes. and to later Put changes from into other values on the websight from my program into it. The sight has multiple textboxes, on different frames. within it.I need to keep it as a exsiting open browser instead of making a new one. only gotten as far as finding the open internet explorer window, by useing
[Code]...
I've created one form with TextBox1, TextBox2, ComboBox1. Then when I click one of the ComboBox1 items I want to load the saved settings and display them in the TextBox1 and TextBox2. The settings are:
[Code]...
I have 5 columns of text boxes 5*5=25 textboxes and I want to put buttons that will stop every column like on off.
View 32 RepliesI have the same context menu for several text boxes. How can I tell which text box called the menu?
View 4 Repliesi have 3 textboxes that they have the first the number 1 the second the number 2 and the third number 3 when i click the button the label show the addition 1+2+3=6 i want the third textbox with the help of a new button not to participate in the addition and the label to show 3 like this 1+2=3 and with the click of the button again to participate and the label will show again 6 like this 1+2+3=6
View 14 RepliesI have datagridview with some columns that the user can hide or show using a contextmenu. Below that I have some textboxes inside a tablelayoutpanel which the user can write into to filter the data in the datagridview.
But if the user hides a column in the datagridview, I want the textbox below to disappear as well and the other textboxes automatically take up the empty space.
I made some screenshots so you will be able to understand it better:
When the user hides the column:
The column named "Totaal prijs" has now gone and so has the corresponding textbox below. But the columns in the datagridview now stretch nicely to take up the free space. How can I do the same with the textboxes?
When my form loads i create an array of richtextboxes. Since they're created dynamically i don't know how to do events like, textchanged or click, for each richtextbox. I'm pretty new to vb and to the forum. I'm not sure if i've posted this in the correct place on the forum if not apologies.
View 5 RepliesI'm making a program where at the click of a button, a textbox is added to the form.
Basically, right now my code looks like this:
----------------
(Public)
Dim i As Integer = 0
Dim s As String = ""
[Code]...
Now when the user clicks a different button, I want it to get the value of the textboxes that were created in the code.
So I need printing help about school now.Let's say I have a form shaped same as the printer paper size, and I put 4 textboxes in 4 corners of the form. Now I want to print those 4 textboxes in 4 corners of the paper.
To print the actual form in the paper, you know what Im saying?
I have two text boxes that i divide together and i get a answer of 0.434931506 i want it to be 43 as a whole number or say 43.49.[code]
View 10 Replieshow can i take the numbers from selected textboxes and to drive the even numbers to label 1 and the odd numbers to label2
View 18 RepliesThis time i have a RTB (look.text) that contains no more than 12 lines (it updates according to a listbox but it will never exceed 12 lines of text). The lines contain numbers like this:2345,0,0,1,36,... and the last line will always be a number like: + or -123456789I also have 12 textboxes (a0.text to a11.text). How do i write each line from the RTB in a textbox?-i can't show you my code because it looks stupid and no matter what i tried i always ended up getting the same error "Index was outside the bounds of the array"-
View 4 Repliesvb 2008 drag and drop replacing text in txt1 with text intxt2 and replacing txt2 with txt1 and all the other textboxes. more than one time. So far I h get it to swap the text from txt1 to txt2. example txt1 = "one" and txt2 = "two" after drag and drop txt1 = "two" and txt2 = "one" now we need to keep swapping with 2 more textboxes. Here is the sode so far.
Public
Class Form1
Dim textboxes()
[code]......
I have 10 textboxes in my formthey all name the following
txtLtr0
txtLtr1
txtLtr2
txtLtr3
txtLtr4
txtLtr5
txtLtr6
txtLtr7
txtLtr8
txtLtr9
What i want is to set them visiable false but not one by one through a for loop how would i do that because how would concatinate numarical value with alphabates (i.e txtLtr and 0, 1,2 and so on)...i.e For t as integer = 0 to 9 txtLtr&t.visiable = false' what shoud i type here, i need this line of code
I have two forms in my project, Form1 and Form2. In Form1 there is one TextBox called Text1, and in the Form2 there is TextBox called Text2. I have one button in Form1, called Button1. When I click on Button1 I want that Form2 open and in Text2 is text from Text1.
Code for Button1:
Me.Hide
Form2.Show
Form2_Shown:
Text2.Text = Form1.Text1.Text
And Form2 open but in Text2 there is no text.
I've got a textbox on a screen - RateHr_3.
I'm binding it like this
If TypeOf ctl Is TextBox Then
Dim txt As TextBox = TryCast(ctl, TextBox)
If txt.Tag IsNot Nothing Then
[CODE]...
Now - here's the really odd part! See the attached image. I call up a vendor - go to change the LANGUAGE FROM (Finnish) to another language - when I leave the DROP DOWN for LANGUAGE FROM it puts garbage in the RateHr_3 field. It actually fills the field with "System.Data.DataRowView" - as you can see in the bottom piece of the attached image.I'm having a really hard time debugging this - How do you put a watch on a textbox in VS2008?
I have a number of textboxes in my program, and a few other controls with text in them.I want to loop through a select number of textboxes (1-10 in this case, for testing), and output their combined data into a string.Here is what I created, with the help of someone on this forum earlier.[code].....
View 4 Repliesi have a panel docked at the top of my form with a button and a textbox. Also have a webbrowser docked below the panel filling the rest of the form.when i run the form and maximize it, the panel and webbrowser resizes correctly as they are docked but the button and textbox stays where it is, how would i make the button and textbox always stay center screen so if i maximize it will be center.
View 2 RepliesDo multiline textboxes have a character limit?Someone who was using my program said that he has some textfiles that are about 50 KB and when he goes to copy/paste that data into a multiline textbox, he only gets about 31.9KB of the data.My MaxLength property says 32767, which basically matches the 31.9 KB, however, most of what I read on the internet says Multiline Textboxes can hold unlimited characters and that MaxLength is actually ignored when a textbox is in multiline mode.
View 2 RepliesI need to pass to the BackgroundWorker1_DoWork a stream and 3 textboxes.I can pass the 3 textboxes as an array but the stream complicates it:
BackgroundWorker1.RunWorkerAsync() <== from here?
i have a small program with random generator when i try to transfer the textboxes to excel i have problem?
View 5 Repliesi have one label one button and 5 textboxes and i need to see in the label one number that randomly will choose from numbers that allready are in a group of 5 textboxes
View 21 RepliesI have a grid which users enter their contact information - fname,lname then phone number.I want to know how i can when the usr clicks a button create an extra row of input boxes..And if possible be told how to make the form scrollable, so i can have many, many input boxes present when required.
View 8 RepliesI am creating a sailing score points program and want to create something like: what TEXTBOX has got biggest number that is between (TEXTBOX IS BETWEEN NOT THE NUMBER) [ and ] And it's subtracts that number what is in that box from the textbox3 when possible then how to do like:
under textbox are four checkboxes Named: DNS, DNF, DSQ and OCS and they give so much points how many are the sailers + 1. The setting name is Sailers
(Scoring system is ISAF low-point 2005-2008)
Alright it's been awhile since I messed with this project, so here goes. It's an appointment scheduler and everything works except two things: I can't edit existing appointments and it only records the current time, not the timeslot I click on when I add a new appointment. If I try to edit an existing appointment it doesn't get the row data, just shows me blank text boxes. I assume I have to have those text boxes read the info from the database, but I don't know how to do that. This is how it looks:
[Code]...
[code] If i place a textbox using the above code how could i program the textboxes that apper in run time
View 2 Repliesa collection of 10 textboxes to take the odd numbers and drive them to label1
View 21 RepliesI have a program with a lot of textboxes.They are all named Textbox[numbers].I have 39 textboxes.I want to take the text of textboxes 1-26, in order, and output their text into the clipboard, with a loop.I do not know how to make it so it only loops through 1 - 26, and make it not include 27 - 39.
View 7 Replies