G
Gary
hi...
how do I successfully resize a richtextbox within the main form, my code as
follows...
Private Sub frmMainForm_Resize(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Resize
rtfTextArea.Height = frmMainForm.ActiveForm.Height - 10
rtfTextArea.Width = frmMainForm.ActiveForm.Width - 100
End Sub
as expected I get a 'System.NullReferenceException' error, how do I fix this
Thanks,
Gary
p.s. it so much easier in VB6?
how do I successfully resize a richtextbox within the main form, my code as
follows...
Private Sub frmMainForm_Resize(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Resize
rtfTextArea.Height = frmMainForm.ActiveForm.Height - 10
rtfTextArea.Width = frmMainForm.ActiveForm.Width - 100
End Sub
as expected I get a 'System.NullReferenceException' error, how do I fix this
Thanks,
Gary
p.s. it so much easier in VB6?