streamwriter.writeline positioning?
I am using streamwriter.writeline to write code to a textfile for example:
theStreamWriterp.WriteLine(
Me.Label3.Text &": " &Me.ComboBox2.Text & _" " &Me.Label16.Text &": " &Me.ComboBox4.Text)Is there a way to apply positioning to the elements of the writeline. (for example if I wanted me.label16.text to start at a certain distance from the left margin)
Thanks
poon23
[938 byte] By [
poon23] at [2007-12-24]
I understand what you are saying (kind of like..a formatted document?)
you could "tab" it in (indent it) but there is no set way AFAIK about how to tell it to "place this over there at that point" - like a guided laser! :-)
to tab it in...try:
theStreamWriter.WriteLine(VbTab & "Me.Label3.Text"......................) 'and the rest of the code continues
maybe you can also just add spaces " " but that would maybe be a bad way of doing things unless you really need to
since its a textfile - not many options perhaps - maybe if it were something like an RTF file, you could use the RTB Control (rich text box) and format your text there and save it
does this help at all?