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. about calculator in c#

about calculator in c#

Scheduled Pinned Locked Moved C#
csharptutorial
5 Posts 5 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.
  • H Offline
    H Offline
    hanmantkendre
    wrote on last edited by
    #1

    HOW i can divide the single text box text in two parts after the pressing the + button please guide me or give me the idea.

    D P V A 4 Replies Last reply
    0
    • H hanmantkendre

      HOW i can divide the single text box text in two parts after the pressing the + button please guide me or give me the idea.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Define what you mean by "divide the textgbox text in two parts"... What exactly is supposed to happen?

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak

      1 Reply Last reply
      0
      • H hanmantkendre

        HOW i can divide the single text box text in two parts after the pressing the + button please guide me or give me the idea.

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        Horizontally or vertically. Diagonally would be difficult.

        1 Reply Last reply
        0
        • H hanmantkendre

          HOW i can divide the single text box text in two parts after the pressing the + button please guide me or give me the idea.

          V Offline
          V Offline
          VJ Reddy
          wrote on last edited by
          #4

          If you want to break the text into two parts on entry of + character then I think the KeyPress event of TextBox can be handled to replace the + character with \n as shown below:

          TextBox textBox1 = new TextBox();
          textBox1.Multiline=true;
          textBox1.Height=100;
          textBox1.KeyPress += (s, args) => {
          if (args.KeyChar=='+')
          args.KeyChar= '\n';
          };
          Controls.Add(textBox1);

          If you want to retain + and then break the text into next line then replace args.KeyChar = '\n'; with SendKeys.Send("{ENTER}"); To run the above code, create a Windows Forms application in C#, place the above code in the Form.Load event handler and run the application.

          1 Reply Last reply
          0
          • H hanmantkendre

            HOW i can divide the single text box text in two parts after the pressing the + button please guide me or give me the idea.

            A Offline
            A Offline
            Abhinav S
            wrote on last edited by
            #5

            Hide this text box and show two new ones on pressing the + button.

            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