Skip to content

Instantly share code, notes, and snippets.

@naranjja
Last active August 29, 2015 14:19
Show Gist options
  • Save naranjja/1ac8d4b6a14ba8af81af to your computer and use it in GitHub Desktop.
Save naranjja/1ac8d4b6a14ba8af81af to your computer and use it in GitHub Desktop.
Dim file As System.IO.StreamWriter
'Abre el escritor de archivos de texto ("lugar", escribir en nueva línea?)
file = My.Computer.FileSystem.OpenTextFileWriter("c:\test.txt", True)
file.WriteLine(ComboBox.SelectedItem)
'El texto de las opciones de un combo box se almacena en ComboBox.SelectedItem
file.WriteLine(TextBox.Text) 'El texto de un text box en TextBox.Text
file.WriteLine(HScrollBar.Value) 'El valor de un scrollbar horizontal en HScrollBar.Value
file.WriteLine(VScrollBar.Value) 'El valor de un scrollbar vertical en VScrollBar.Value
file.WriteLine(ProgressBar.Value) 'El valor de un progress/loading bar en ProgressBar.Value
file.WriteLine(CheckBox.Text) 'El texto de un check box en CheckBox.Text
file.WriteLine(RadioButton.Text) 'El texto de un check box en RadioButton.Text
file.Close() 'Se cierra el escritor de archivos de texto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment