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. Insert Byte/int to TextBox

Insert Byte/int to TextBox

Scheduled Pinned Locked Moved C#
question
10 Posts 4 Posters 1 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.
  • K Offline
    K Offline
    kobi10i10
    wrote on last edited by
    #1

    Hi, I have problam with convert.tostring(), this function take alot of CPU power. there is anather function or way to do this action? thank you and have a nice Day!!:

    A 1 Reply Last reply
    0
    • K kobi10i10

      Hi, I have problam with convert.tostring(), this function take alot of CPU power. there is anather function or way to do this action? thank you and have a nice Day!!:

      A Offline
      A Offline
      albCode
      wrote on last edited by
      #2

      if you try to convert byte to string try this: Convert.ToString(your bytes) or can you explain more your problem???? _____________________ Proud to be Albanian _____________________

      K 1 Reply Last reply
      0
      • A albCode

        if you try to convert byte to string try this: Convert.ToString(your bytes) or can you explain more your problem???? _____________________ Proud to be Albanian _____________________

        K Offline
        K Offline
        kobi10i10
        wrote on last edited by
        #3

        this is what I doing --- byte Number; convert.tostring(number); Number++; --- in thread and the CPU Process is over working

        A A G 4 Replies Last reply
        0
        • K kobi10i10

          this is what I doing --- byte Number; convert.tostring(number); Number++; --- in thread and the CPU Process is over working

          A Offline
          A Offline
          albCode
          wrote on last edited by
          #4

          if variable Number increase by one try to sign in for loop, example string s=""; for(byte Number=0;Number<=15;Number++) { s=Convert.Tostring(Number); } _____________________ Proud to be Albanian _____________________

          K 1 Reply Last reply
          0
          • K kobi10i10

            this is what I doing --- byte Number; convert.tostring(number); Number++; --- in thread and the CPU Process is over working

            A Offline
            A Offline
            Ahmad Mahmoud candseeme
            wrote on last edited by
            #5

            Hi Try this byte Number; Number.ToString(); Number++; Ahmad Shaban

            K 1 Reply Last reply
            0
            • A albCode

              if variable Number increase by one try to sign in for loop, example string s=""; for(byte Number=0;Number<=15;Number++) { s=Convert.Tostring(Number); } _____________________ Proud to be Albanian _____________________

              K Offline
              K Offline
              kobi10i10
              wrote on last edited by
              #6

              Ok I try this thank you

              1 Reply Last reply
              0
              • A Ahmad Mahmoud candseeme

                Hi Try this byte Number; Number.ToString(); Number++; Ahmad Shaban

                K Offline
                K Offline
                kobi10i10
                wrote on last edited by
                #7

                i try this way and the problam not fix but thank you anyway.

                A 1 Reply Last reply
                0
                • K kobi10i10

                  i try this way and the problam not fix but thank you anyway.

                  A Offline
                  A Offline
                  Ahmad Mahmoud candseeme
                  wrote on last edited by
                  #8

                  Hi maybe you should check your loop Ahmad Shaban

                  1 Reply Last reply
                  0
                  • K kobi10i10

                    this is what I doing --- byte Number; convert.tostring(number); Number++; --- in thread and the CPU Process is over working

                    A Offline
                    A Offline
                    albCode
                    wrote on last edited by
                    #9

                    I recommand you to not use muc variables because your project grows and becomes big procces in CPU. Check ur code and insetad variables use dirctly code. Use as little bit number of vraiables as is possiblity. _____________________ Proud to be Albanian _____________________

                    1 Reply Last reply
                    0
                    • K kobi10i10

                      this is what I doing --- byte Number; convert.tostring(number); Number++; --- in thread and the CPU Process is over working

                      G Offline
                      G Offline
                      Guffa
                      wrote on last edited by
                      #10

                      You have to look for the code that causes the cpu load somewhere else in your program. Converting a byte to a string is a very simple task that will take mere microseconds to perform. --- b { font-weight: normal; }

                      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