Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7790177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:30:31+00:00 2026-06-01T21:30:31+00:00

I need to create while running a flow chart for string input which I

  • 0

I need to create while running a flow chart for string input which I get from textbox1.
the form size is 700*450, and it is allowed scroll.between each letter(char from the input string) has to be( in the output) an arrow(which is displayed on button)
*the whole chart has to be ehxibited on buttons *
for example, for this input string: ‘ABZAZAZA’
for each letter there is asuitable color that the background of the button should be colored in.

the program should be “print”:
A –> B –> Z –> A –> Z –> A –> Z –>
A –>

the size of arrow button: 34*23
the size of letter button: 34*29

the problem with my code, that the flowchart isn’t shown

Heres the code:

    public void DrawingSystem(string st)
    {
        shura_acid = 12;
        tur_acid = 185;

        for (int i = 1; i <= st.Length; i++)
        {
            if ((i % 7) == 0)
            {
                OpenNewLine();
            }
            CreateAcid(st[i - 1], i);
            shura_acid = shura_acid + 24 + 68;
        }
    }

    public void OpenNewLine()
    {
        tur_acid = tur_acid + 29 + 12;//34 because the size of button,12 because space between lines
        shura_acid = 12;
    }

    public void CreateAcid(char letter, int i)
    {
        //create acid
        Button acid = new Button();
        acid.Location = new System.Drawing.Point(shura_acid, tur_acid);
        acid.Name = "acid" + i;
        acid.Size = new System.Drawing.Size(34, 29);
        acid.TabIndex = 100 + i;
        acid.Text = Convert.ToString(letter);
        switch (letter)
        {
            case 'A': acid.BackColor = System.Drawing.Color.Fuchsia; break;
            case 'C': acid.BackColor = System.Drawing.Color.Pink; break;
            case 'D': acid.BackColor = System.Drawing.Color.Gray; break;
            case 'F': acid.BackColor = System.Drawing.Color.Azure; break;
            case 'G': acid.BackColor = System.Drawing.Color.Red; break;
            case 'H': acid.BackColor = System.Drawing.Color.Aqua; break;
            case 'I': acid.BackColor = System.Drawing.Color.Lime; break;
            case 'K': acid.BackColor = System.Drawing.Color.Yellow; break;
            case 'L': acid.BackColor = System.Drawing.Color.Olive; break;
            case 'M': acid.BackColor = System.Drawing.Color.Coral; break;
            case 'N': acid.BackColor = System.Drawing.Color.SaddleBrown; break;
            case 'P': acid.BackColor = System.Drawing.Color.Teal; break;
            case 'Q': acid.BackColor = System.Drawing.Color.Blue; break;
            case 'R': acid.BackColor = System.Drawing.Color.Orange; break;
            case 'S': acid.BackColor = System.Drawing.Color.Green; break;
            case 'T': acid.BackColor = System.Drawing.Color.SteelBlue; break;
            case 'V': acid.BackColor = System.Drawing.Color.DarkViolet; break;
            case 'W': acid.BackColor = System.Drawing.Color.Crimson; break;
            case 'X': acid.BackColor = System.Drawing.Color.MediumAquamarine; break;
            default: acid.BackColor = System.Drawing.Color.Gold; break;
        }


        //create arrow
        Button arrow = new System.Windows.Forms.Button();
        arrow.Location = new System.Drawing.Point(shura_acid + 34 + 12, tur_acid);
        arrow.Name = "acid" + i;
        arrow.Size = new System.Drawing.Size(34, 23);
        arrow.TabIndex = 100 + i;
        arrow.Text = "-->";
        arrow.UseVisualStyleBackColor = false;


    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T21:30:33+00:00Added an answer on June 1, 2026 at 9:30 pm

    I’ll take a stab at it. No where in your code do I see you actually adding the acid or arrow buttons to a container.

    You need something like this:

    this.Controls.Add(acid);
    

    and

    this.Controls.Add(arrow);
    

    Change this.Controls to the container you want them to appear in.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We need to create a basic PDF reader running on J2ME. While there are
I have a comma separated string, out of which I need to create a
I need create clone repository. but I do not know where can I get
Need to create a custom DNS name server using C which will check against
I need to create a keyed hash for a string of XML to send
I need to create some pretty big tables in SQL Server 2008. While I
I need to create a utility program which runs on windows mobile. I need
I need to access a static property from a console application (NServiceBus selfhost) while
I need create custom dialog and put JPanel into it. Is it possible?
i need create an email list sending to many emails. what is best solution

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.