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

Csharp TeaM

Top posting users this month

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


    Help Reconnect Ba CheckBox

    Share

    0935880
    Junior Member
    Junior Member

    Posts : 72
    Points : 134
    Thanks : 0
    Join date : 2014-02-08

    Open Help Reconnect Ba CheckBox

    Post by 0935880 on Sat May 10, 2014 2:40 pm

    سلام دوباره  Khande 
    می خوام اگه تیک
    checkBox
    رو زدم و ایدی دیس کانکت شد دوباره ایدی کانکت شه
    تا اینجا رو نوشتم عایا درسته بقیشم کمکم کنید

    Code:
    private void checkBox1_CheckedChanged(object sender, EventArgs e)
            {
                if ( checkBox1.checked)


    Last edited by Meran on Sat May 10, 2014 3:46 pm; edited 1 time in total (Reason for editing : Edit title)
    avatar
    Mehran Mahmoudi
    Administrator
    Administrator

    Posts : 485
    Points : 780
    Thanks : 194
    Join date : 2013-09-06
    Age : 20
    Location : Iran , Qazvin , Qazvin

    Open Re: Help Reconnect Ba CheckBox

    Post by Mehran Mahmoudi on Sat May 10, 2014 3:24 pm

    Salam
    Too Evente CheckedChanged Niaz Nis Kari Koni  Oh 
    Ye Method Bezar Vase Login, Too Voide Dc, Farakhani Bokonesh, Injuri:
    New COnnection:
    Code:
    MehdiClient mf;
    Methodet:
    Code:
            private void LoginID()
            {
                mf = new MehdiClient();
                mf.UserName = textBox1.Text;
                mf.Password = textBox2.Text;
                mf.SyncInvokeControl = this;
                mf.Connect();
                mf.OnConnected += mf_OnConnected;
                mf.OnDisconnect += mf_OnDisconnect;
                mf.OnPasswordWrong += mf_OnPasswordWrong;
            }
    Evente Disconnect:
    Code:
            void mf_OnDisconnect(object sender, ClientEventArgs e)
            {
    if(checkBox1.Checked)
            LoginID();
            }
    Vaghti ID Dc She, DObare Login Mishe!!
    Movafagh Bashi.






    [You must be registered and logged in to see this link.]
    __

    [You must be registered and logged in to see this link.]


    0935880
    Junior Member
    Junior Member

    Posts : 72
    Points : 134
    Thanks : 0
    Join date : 2014-02-08

    Open Re: Help Reconnect Ba CheckBox

    Post by 0935880 on Sat May 10, 2014 4:18 pm

    شرمنده داش مهران این با
    asixmpp
    کار میده دیگه؟
    یکم دیگه بفهمم چی ب چیه جان خودم میام رومهدی کامپونت  Khande 





    avatar
    Mer+sad
    Junior Member
    Junior Member

    Posts : 88
    Points : 164
    Thanks : 17
    Join date : 2013-07-27
    Age : 22
    Location : Iran

    Open Re: Help Reconnect Ba CheckBox

    Post by Mer+sad on Sat May 10, 2014 5:13 pm

    Code:
    private void checkBox1_CheckedChanged(object sender, EventArgs e)
            {
                if ( checkBox1.checked)
    //chand ravesh dare 1.

    button1.PerformClick();
    //2 mitooni code login id ro benevisi





    avatar
    Mehran Mahmoudi
    Administrator
    Administrator

    Posts : 485
    Points : 780
    Thanks : 194
    Join date : 2013-09-06
    Age : 20
    Location : Iran , Qazvin , Qazvin

    Open Re: Help Reconnect Ba CheckBox

    Post by Mehran Mahmoudi on Sun May 11, 2014 6:52 am

    Hi
    Are Kar Mide ba AgsXMPP , Faghat Bazi Jahasho Bayad Taghir Bedi, Dar Kol Ravesh Hamine.
    -----
    Mersad Jan To Ham Ke Umadi Too Evente CheckedChanged e CheckBox COde Dadi :S Dar In Soorat SadeTarin kar Ye Bool Too CLasse Forme Ke To Nazashti :S !!!
    In Code Ke Dadi Be Khodie Khod Eshtebahe!!






    [You must be registered and logged in to see this link.]
    __

    [You must be registered and logged in to see this link.]

    avatar
    Mer+sad
    Junior Member
    Junior Member

    Posts : 88
    Points : 164
    Thanks : 17
    Join date : 2013-07-27
    Age : 22
    Location : Iran

    Open Re: Help Reconnect Ba CheckBox

    Post by Mer+sad on Sun May 11, 2014 9:00 am

    Sorry Man Avale Code Khodesho Copy Kardam Bayd Too Evente Dc Ino Benevisi

    Code:
    private void dc(object sender)
            {
                if (base.InvokeRequired)
                {
                    base.BeginInvoke(new ObjectHandler(this.dc), new object[] { sender });
                }
                else
                {
                        {    if ( checkBox1.checked)
    //chand ravesh dare 1.

    button1.PerformClick();
    //2 mitooni code login id ro benevisi
    }
    }
    }





    avatar
    $iahi
    Csharp Admin
    Csharp Admin

    Posts : 122
    Points : 204
    Thanks : 34
    Join date : 2014-02-17

    Open Re: Help Reconnect Ba CheckBox

    Post by $iahi on Sun May 11, 2014 12:15 pm

    chera bande khoda ro gij mikonid
    hamishe sade tarin rah behtarin rah hast
    Code:
            private void button1_Click(object sender, EventArgs e)
            {
                x = new XmppClientConnection { Server = "nimbuzz.com", ConnectServer = "o.nimbuzz.com", Port = 5222 };
                x.Open(textBox1.Text, textBox2.Text, "$iahi@n.c", 50);
                x.Status = "server";
                x.OnLogin += new ObjectHandler(Connencted);
                x.OnAuthError += new XmppElementHandler(failed1);
                x.OnMessage += new agsXMPP.protocol.client.MessageHandler(OnMessage);

            }
    in ghesmate login bod
    hala void dc
    Code:
            public void dc(object sender)
            {
                if (base.InvokeRequired == true)
                {
                    base.BeginInvoke(new ObjectHandler(dc1), new object[] { sender });
                }
                else
                {
                    textBox1.BackColor = Color.Yellow;
                    textBox2.BackColor = Color.Yellow;

                }
                if (checkBox1.Checked == true)
                {
                x = new XmppClientConnection { Server = "nimbuzz.com", ConnectServer = "o.nimbuzz.com", Port = 5222 };
                x.Open(textBox1.Text, textBox2.Text, "$iahi@n.c", 50);
                x.Status = "server";
                x.OnLogin += new ObjectHandler(Connencted);
                x.OnAuthError += new XmppElementHandler(failed1);
                x.OnClose += new ObjectHandler(dc);
                x.OnMessage += new agsXMPP.protocol.client.MessageHandler(OnMessage);
                }
            }





    avatar
    Mehran Mahmoudi
    Administrator
    Administrator

    Posts : 485
    Points : 780
    Thanks : 194
    Join date : 2013-09-06
    Age : 20
    Location : Iran , Qazvin , Qazvin

    Open Re: Help Reconnect Ba CheckBox

    Post by Mehran Mahmoudi on Sun May 11, 2014 12:32 pm

    Hi
    $iahi: Ye Barname Nevise Khoob,Ta Jayi Ke Momkene Hichvaght 1 Code Ro 2 Bar Estefade Nemikone. Hamishe Yadet Bashe Khande !!!!!!!
    Raveshe To Eshtebah Nist, Vali Estefade Az Method AsoonTare Va Behtare!!
    Vaghti Mishe Ba Ye Farakhanie Method, Karo Dorost Kard Chera 2 Bar Az Tikke CodeHaye Login Use Konim??!!
    Omidvaram Manuramo Fahmide Bashi.
    Movafagh Bashi.






    [You must be registered and logged in to see this link.]
    __

    [You must be registered and logged in to see this link.]

    avatar
    $iahi
    Csharp Admin
    Csharp Admin

    Posts : 122
    Points : 204
    Thanks : 34
    Join date : 2014-02-17

    Open Re: Help Reconnect Ba CheckBox

    Post by $iahi on Sun May 11, 2014 1:15 pm

    dadasham:
    meran jan vaghti 1 taze kar azat komak mikhad nabayad shoma beri sakht tarin ravesh ro behesh yad bedi
    ishon ba in codi ke man dadam kamel mozo ro migire
    vali ba code shoma taraf gij mishe va tosh mimone
    omidvaram manzooram ro gerefte bashi
    saram omade ke migam Khande





    avatar
    pokhte
    Csharp Admin
    Csharp Admin

    Posts : 139
    Points : 253
    Thanks : 82
    Join date : 2013-06-29
    Age : 22
    Location : IRaN/Fars/KaZerouN

    Open Re: Help Reconnect Ba CheckBox

    Post by pokhte on Sun May 11, 2014 2:02 pm

    Nemkham dekhalat kunam ama mehran rast mge, ta jaye m0mken nabayad unkar ru anjam dad

    ye rahe dige ham hast!

    Code:

    try{
    (sender as XmppClientConnection).Close();
    }catch{}
    (sender as XmppClientConnection).Resource = "my res" + new Random().Next(100,100000);

    (sender as XmppClientConnection).Open();

    Be har khodet miduni, 4ta ravash gozashtan vasat, har kodom o behtar mifahmi estefade kun






    There is no where to run. Destiny will be come...

    lvlostafa7
    Android Admin
    Android Admin

    Posts : 168
    Points : 306
    Thanks : 110
    Join date : 2013-06-07
    Age : 26
    Location : Iran.Khuzestan.AhwaZ

    Open Re: Help Reconnect Ba CheckBox

    Post by lvlostafa7 on Sun May 11, 2014 4:16 pm

    $iahi wrote:dadasham:
    meran jan vaghti 1 taze kar azat komak mikhad nabayad shoma beri sakht tarin ravesh ro behesh yad bedi
    ishon ba in codi ke man dadam kamel mozo ro migire
    vali ba code shoma taraf gij mishe va tosh mimone
    omidvaram manzooram ro gerefte bashi
    saram omade ke migam Khande

    salam javab mehran ke sakht nabod
    ba naazaret mokhalefam asoni o sakhti be kenar vaghti javab midi bayad osoli javab bedi mehran
    ham haminkar anjam dad code hash ham sakht nabod o gij konande





    در طوفان زندگی با خدا بودن
    خیلی بهتر از ناخدا بودن است


    id : [You must be registered and logged in to see this link.]
    Thanks (+)
    yadet nare ;)
    avatar
    Mehran Mahmoudi
    Administrator
    Administrator

    Posts : 485
    Points : 780
    Thanks : 194
    Join date : 2013-09-06
    Age : 20
    Location : Iran , Qazvin , Qazvin

    Open Re: Help Reconnect Ba CheckBox

    Post by Mehran Mahmoudi on Mon May 12, 2014 5:38 am

    SALAM
    MAN NEMIDUNAM DIGE CHI BEGAM, DOOSTAN ZAHMAT KESHIDAN VA JAVAB DADAN.
    RAVESHE RAMTIN HAM KHEYLI KHOOBE KE AZ OBJECT ESTEFADE KARDE.
    INJA HADAF KOMAK KARDANE AMMA AGE BE GHOLE MOSTAFA JAN HELPEMUN OSOOLI VA DAGHIGH BASHE, USER MITUNE BA YAD GIRIE HAMIN RIZE KARIHA SATHE PROGRAMMINGESHO BEBARE BALATAR.
    OMIDVARAM KOMAKI KARDE BASHIM.
    BAZAM TASHAKOR AZ RAMTIN VA MOSTAFAYE AZIZ.
    TA MEHDI NAYUMADE HAMAMUNO BAN KONE BEHTARE BERIM Khande
    MOVAFAGH BASHID.






    [You must be registered and logged in to see this link.]
    __

    [You must be registered and logged in to see this link.]


    Sponsored content

    Open Re: Help Reconnect Ba CheckBox

    Post by Sponsored content


      Current date/time is Tue Oct 24, 2017 6:34 am