Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Hexa Converting

Hexa Converting

Scheduled Pinned Locked Moved C#
questioncsharp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    WaleedH
    wrote on last edited by
    #1

    Hello all how can i convert an int32 to hexadecimal and string to hexadecimal? i am working at C# Thanks alot

    T R 2 Replies Last reply
    0
    • W WaleedH

      Hello all how can i convert an int32 to hexadecimal and string to hexadecimal? i am working at C# Thanks alot

      T Offline
      T Offline
      techieboi
      wrote on last edited by
      #2

      Not too sure what your question means but to display an int in Hex, you can use the ToString() method as below. As for converting a string to Hex, I don't quite understand what you mean. int convertMe = 102; string converted = convertMe.ToString("X");

      1 Reply Last reply
      0
      • W WaleedH

        Hello all how can i convert an int32 to hexadecimal and string to hexadecimal? i am working at C# Thanks alot

        R Offline
        R Offline
        Robert Rohde
        wrote on last edited by
        #3

        If you need to convert a string with hexdecimal presentation to int look at the Convert.ToInt32 method.

        W 1 Reply Last reply
        0
        • R Robert Rohde

          If you need to convert a string with hexdecimal presentation to int look at the Convert.ToInt32 method.

          W Offline
          W Offline
          WaleedH
          wrote on last edited by
          #4

          Thank you Thanks

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups