ll-MegaMind-ll

Well-known member
  • May 13, 2011
    4,530
    699
    113
    Dharmayaiobai.org
    kollane mata podi c# program akak ona ..simple akaka.. button akai box akai.. mage laga code 5k thiyanawa,button aka press kalama aa code 5hen akak box ake pennanna ona..aye click kalama anith aka achcharai.. pdi help akak deehallako.. mama C# melo deyak danna :baffled: anith aya bump akak daagena yamalla :love:
     

    anton2

    Active member
  • Apr 1, 2009
    860
    129
    43
    Colombo
    monada wenna one kiyala mata hariyata kiyanna....
    not clear what u said...
    code 5 kiwwwe......kohe thiyana code 5 dha?
    need a database?
     

    anton2

    Active member
  • Apr 1, 2009
    860
    129
    43
    Colombo
    no macho i got some lines of code like
    1341413
    1341341
    13413134
    13413413

    when the button is pressed line 1 should show up , then line 2 etc...


    give me 10-15 mints...
    i will show u..
    tell me wethr its correct or not...
    mata thama therune na...kohe thiyena codes da kiyala....but wait
     

    anton2

    Active member
  • Apr 1, 2009
    860
    129
    43
    Colombo
    mehemai...in 1st list box u have to store yours code

    and when u click on the particular code it goes to next text box...
    is this the way u want

    1ST OF TELL ME WHERE U STORE YOUR FIVE CODES....
    mata thiyena awula ekai..
    in a sql database...?


    Capture_zps22f45a75.png

     
    • Like
    Reactions: ll-MegaMind-ll

    ll-MegaMind-ll

    Well-known member
  • May 13, 2011
    4,530
    699
    113
    Dharmayaiobai.org
    mehemai...in 1st list box u have to store yours code

    and when u click on the particular code it goes to next text box...
    is this the way u want

    1ST OF TELL ME WHERE U STORE YOUR FIVE CODES....
    mata thiyena awula ekai..
    in a sql database...?


    Capture_zps22f45a75.png


    no macho i need something like this, doesn't matter where the codes coming from ,it just needs to show the next code after press the button. no data base needed ne? :dull:

    zLo8bu0.png
     

    rhn123

    Well-known member
  • Jul 20, 2012
    759
    37
    48
    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeComponent();
    }


    int i = 0;


    private void button1_Click(object sender, EventArgs e)

    {
    int[] numbers = new int[4];

    numbers[0] = 1341413;
    numbers[1] = 1341341;
    numbers[2] = 13413134;
    numbers[3] = 13413413;
    if (i < 4)
    {
    textBox1.Text = numbers.ToString();
    i = i + 1;


    }
    else
    MessageBox.Show("no more numbers");



    }
    }

    mehemada? waradi da danne na
     

    Jecob Boman

    Well-known member
  • Dec 10, 2013
    1,333
    93
    48
    homagama
    mehemai...in 1st list box u have to store yours code

    and when u click on the particular code it goes to next text box...
    is this the way u want

    1ST OF TELL ME WHERE U STORE YOUR FIVE CODES....
    mata thiyena awula ekai..
    in a sql database...?


    Capture_zps22f45a75.png


    bump
     
    Last edited:

    anton2

    Active member
  • Apr 1, 2009
    860
    129
    43
    Colombo
    Capture_zps96fbea7d.png



    when u click that button
    randomly generate some codes and display it
    above text box....
    ri8....?
    is this u want
    ?

    if u want like that.......tell me...
    i have already make it like above
     

    ll-MegaMind-ll

    Well-known member
  • May 13, 2011
    4,530
    699
    113
    Dharmayaiobai.org
    Capture_zps96fbea7d.png



    when u click that button
    randomly generate some codes and display it
    above text box....
    ri8....?
    is this u want
    ?

    if u want like that.......tell me...
    i have already make it like above

    yes bro but not randonm code , i need to show up these codes

    K3PTY-H6VAJ-EGR7V-R8XU6
    JR4EE-DDCAH-KP8DH-WEUCB
    JCKBP-NCKY6-K6CD3-VPGEY
    PNXKJ-Y9YUE-KM9D6-RH3AF
    FA7TP-UTG94-UFUU9-VUY7V
     

    anton2

    Active member
  • Apr 1, 2009
    860
    129
    43
    Colombo
    yes bro but not randonm code , i need to show up these codes

    K3PTY-H6VAJ-EGR7V-R8XU6
    JR4EE-DDCAH-KP8DH-WEUCB
    JCKBP-NCKY6-K6CD3-VPGEY
    PNXKJ-Y9YUE-KM9D6-RH3AF
    FA7TP-UTG94-UFUU9-VUY7V


    ane ban.....uba eka para kiyan naththe y ban..
    yep y can..
    by using arrays.... :yes:
    when do u want that?
    now dont have time to do that...
    podi seen ekak thiyenne
     

    DjSpK

    Well-known member
  • Nov 4, 2008
    5,298
    1,005
    113
    I'm Looking for Me !
    Code:
    https://dl.dropboxusercontent.com/u/93398625/Others/Generator.zip
    Code:
    namespace WindowsFormsApplication1
    {
        public partial class Form1 : Form
        {
            int counter = 0;
            List<string> CodeList = new List<string>();
            public Form1()
            {
                InitializeComponent();
                CodeList.Add("123");
                CodeList.Add("456");
                CodeList.Add("789");
            }
    
            private void button1_Click(object sender, EventArgs e)
            {
                if (counter == CodeList.Count) {
                    counter = 0;
                }
                textBox1.Text = CodeList[counter].ToString();
                counter++;
            }
        }
    }
     
    Last edited:
    • Like
    Reactions: ll-MegaMind-ll