#7 Pasting a hex string

closed
nobody
None
5
2009-11-20
2008-03-26
No

Hi there,

In my opinion it should be possible to paste a hex string (e.g. 05af 12be 323f) into the hex box. This should be recognized as a hex string and interpreted as such, not just taking the ASCII values of the characters.

I wrote some code to do this, it basically tries to parse a string as a hex string and if it fails, it inserts it as normal data (the "old" behaviour).

I only changed the Paste() method a little bit and added a TryConvertHexStringToByteArray(string) method.

Have a look, and do whatever with it, if you like it.

Otherwise, it's a nice control you did!

Regards,
Rolf

Discussion

  • Rolf Baenziger

    Rolf Baenziger - 2008-03-26

    Modified hexbox source

     
  • Bernhard Elbl

    Bernhard Elbl - 2008-03-28

    Logged In: YES
    user_id=1788435
    Originator: NO

    Thanks for this hint, i will consider this to implement in the next release as a "Paste Special"-feature.

     
  • Bernhard Elbl

    Bernhard Elbl - 2008-03-28
    • milestone: --> Next Release (example)
     
  • Bernhard Elbl

    Bernhard Elbl - 2009-11-20
    • status: open --> pending
     
  • Bernhard Elbl

    Bernhard Elbl - 2009-11-20
    • status: pending --> closed
     
  • Bernhard Elbl

    Bernhard Elbl - 2009-11-20

    Implemented as Copy Hex and Paste Hex feature

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks