Using UserForm as modeless form (float form) to only show information without the need of user interaction is fine. BUt in most cases in AutoCAD, you would need some sort of user interaction. So, you need to add an AcFocus control to the form in order for the form to be able to stay focused. It is a very strange way to do things (that is why I said that I do not recommend it in previous reply). Also, when the form is floating, you must realize that user can which active drawing from one to other. If the floating form showing data related to one drawing, when the active drawing changes, you must either somehow automatically update the form's data, or close the form, so use is not confused to face a drawing and see data on the form for different drawing...
When displaying form as Modal dialog, you CAN STILL UPDATE AutoCAD view for reflect the change you made to the entities in the drawing, or update the current view (zoom/pan...).
I wrote following code for a small UserForm to show how to update an AcadText entity is updated in AutoCAD via a dialog box:
Option Explicit
Private entText As AcadText
Private Sub cmdPick_Click()
Me.Hide
Set entText = PickTextEntity
If Not entText Is Nothing Then
cmdUpdate.Enabled = True
txtText.Text = entText.TextString
Else
cmdUpdate.Enabled = False
End If
Me.show
End Sub
Private Sub cmdUpdate_Click()
If Len(Trim(txtText.Text)) = 0 Then
MsgBox "Text value is required!"
Exit Sub
End If
If Not entText Is Nothing Then
entText.TextString = Trim(txtText.Text)
entText.Update
End If
End Sub
Private Function PickTextEntity() As AcadText
Dim ent As AcadEntity
Dim pt As Variant
On Error Resume Next
ThisDrawing.Utility.GetEntity ent, pt, vbCr & "Pick a text entity:"
If Not ent Is Nothing Then
If TypeOf ent Is AcadText Then
Set PickTextEntity = ent
Exit Function
End If
End If
Set PickTextEntity = Nothing
End Function
See the video clip below: