473,399 Members | 4,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Copying TextBox contents to a listbox

Hy i'm new here... i'm having some problem with VB... i've learned vb 4 years ago and i'm finding dificult to learn this new vb visual. this is it. I have 3 textbox and this is what i want.."When i press a button3 the program should send the things from textbox1 , 2 and 3 to a listbox... lisbox item 0 with textbox1.text ... listbox item 1 with textbox2.text and so on... but i can't do it... anyone help?....

now another thing... i've done a calculator lol.. and i would like to make it a running program on windows.. how i do it?? thanks for now... and sorry for the bad English... i'm Portuguese lol
Feb 28 '07 #1
4 1790
Geoff
17
What version of Visual Basic are you running in?

Here is some code you may want to try for Visual Basic 6,0
Expand|Select|Wrap|Line Numbers
  1. List1.AddItem Text1.Text
  2. List1.AddItem Text2.Text
  3. List1.AddItem Text3.Text
Put those in the section for the object you run to do the task, it should work.
Feb 28 '07 #2
Killer42
8,435 Expert 8TB
Just wanted to let you know I have changed the subject of this thread to something which seemed more appropriate.
Mar 1 '07 #3
Nops. VB 2005 v8.... and thanks... but it didn't worked...
Mar 1 '07 #4
"I've found the solution :D ....

ListBox1.Items.Insert(0, TextBox1.Text)

thanks anyway.... but i still need help on puting my program into a runing program on windows.
Mar 1 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: David Gray | last post by:
Greetings all, I'm working on a program that allows a user to enter notes in a multiline textbox. I would like to be able to read the contents of the textbox (as records - one per line) and...
3
by: Sonoman | last post by:
Hello all: What is wrong with my code? I want it to update the new text on the textbox on every iteration of my loop. But instead the textbox updates all info at the end of the loop. I also have...
16
by: DataBard007 | last post by:
I have an Access97 application whose form contains many text boxes. What do I have to do in order to copy the contents of one of these text boxes to the clipboard? I want to do this so I can then...
28
by: kfrost | last post by:
I know this is probably simple but I have a C# form and the class for the form is called sbaSynch. I have a textbox name txtServerName. I'm creating a class to manipulate XML functions so I...
5
by: Ian Tedridge | last post by:
If I have 3 textboxes on a form plus 1 multiline textbox. How can I add the text from textbox 1 to 3 to the multiline textbox ? I can add the 3 textbox contents to one line of the multiline...
2
by: Mike | last post by:
I am trying to write a little program for my own use using VB2005 express edition. I have a list of peoples names in a file that I read into an array of strings. I am using a multiline textbox to...
9
by: zdrakec | last post by:
Hello all: Clearly, I'm not getting it! Here is the scenario: On a web page, I have two list boxen and a text box. The first listbox is populated at page load time (if it is not a postback)....
0
by: ezrollers | last post by:
I'm still learning C# and this is really annoying me. I need to modify the contents of a text box on a windows program. (Using windows app template on VS 2005) I have created a property on...
7
by: billa856 | last post by:
Hi, My project is in MS Access 2002. In that I have two forms which I am using for Shipping Entry. Now First Form(ShippingAlerts) Is fillup by persons working in customer services.and the Second...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.