Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

help with textbox problem

phph Member Posts: 393
I used to know the answer to this, but have forgotten. im using a textbox as a status output. when its updated i want to do this :

[code]
status.Text = status.Text & vbNewLine & "Connected"
status.sellength(eof)
'i want the last line of the textbox to have focus. much like
'a chat client. i remember it had something to do with selecting
'commands. easy question for u ppl ;)
[/code]
[red]ph[/red][blue][/blue][red]t[/red]
[red]http://fade.to/phet[/red]
[blue]12d.hypermart.net[/blue]
[red]toadthefreak@hotmail.com[/red]
«1

Comments

  • Hadji_13Hadji_13 Member Posts: 274
    status.selstart = len(status)
    status.sellength = 0
    Or something of the like?
    Of the top of my head, that's the nearest I can get.

    Hadji

    : I used to know the answer to this, but have forgotten. im using a textbox as a status output. when its updated i want to do this :
    :
    : [code]
    : status.Text = status.Text & vbNewLine & "Connected"
    : status.sellength(eof)
    : 'i want the last line of the textbox to have focus. much like
    : 'a chat client. i remember it had something to do with selecting
    : 'commands. easy question for u ppl ;)
    : [/code]
    : [red]ph[/red][blue][/blue][red]t[/red]
    : [red]http://fade.to/phet[/red]
    : [blue]12d.hypermart.net[/blue]
    : [red]toadthefreak@hotmail.com[/red]
    :

  • BarkeeperBarkeeper Member Posts: 335
    : status.selstart = len(status)
    : status.sellength = 0
    : Or something of the like?
    : Of the top of my head, that's the nearest I can get.
    :
    : Hadji
    :
    : : I used to know the answer to this, but have forgotten. im using a textbox as a status output. when its updated i want to do this :
    : :
    : : [code]
    : : status.Text = status.Text & vbNewLine & "Connected"
    : : status.sellength(eof)
    : : 'i want the last line of the textbox to have focus. much like
    : : 'a chat client. i remember it had something to do with selecting
    : : 'commands. easy question for u ppl ;)
    : : [/code]
    : : [red]ph[/red][blue][/blue][red]t[/red]
    : : [red]http://fade.to/phet[/red]
    : : [blue]12d.hypermart.net[/blue]
    : : [red]toadthefreak@hotmail.com[/red]
    : :
    :
    :

    i didn't test it:
    [code]
    StartPos=len(status.text)
    status.Text = status.Text & vbNewLine & "Connected"
    status.SelStart=Startpos
    status.Sellength=0
    [/code]
    ------------------------------------------
    Only stupidity of mankind and the universe
    are infinite, but i'm not sure concerning
    the universe. A. Einstein

  • DarQDarQ Member Posts: 1,625
    txtTextbox.Selstart = len(txttextbox)




    : : status.selstart = len(status)
    : : status.sellength = 0
    : : Or something of the like?
    : : Of the top of my head, that's the nearest I can get.
    : :
    : : Hadji
    : :
    : : : I used to know the answer to this, but have forgotten. im using a textbox as a status output. when its updated i want to do this :
    : : :
    : : : [code]
    : : : status.Text = status.Text & vbNewLine & "Connected"
    : : : status.sellength(eof)
    : : : 'i want the last line of the textbox to have focus. much like
    : : : 'a chat client. i remember it had something to do with selecting
    : : : 'commands. easy question for u ppl ;)
    : : : [/code]
    : : : [red]ph[/red][blue][/blue][red]t[/red]
    : : : [red]http://fade.to/phet[/red]
    : : : [blue]12d.hypermart.net[/blue]
    : : : [red]toadthefreak@hotmail.com[/red]
    : : :
    : :
    : :
    :
    : i didn't test it:
    : [code]
    : StartPos=len(status.text)
    : status.Text = status.Text & vbNewLine & "Connected"
    : status.SelStart=Startpos
    : status.Sellength=0
    : [/code]
    : ------------------------------------------
    : Only stupidity of mankind and the universe
    : are infinite, but i'm not sure concerning
    : the universe. A. Einstein
    :
    :

    [HR]
    Gadver, ik wot ha'k hjir no wr?
    [HR]

    [GREEN]Anyone cares to translate?[/GREEN]

  • phph Member Posts: 393
    : txtTextbox.Selstart = len(txttextbox)
    :
    :

    :
    : : : status.selstart = len(status)
    : : : status.sellength = 0
    : : : Or something of the like?
    : : : Of the top of my head, that's the nearest I can get.
    : : :
    : : : Hadji
    : : :
    : : : : I used to know the answer to this, but have forgotten. im using a textbox as a status output. when its updated i want to do this :
    : : : :
    : : : : [code]
    : : : : status.Text = status.Text & vbNewLine & "Connected"
    : : : : status.sellength(eof)
    : : : : 'i want the last line of the textbox to have focus. much like
    : : : : 'a chat client. i remember it had something to do with selecting
    : : : : 'commands. easy question for u ppl ;)
    : : : : [/code]
    : : : : [red]ph[/red][blue][/blue][red]t[/red]
    : : : : [red]http://fade.to/phet[/red]
    : : : : [blue]12d.hypermart.net[/blue]
    : : : : [red]toadthefreak@hotmail.com[/red]
    : : : :
    : : :
    : : :
    : :
    : : i didn't test it:
    : : [code]
    : : StartPos=len(status.text)
    : : status.Text = status.Text & vbNewLine & "Connected"
    : : status.SelStart=Startpos
    : : status.Sellength=0
    : : [/code]
    : : ------------------------------------------
    : : Only stupidity of mankind and the universe
    : : are infinite, but i'm not sure concerning
    : : the universe. A. Einstein
    : :
    : :
    :
    : [HR]
    : Gadver, ik wot ha'k hjir no wr?
    : [HR]
    :
    : [GREEN]Anyone cares to translate?[/GREEN]
    :
    :

    [red]ph[/red][blue][/blue][red]t[/red]
    [red]http://fade.to/phet[/red]
    [blue]12d.hypermart.net[/blue]
    [red]toadthefreak@hotmail.com[/red]

  • DarQDarQ Member Posts: 1,625
    using the compact DarQ method surpasses anything huh? hahaha:)))

    : : txtTextbox.Selstart = len(txttextbox)
    : :
    : :

    : :
    : : : : status.selstart = len(status)
    : : : : status.sellength = 0
    : : : : Or something of the like?
    : : : : Of the top of my head, that's the nearest I can get.
    : : : :
    : : : : Hadji
    : : : :
    : : : : : I used to know the answer to this, but have forgotten. im using a textbox as a status output. when its updated i want to do this :
    : : : : :
    : : : : : [code]
    : : : : : status.Text = status.Text & vbNewLine & "Connected"
    : : : : : status.sellength(eof)
    : : : : : 'i want the last line of the textbox to have focus. much like
    : : : : : 'a chat client. i remember it had something to do with selecting
    : : : : : 'commands. easy question for u ppl ;)
    : : : : : [/code]
    : : : : : [red]ph[/red][blue][/blue][red]t[/red]
    : : : : : [red]http://fade.to/phet[/red]
    : : : : : [blue]12d.hypermart.net[/blue]
    : : : : : [red]toadthefreak@hotmail.com[/red]
    : : : : :
    : : : :
    : : : :
    : : :
    : : : i didn't test it:
    : : : [code]
    : : : StartPos=len(status.text)
    : : : status.Text = status.Text & vbNewLine & "Connected"
    : : : status.SelStart=Startpos
    : : : status.Sellength=0
    : : : [/code]
    : : : ------------------------------------------
    : : : Only stupidity of mankind and the universe
    : : : are infinite, but i'm not sure concerning
    : : : the universe. A. Einstein
    : : :
    : : :
    : :
    : : [HR]
    : : Gadver, ik wot ha'k hjir no wr?
    : : [HR]
    : :
    : : [GREEN]Anyone cares to translate?[/GREEN]
    : :
    : :
    :
    : [red]ph[/red][blue][/blue][red]t[/red]
    : [red]http://fade.to/phet[/red]
    : [blue]12d.hypermart.net[/blue]
    : [red]toadthefreak@hotmail.com[/red]
    :
    :
    [HR]
    Gadver, ik wot ha'k hjir no wr?
    [HR]

    [GREEN]Anyone cares to translate?[/GREEN]

  • KDivad LeahcimKDivad Leahcim Member Posts: 3,948
    : txtTextbox.Selstart = len(txttextbox)

    VB.Net won't like that line...
  • DarQDarQ Member Posts: 1,625
    Really?? And why is that?? Please elaborate.

    : : txtTextbox.Selstart = len(txttextbox)
    :
    : VB.Net won't like that line...
    :

    [HR]
    Gadver, ik wot ha'k hjir no wr?
    [HR]

    [GREEN]Anyone cares to translate?[/GREEN]

  • lionblionb Member Posts: 1,688 ✭✭
    : : txtTextbox.Selstart = len(txttextbox)
    :
    : VB.Net won't like that line...
    :
    Was question about VB.net?
  • KDivad LeahcimKDivad Leahcim Member Posts: 3,948
    : : : txtTextbox.Selstart = len(txttextbox)
    : :
    : : VB.Net won't like that line...
    : :
    : Was question about VB.net?
    :

    No, but if one wants to be compatible with future versions of VB and wants to keep in decent programming habits...
  • KDivad LeahcimKDivad Leahcim Member Posts: 3,948
    : Really?? And why is that?? Please elaborate.
    :
    : : : txtTextbox.Selstart = len(txttextbox)
    : :
    : : VB.Net won't like that line...
    : :
    :
    : [HR]
    : Gadver, ik wot ha'k hjir no wr?
    : [HR]
    :
    : [GREEN]Anyone cares to translate?[/GREEN]
    :
    :

    Doesn't support default properties.
«1
Sign In or Register to comment.