Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Highlight in both views

Help
jasons
2011-11-10
2013-04-30
  • jasons
    jasons
    2011-11-10

    I tried to use hexBox.Select (start, len) to highlight a section. It only highlights the hex part although the string part is visible.
    If I use the mouse to highlight, then both get highlighted. Is there a better way to do this?
    I load the control in a dialog that receives the start,len params and populates the controls contents. so there is no user interaction at that time. I want to be able to load and then highlight a section.

     
  • Bernhard Elbl
    Bernhard Elbl
    2011-11-14

    To fix that you just need to modify hexbox class to the following…
    void PaintCurrentBytesSign(Graphics g)
    {
    if(_keyInterpreter != null && _bytePos != -1 && Enabled)
    {

    Best regards,
    Bernhard