The below seems to work. But I just saw similar code the did:
Dim lPF2 = New PARAFORMAT2
Now I'm wondering, do I need the New?
If not, why not?
Thanks
Dim lPF2 As PARAFORMAT2
lPF2.dwMask = RichEdit.PFM_SPACEBEFORE Or RichEdit.PFM_SPACEAFTER
lPF2.cbSize = Marshal.SizeOf(lPF2)
lPF2.dySpaceAfter = 1440 * lSpaceAfter
lPF2.dySpaceBefore = 1440 * lSpaceBefore
SendMsg(hwnd, EM_SETPARAFORMAT, 0, lPF2)