afwasborstel
05-29-2006, 02:17 PM
I'm creating a program in wich one can type text in a textbox and that text displayed over a bitmap. With drawstring etc.. Now I want so simulate a caret so that it looks that the bitmap behaves like a textbox...only much bigger and stuf..
I can get the position with TextBox1.SelectionStart and then with measurestring calculate the position where I want my caret to be(in same position as in the textbox). I use a timer to get the SelectionStart..
Only problem is when I looke in my systemmonitor...the usage of memory is decreasing rapidly and the drops and starts rebuilding...So I guess this is not such a good idea...
Are there any methods out there wich would help me to resolve the selection start in a textbox without the use of a timer?
I can get the position with TextBox1.SelectionStart and then with measurestring calculate the position where I want my caret to be(in same position as in the textbox). I use a timer to get the SelectionStart..
Only problem is when I looke in my systemmonitor...the usage of memory is decreasing rapidly and the drops and starts rebuilding...So I guess this is not such a good idea...
Are there any methods out there wich would help me to resolve the selection start in a textbox without the use of a timer?