Hello I would like to use a label like a message box.
The label size would have to resize itself up the changing messages.
Is this possible?
If it is possible can you provide a sample code?
Thanks a bunch
Hello I would like to use a label like a message box.
The label size would have to resize itself up the changing messages.
Is this possible?
If it is possible can you provide a sample code?
Thanks a bunch
You can set its Height and Width properties (which are in twips):
Me.Label33.Width = 2000
Me.Label33.Height = 1000
Further to Paul's comment, I did a small test which was successful
Code:Private Sub Command2_Click() On Error GoTo Err_Command2_Click Dim origsize As Integer origsize = Me.Label1.Width Me.Label1.Width = origsize * 2 Me.Refresh Exit_Command2_Click: Exit Sub Err_Command2_Click: MsgBox Err.Description Resume Exit_Command2_Click End Sub
Something screwed up during posting. I was trying to edit previous post and add jpgs to show the effects of the code.