elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Recopilación Tutoriales y Manuales Hacking, Seguridad, Privacidad, Hardware, etc


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación General
| | |-+  .NET (C#, VB.NET, ASP)
| | | |-+  Programación Visual Basic (Moderadores: LeandroA, seba123neo)
| | | | |-+  Abir un texto en un textbox?
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Abir un texto en un textbox?  (Leído 2,523 veces)
kuki06

Desconectado Desconectado

Mensajes: 20


Ver Perfil
Abir un texto en un textbox?
« en: 27 Abril 2006, 03:52 am »

Hola gente, estaba buscando algun code para abrir un archivo .txt en un textobox..

Saludos!
Kuki06


En línea

.:CorTeX:.

Desconectado Desconectado

Mensajes: 135


The Gimp User


Ver Perfil WWW
Re: Abir un texto en un textbox?
« Respuesta #1 en: 27 Abril 2006, 04:00 am »

Busca!!


Cuantas veces se ha respondido esto?
Código:
Dim file_data$
Open "c:\archivo.txt" for append as #1
While NOT EOF(1)
text1.text=text1.text & file_data$ & vbnewline
Wend
Close #1

Creo que esta malo xD


« Última modificación: 27 Abril 2006, 04:03 am por .:CorTeX:. » En línea

Orgullosamente Colombiano


slipknot-hack

Desconectado Desconectado

Mensajes: 95


Usa Kubuntu 6.0


Ver Perfil WWW
Re: Abir un texto en un textbox?
« Respuesta #2 en: 27 Abril 2006, 04:16 am »

Pues yo he usado este code mira:

Código:
Private Sub Command1_Click()
    Dim file As String
    Dim Msg As String
   
    Dim fileno As Integer
    Dim i As Integer
   
    Dim t(10000000) As Byte
   
    file = "C:\Archivo.txt"
    fileno = FreeFile()
   
    Open file For Binary As fileno
        For i = 1 To FileLen(file)
            Get fileno, i, t(i)
            Msg = Msg + Chr(t(i))
        Next
    Close fileno
   
    Text1.Text = Msg
End Sub

Code de: ranefi

Pruevalo a ver este si Funciona, yo lo he provado ya :P

Saludos

Slipknot xD
En línea

kuki06

Desconectado Desconectado

Mensajes: 20


Ver Perfil
Re: Abir un texto en un textbox?
« Respuesta #3 en: 27 Abril 2006, 04:22 am »

Gracias ranefi y a ti slipknot por hacerme llegar el code

Anda 100% bien.. ;)
En línea

_Sergi_


Desconectado Desconectado

Mensajes: 842



Ver Perfil
Re: Abir un texto en un textbox?
« Respuesta #4 en: 27 Abril 2006, 04:28 am »

¡¡¡ .... !!!!  :-X

Ayuda a guardar datos en un textbox
http://foro.elhacker.net/index.php/topic,83025.0.html

Textbox
http://foro.elhacker.net/index.php/topic,105479.0.html

Write
http://foro.elhacker.net/index.php/topic,78908.0.html

De un textbox, al bloc de notas
http://foro.elhacker.net/index.php/topic,97036.0.html

Guardar a un .txt

http://foro.elhacker.net/index.php/topic,119982.0.html

DUDAS: Tecla ALT, Función CASE, como GARDAR una cosa.

http://foro.elhacker.net/index.php/topic,79400.0.html

Ayuda para GUARDAR y ABRIR textos *.txt en una TextBox.
http://foro.elhacker.net/index.php/topic,78225.0.html

Tutorial: Abrir y Guardar Texto, Control Textbox
http://foro.elhacker.net/index.php/topic,78689.0.html

Cadenas
http://foro.elhacker.net/index.php/topic,100489.0.html

leer un archivo txt
http://foro.elhacker.net/index.php/topic,117691.0.html

timer,variable, y caja de texto
http://foro.elhacker.net/index.php/topic,83950.0.html

problemas al guardar el contenido de un listbox en vb6
http://foro.elhacker.net/index.php/topic,73758.0.html

Escribir un .txt con vb
http://foro.elhacker.net/index.php/topic,73936.0.html
En línea

Proyecto de Ingeniero
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
No puedo abir el serv-U 2.5e
Dudas Generales
luistrea 7 4,331 Último mensaje 2 Julio 2011, 22:09 pm
por luistrea
Borrar texto de un textbox
.NET (C#, VB.NET, ASP)
BrokerJoker 4 6,444 Último mensaje 30 Enero 2012, 20:09 pm
por Sk9ITk5Z
editar un texto para mandarlo a un textbox
.NET (C#, VB.NET, ASP)
_CrisiS_ 6 3,902 Último mensaje 2 Febrero 2012, 08:10 am
por BlackZeroX
Dar margin a un texto dentro de un TextBox?
.NET (C#, VB.NET, ASP)
z3nth10n 6 4,655 Último mensaje 28 Junio 2013, 17:02 pm
por z3nth10n
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines