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. Visual Basic
  4. Drawing

Drawing

Scheduled Pinned Locked Moved Visual Basic
graphics
5 Posts 4 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.
  • A Offline
    A Offline
    Assaf82
    wrote on last edited by
    #1

    Hello I want to insert a picture flowing by other that at the end it have a meaning So the number of these picture depend on the user input throug a textbox Ex: if the user input is: a*b so the system will draw 3 circle the 1st one with an arrow that point to the 2nd the second with an arrow pointing to the 3rd notice that these figure exist any idea Thanks in advance

    Assaf

    L D D 3 Replies Last reply
    0
    • A Assaf82

      Hello I want to insert a picture flowing by other that at the end it have a meaning So the number of these picture depend on the user input throug a textbox Ex: if the user input is: a*b so the system will draw 3 circle the 1st one with an arrow that point to the 2nd the second with an arrow pointing to the 3rd notice that these figure exist any idea Thanks in advance

      Assaf

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Any chance you can clear up your question a bit, I'm having a hard time deciphering exactly what it is you want. What have you tried so far? Any chance you can post some relevant code so I can try to see what you're doing?

      Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]

      A 1 Reply Last reply
      0
      • A Assaf82

        Hello I want to insert a picture flowing by other that at the end it have a meaning So the number of these picture depend on the user input throug a textbox Ex: if the user input is: a*b so the system will draw 3 circle the 1st one with an arrow that point to the 2nd the second with an arrow pointing to the 3rd notice that these figure exist any idea Thanks in advance

        Assaf

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

        I too can't figure out what you're talking about. How does the input "a*b" relate to drawing circles??

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008
        But no longer in 2009...

        1 Reply Last reply
        0
        • A Assaf82

          Hello I want to insert a picture flowing by other that at the end it have a meaning So the number of these picture depend on the user input throug a textbox Ex: if the user input is: a*b so the system will draw 3 circle the 1st one with an arrow that point to the 2nd the second with an arrow pointing to the 3rd notice that these figure exist any idea Thanks in advance

          Assaf

          D Offline
          D Offline
          dan sh
          wrote on last edited by
          #4

          Is it like first circle would have radius equal to "a", second with radius equal to "b" and third with radius equal to their product? You need only two things here then: 1. Some sort of parser that would compute result based on text you enter. You can use a switch statement if the mathematical operators you allow are few and basic. If you are allowing large and complex number of operators, get a third party parser. 2. You need to handle the Paint event of your form (if you are drawing circles directly on Form). There you can draw the circles using the Graphics object's DrawEllipse method. Make sure to redraw all the circles everytime or else they would vanish.

          50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!

          1 Reply Last reply
          0
          • L Lost User

            Any chance you can clear up your question a bit, I'm having a hard time deciphering exactly what it is you want. What have you tried so far? Any chance you can post some relevant code so I can try to see what you're doing?

            Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]

            A Offline
            A Offline
            Assaf82
            wrote on last edited by
            #5

            I sorry for my question ? I try to draw the machine depend on what the user give as input. Ex: if the user enter a*b the system must show a specific machine. so i try to figure all the image needed by the system to draw different kind of machine but my problem how to tell the system to insert this figure followed by that one regarding the user input, off course there is a rule to chose which is defined. "In other language I try to figure out the machine(DFA) that accept this kind of language that is represented by the user input" Thanks a lot

            Assaf

            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