I have tried this using regions, but I found it to be unreliable and slow. Perhaps I am not calling the api in the proper order. I have the following code on the the enter event for each textbox, changing the region coordinates for each field. The first field that loads is highlighted with a black border rectangle with red text, each occurance after has no bounding rectangle and text is blue.
Should I be doing this a different way and do you have an example?
Code: Select all
gdViewer1.RemoveAllRegions(); gdViewer1.AddRegion("Data", 100, 300 + (397 * 0), 2200, 200, ForegroundMixMode.ForegroundMixModeUNDEFINED, Color.Blue); gdViewer1.SetRegionBorderWidth(1, 3); gdViewer1.SetRegionColor(1, Color.Red); gdViewer1.Redraw();