Need a RTB to resize when contents change. Tried this code I found on the internet but it works oddly because it seems to change the height but not the width (even though a debug shows the value for rtbCurrent.Width = CInt(sf.Width) is calculated to 199 [from 40]).
Something simple like this would be really useful, though.
Dim g As Graphics = rtbCurrent.CreateGraphics
Dim f As Font = rtbCurrent.Font
Dim sf As SizeF = g.MeasureString(rtbCurrent.Text, f, rtbCurrent.Width)
rtbCurrent.Height = CInt(sf.Height)
rtbCurrent.Width = CInt(sf.Width)