Iranian Programming Support

Welcome To Csharp TeaM Forum.
For Use All Forum Posts And See Links
Please Register
Thanks
www.Programming.MrForum.net
Csharp TeaM Administrator

Join the forum, it's quick and easy

Iranian Programming Support

Welcome To Csharp TeaM Forum.
For Use All Forum Posts And See Links
Please Register
Thanks
www.Programming.MrForum.net
Csharp TeaM Administrator

Iranian Programming Support

Would you like to react to this message? Create an account in a few clicks or log in to continue.
Iranian Programming Support

Csharp TeaM

Top posting users this month

No user

Latest topics

» html to c# source code convert help
by launchar Tue Dec 06, 2016 7:22 am

» User input
by nesraz Sun Dec 20, 2015 8:39 am

» darkhaste source mediaplayer baraye b4a
by parham01 Tue Dec 15, 2015 10:31 am

» Tolide esme file gheire tekrari
by sajjad3011 Fri Jul 31, 2015 5:00 pm

» 368 library basic 4 android
by alimusavi71 Fri Jul 17, 2015 6:45 pm

» نرم افزار دریافت لایسنس آنتی ویروس نود 32
by programmer-x Wed Jul 15, 2015 3:19 pm

» help for java applications
by launchar Wed Jul 01, 2015 12:25 am

» Nimbuzz id Maker auto Captcha & Auto add FlooD & id BloCker
by briant Sat Jun 20, 2015 12:46 pm

» best mobile server v.1.0.0 persian edition
by programmer-x Fri Jun 19, 2015 12:41 am

» plz help me i neez xml code for spy bot
by alone Sun Mar 22, 2015 9:30 pm

» Dialogs Lib {Basic 4 Android}
by abdo0o Mon Mar 09, 2015 4:02 pm

» Room + PV Flooder Nimbuzz 2015
by sholeh Sat Feb 21, 2015 8:06 am

» PV Flooder Nimbuzz 2015
by sholeh Sat Feb 21, 2015 8:03 am

» سی شارپ سورس
by tr0 Wed Dec 24, 2014 12:15 pm

» help plz auto maker ids
by launchar Wed Dec 17, 2014 5:57 pm

» Join Multi Id To Room + Captcha [ Badbuzz Team ] In Seri Ba AgsXMPP !!
by abdo0o Fri Dec 12, 2014 4:47 am

» Amoozesh Ersale Sms Dar B4a
by abdo0o Fri Dec 12, 2014 4:43 am

» help me pls mehran brother
by launchar Wed Dec 03, 2014 6:36 pm

» plz help code Refresh captcha join Room
by ayad53 Wed Dec 03, 2014 12:24 pm

» please Help Me For AutoCaptchaa kardan IdMaker
by abdo0o Tue Dec 02, 2014 12:12 pm

» source C# bot addlist sender by ==> Alone_051@n.c
by walahazrat Mon Dec 01, 2014 2:34 am

» s2a sender tro help me pls
by walahazrat Mon Dec 01, 2014 2:28 am

» Help For {Data id } C# asixmpp.dll
by abdo0o Sun Nov 30, 2014 11:17 pm

» Help C# {Join & Left With Remoter}
by $iahi Tue Nov 25, 2014 10:31 am

» Source Nimbuzz User Searcher By Mehr,an [ Badbuzz TeaM ]
by waseemmalik Wed Nov 19, 2014 11:35 am


5 posters

    Help C# [Load Document With Enter]

    Mr.Bermuda
    Mr.Bermuda
    Junior Member
    Junior Member


    Posts : 114
    Points : 214
    Thanks : 24
    Join date : 2013-07-12
    Age : 30
    Location : Internet

    Solved Help C# [Load Document With Enter]

    Post by Mr.Bermuda Sat Oct 05, 2013 7:48 pm

    salam dobare.
    bax man mikham file load konam ba enter joda kone # ro !
    masalan man 5 ta id daram be in sheklan id1#id2#id3#id4#id5 bad mikham intor load kone idha mano az txt file
    id1
    id2
    id3
    id4
    id5
    mamnoun misham age  javab bedi KISSING 
    virus9010
    virus9010
    Administrator
    Administrator


    Posts : 275
    Points : 455
    Thanks : 142
    Join date : 2013-06-06
    Age : 29
    Location : Iran , Gilan , Astara

    Solved Re: Help C# [Load Document With Enter]

    Post by virus9010 Sat Oct 05, 2013 10:45 pm

    1-aval File Ro Load Kon Tooye String
    2-Ba Yek halghe ya split joda kon , Hamin
    Mr.Bermuda
    Mr.Bermuda
    Junior Member
    Junior Member


    Posts : 114
    Points : 214
    Thanks : 24
    Join date : 2013-07-12
    Age : 30
    Location : Internet

    Solved Re: Help C# [Load Document With Enter]

    Post by Mr.Bermuda Sat Oct 05, 2013 10:56 pm

    mehdi nafahmidam mishe cod bezari plz
    iman saeedi
    iman saeedi
    VB & VB.Net Admin
    VB & VB.Net Admin


    Posts : 95
    Points : 201
    Thanks : 54
    Join date : 2013-06-25

    Solved Re: Help C# [Load Document With Enter]

    Post by iman saeedi Sun Oct 06, 2013 4:26 am

    mukhay to textbox intor bashan id#id#id#.. bad vaqti raft to listbox intor shan
    id
    id
    id
    ?
    Mr.Bermuda
    Mr.Bermuda
    Junior Member
    Junior Member


    Posts : 114
    Points : 214
    Thanks : 24
    Join date : 2013-07-12
    Age : 30
    Location : Internet

    Solved Re: Help C# [Load Document With Enter]

    Post by Mr.Bermuda Sun Oct 06, 2013 4:29 am

    are hamintor vaghti oomadan too listbox intor beshan
    id
    id2
    id3
    id4
    id5
    iman saeedi
    iman saeedi
    VB & VB.Net Admin
    VB & VB.Net Admin


    Posts : 95
    Points : 201
    Thanks : 54
    Join date : 2013-06-25

    Solved Re: Help C# [Load Document With Enter]

    Post by iman saeedi Sun Oct 06, 2013 4:37 am

    in code vb.net hast yani age textbox1 intor bod id#id vaqti raft to listbox1 splito hazf kon
    Code:
     Dim idt() As String
            Dim t As Integer
            idt = Split(TextBox1.Text, "#")
            ListBox2.Items.Clear()
            For t = LBound(idt) To UBound(idt)
                ListBox2.Items.Add(idt(t))
            Next t
    inam c# tabdil kardam
    Code:
    string[] idt = null;
    int t = 0;
    idt = Strings.Split(TextBox1.Text, "#");
    ListBox2.Items.Clear();
    for (t = Information.LBound(idt); t <= Information.UBound(idt); t++) {
       ListBox2.Items.Add(idt[t]);
    }
    Mr.Bermuda
    Mr.Bermuda
    Junior Member
    Junior Member


    Posts : 114
    Points : 214
    Thanks : 24
    Join date : 2013-07-12
    Age : 30
    Location : Internet

    Solved Re: Help C# [Load Document With Enter]

    Post by Mr.Bermuda Sun Oct 06, 2013 12:58 pm

    Na dada Nafahmidi Manzooramo !
    Migam Vaghti Az text file document(txt) Load Kardam Yani Age Intor Boodan>
    Help C# [Load Document With Enter] 11111122222222333333333
    [You must be registered and logged in to see this link.]
    Bad Vaghti oomadan Too ListBox Intori Beshan>
    Help C# [Load Document With Enter] 1232132132132131
    [You must be registered and logged in to see this link.]
    iman saeedi
    iman saeedi
    VB & VB.Net Admin
    VB & VB.Net Admin


    Posts : 95
    Points : 201
    Thanks : 54
    Join date : 2013-06-25

    Solved Re: Help C# [Load Document With Enter]

    Post by iman saeedi Sun Oct 06, 2013 3:52 pm

    khob code ke bet dadam hamin karo anjam mide code load ham nadari?
    Nima
    Nima
    Csharp Admin
    Csharp Admin


    Posts : 210
    Points : 326
    Thanks : 56
    Join date : 2013-07-08
    Age : 30
    Location : Iran-AmoL

    Solved Re: Help C# [Load Document With Enter]

    Post by Nima Sun Oct 06, 2013 5:00 pm


    salam doste khobam . listBox harchi bere tosh ba hamon code doste azizemon iman jan , besorate enter mishe . Ama jori ke to migi aslan textBox nadarim ke split konim . bayad # bad az load filet Replase koni be \n ya inke begi be # resid ++ be meqdare add itemet ezafe kone ta ye enter bere jolo . vaqtesho nadaram sorce kamel bedam. sory dasham Boos
    Nima
    Nima
    Csharp Admin
    Csharp Admin


    Posts : 210
    Points : 326
    Thanks : 56
    Join date : 2013-07-08
    Age : 30
    Location : Iran-AmoL

    Solved Re: Help C# [Load Document With Enter]

    Post by Nima Mon Oct 07, 2013 6:52 am


    Dasham inu emtehan kon shayad beshe :

    Code:

    private void btnLoadFile_Click(object sender, EventArgs e)
            {
                try
                {
                    OpenFileDialog Open = new OpenFileDialog();

                    Open.ShowDialog();

                    if (File.Exists(Open.FileName))
                    {
                        var nima = new StreamReader(Open.FileName);

                        listBox1.Items.Clear();

                        do
                        {
                            string IDS = nima;

                            IDS.Replace("#", "\n");

                            listBox1.Items.Add(IDS);
                        }

                        while (nima != null);

                    }

                }

                catch { }


    Good Luck
    Mr.Bermuda
    Mr.Bermuda
    Junior Member
    Junior Member


    Posts : 114
    Points : 214
    Thanks : 24
    Join date : 2013-07-12
    Age : 30
    Location : Internet

    Solved Re: Help C# [Load Document With Enter]

    Post by Mr.Bermuda Mon Oct 07, 2013 8:16 am

    Duroqin wrote:

    Dasham inu emtehan kon shayad beshe :

    Code:

    private void btnLoadFile_Click(object sender, EventArgs e)
            {
                try
                {
                    OpenFileDialog Open = new OpenFileDialog();

                    Open.ShowDialog();

                    if (File.Exists(Open.FileName))
                    {
                        var nima = new StreamReader(Open.FileName);

                        listBox1.Items.Clear();

                        do
                        {
                            string IDS = nima;

                            IDS.Replace("#", "\n");

                            listBox1.Items.Add(IDS);
                        }

                        while (nima != null);

                    }

                }

                catch { }


    Good Luck
    Na Dasham In Error Dad
    Code:
    Cannot implicitly convert type 'System.IO.StreamReader' to 'string'
    Mostafa Haghighi
    Mostafa Haghighi
    Super Moderator
    Super Moderator


    Posts : 163
    Points : 298
    Thanks : 99
    Join date : 2013-06-08
    Location : mazandaran

    Solved Re: Help C# [Load Document With Enter]

    Post by Mostafa Haghighi Sun Oct 13, 2013 2:04 pm

    Code:
                try
                {
                    System.Windows.Forms.OpenFileDialog openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
                    if (File.Exists(openFileDialog1.FileName))
                    {
                        var sr = new StreamReader(openFileDialog1.FileName);
                        string str = sr.ReadToEnd();
                        string[] IDS = str.Split('#');
                        for (int i = 0; i < IDS.Length; ++i)
                        {
                            listBox1.Items.Add(IDS[i]);
                        }
                    }
                    else
                    {
                        MessageBox.Show("Error");
                    }

                }
                catch
                {

                }

    Sponsored content


    Solved Re: Help C# [Load Document With Enter]

    Post by Sponsored content


      Current date/time is Mon Apr 29, 2024 8:33 am