M
Marcos Ribeiro
Hi
I have a Dialog Form with a RichTextBox control
** code ***
Dim f As New dlgForm()
If f.ShowDialog() = DialogResult.OK Then
f.RichTextBox1.SaveFile("c:\arq1.rtf") 'error here
End If
** end code ***
If I run the aplication I get a error:
"Object reference not set to an instance of an object."
but...
If I debug/step by step everything works fine
am I doing somthing wrong?
how to prevent this?
Thanks a lot
Marcos
I have a Dialog Form with a RichTextBox control
** code ***
Dim f As New dlgForm()
If f.ShowDialog() = DialogResult.OK Then
f.RichTextBox1.SaveFile("c:\arq1.rtf") 'error here
End If
** end code ***
If I run the aplication I get a error:
"Object reference not set to an instance of an object."
but...
If I debug/step by step everything works fine
am I doing somthing wrong?
how to prevent this?
Thanks a lot
Marcos