Jul 25, 2008

Visual Basic 6.0 Help Needed - Adding lines to a textbox without delete

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > VB Programming
Pages: 1, 2

free web hosting

Visual Basic 6.0 Help Needed - Adding lines to a textbox without delete

iGuest
easy my friend
Visual Basic 6.0 Help Needed

Replying to Trap FeedBacker

Quite easy just add this to a command button
And put 3 textboxes on your form then cut & paste this :

Dim first As Integer
Dim second As Integer
first = Text1.Text
second = Text2.Text
Text3.Text = first + second


If your looking at some basic help try http://vbhowto.Netboarder.Com/
It only has a few things but its very basic but handy stuff :)

G

-reply by Gobble

Reply

iGuest
Transfering Results
Visual Basic 6.0 Help Needed

Replying to Trap FeedBacker
If I'm to assume you're using number values the code would be as follows:

Results=Val(Text1.Text)+Val(Text2.Text)
Text2.Text=str$(Results)

I hope this resolves your situation


-reply by Leo F

Reply

iGuest
How To Make A new line without deleting current line or adding to end of it
Visual Basic 6.0 Help Needed

1 you need to set the text box property to multiline=true or you have no chance

2 text1.Text = text1.Text + "WHATEVER" 0r text2.Text, + vbcrlf

Tada

CHEERS

-reply by john

Reply

iGuest
VB6 Text Book Control
Visual Basic 6.0 Help Needed

I have a text box and it's Multiple line option is enabled.
The Text books contains the following text
"This is normal"
"This is Bold"
"This is Italic"
I would be grateful if you kindly let me reply to get the desired results as mentioned.

Thanks
C

-question by Jayanta Bardalai

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2
Recent Queries:-
  1. visual basic adding multiple line to a text box - 1.40 hr back. (1)
  2. visual basic and add items to a textbox - 1.99 hr back. (1)
  3. display text in textbox from right vb6.0 - 2.74 hr back. (1)
  4. how to set a line in a visual basic 6 text box - 3.52 hr back. (1)
  5. add file content into a text box vb 6.0 - 3.57 hr back. (1)
  6. visual basic 6 code remove first letter text1.text - 4.46 hr back. (1)
  7. add textbox example vb6 - 8.05 hr back. (2)
  8. how to display the answers in the calculator made in visual basic 6.0 - 8.38 hr back. (1)
  9. new line in visual basic 6.0 - 9.26 hr back. (1)
  10. vb 6.0 write files from new line - 10.25 hr back. (1)
  11. add new line to textbox in vb 6.0 - 10.53 hr back. (1)
  12. vb 6.0 two lines in textbox - 10.66 hr back. (1)
  13. textbox next line visual basic 6 - 11.24 hr back. (1)
  14. visual basic textbox new line - 11.71 hr back. (1)
Similar Topics

Keywords : visual, basic, 6, 0, needed, adding, lines, textbox, delete

  1. Arrays And List Boxes
    VB6 Codes needed (2)
  2. Ftp In Vb 2005
    badly needed! (0)
    Hello, i was wondering real badly. Does anybody know how to make an FTP browser or uploader in
    Visual Basic 2005 (also in 2008 - but they are the same) because i am making an add-on for my
    webbrowser. Or atleast can they send me a link. But please do not send me a link and tell me to
    search it - i've given up searching for 2005. Many many thanks if someone's found one for
    me. Rep++++....
  3. Mysql In Visual Basic
    Mysql in visual basic (5)
    I'm am trying to create a script so that visual basic 6 can interact with mysql Any ideas?....
  4. Beginning Visual Basic
    (4)
    CAn anyone give me a guide on VB? I've decided to learn it and I need something to work with....
    thanks ....
  5. My Guidewriter
    Simple Visual Basic program to aid in making guides (3)
    I wrote this about 3 months ago for a different forum (Runescape Forums, one I'm currently a
    G-Mod of. ) and I figured I'd share it with you. All it is, is a text editor with built in
    buttons and menus for adding BBCodes. For example, if you wanted to make something bold, you type
    what you want, highlight it, find bold in the text menu and click it. The nicest thing is, you
    can save, and you don't have to worry about a forum failing after taking hours to write a guide.
    I highly suggest you try it if you write guides often, the members on RsForums really lo....
  6. Some Visual Basic 6.0 Uncompleted Projects
    (2)
    hi friends, i have some good complete and incomplete projects in visual basic 6.0. and now i
    want to sale them for some credit points. 100 credit points only....
  7. Visual Basic And Internet Transmission
    is it possible to encrypt a http request? (2)
    I've used VB before which is why im asking this in the VB forum and not any other forum because
    i know with any other language other than PHP i have no chance so i dont actually know if this is
    possible with VB WHat i want to do is change a HTTP request that is sent to a server so that a web
    filter cannot understand it and block the request. Before anyone says that i shouldnt do that its
    hacking etc...its not...im only doing it to see if it can be done. if i wanted to get around a
    filter i wouldnt bother making my own tool I'd use someone else (skript kiddy-ish ....
  8. Visual Basic 6
    (5)
    Well currently I have the working model edition for Visual Basic 6.0 which won't allow me to
    make .exe files. I was looking into buying the Learning Edition but I can't find it cheap or in
    stock anywhere. I want to try and find it for under $100 used or new. If anyone has it, and
    would like to make the .exe file for me if I send you the files that would be great, or if anyone
    could help me find it for cheap.....
  9. Visual Basic Express Edition Beta
    How does it work? (2)
    Hey, I'm using (sorta) Visual Basic Express Edition Beta 2 (long name, eh?), but I can't
    find any good tutorials on it; all of them are for visual basic.net... Is this the same thing? I
    don't think so, and if I'm right, where can I go to get help for it?....
  10. Help Needed
    (7)
    Hello guys...I made a program but when i run it i get a debug because i put the wrong timers action
    i tried to change it but still: Private Sub Form_Load() Let lblTime.Caption = Let Timer1.Enabled =
    True Let Timer2.Enabled = False End Sub Can anybody tell me how to put the timers auction on the
    second line?....
  11. Free Copy Of Visual Studio.net Pro
    STUDENTS ONLY (11)
    Visit THE SPOKE for your free copy of Visual Studio.NET.....
  12. The Rtf Textbox Control, And Asian Characters
    If someone could shed some light... (5)
    I'm currently working on a project for school. I have to make a program for a client, and my
    client is the head of the Japanese Dept. I have run into a small problem however... After finally
    managing to work out a way to actually get VB to display Asian characters, using the .textRTF
    property of the richtextbox control. But, in doing this, it turns it into something like this...
    CODE
    {\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\froman\fprq1\
    ;fcharset128 MS UI Gothic;}{\f1\fnil\fcharset0 MS Sans Serif;}} ....
  13. [tutorial] Visual Basic 6 Minimize To Tray
    Minimize to Tray (4)
    This example will "minimize" your program to the system tray when you click on a button, and restore
    it when you click the system tray icon. For this example you'll need: 1 Form - Form1 1 button -
    Command1 Add a Module to your project, and ad this code: CODE ' Create an Icon in System
    Tray Needs Public Type NOTIFYICONDATA cbSize As Long hwnd As Long uId As Long uFlags As Long
    uCallBackMessage As Long hIcon As Long szTip As String * 64 End Type Public Const NIM_ADD = &H0
    Public Const NIM_MODIFY = &H1 Public Const NIM_DELETE = &H2 Public Const WM_MOUSEMOVE ....
  14. [tutorial] Visual Basic 6 Removing List Duplicates
    Removing List Duplicates (2)
    Removing duplicates from lists is something that you'll have to put up with if you're, say,
    parsing names off Outwar. Many delete-duplicate for...next loops are very slow, especially when you
    have thousands of names to loop through several thousand times for each name on the list. This
    function that I made is, in my opinion, the best and quickest way to do it without too many annoying
    and slow for loops (good for lists 1k +). It compares lstA to lstB. Anything that is in both lists
    is added to lstC. To change it so that anything that isn't in both lists is ....
  15. [tutorial] Visual Basic 6 Downloading Images From A Webpage
    Downloading Images from a webpage (2)
    Here's how to grab an image off the internet easily. You'll need an Inet on your form to do
    this. You can always get rid of your string variables and substitute the actual strings: Code:
    CODE Dim localFile As String Dim remoteFile As String Dim fNum As Long Dim b() As Byte
    remoteFile = "http://www.site.com/image.jpg" localFile = "C:\image.jpg"
          fNum = FreeFile b() = Inet1.OpenURL(remoteFile, icByteArray) Open
    localFile For Binary As #fNum Put #fNum, , b() Close #fNum MsgBox "Done....

    1. Looking for visual, basic, 6, 0, needed, adding, lines, textbox, delete

Searching Video's for visual, basic, 6, 0, needed, adding, lines, textbox, delete
advertisement



Visual Basic 6.0 Help Needed - Adding lines to a textbox without delete



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE