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 C# For Get Room User

    Share
    avatar
    pesar_tariki
    New Member
    New Member

    Posts : 30
    Points : 46
    Thanks : 0
    Join date : 2014-03-14

    Open Help C# For Get Room User

    Post by pesar_tariki on Fri Apr 04, 2014 4:22 am

    Salam Be Hame
    Mn Code Get Room User Ro Daram Mikham Moghe Get Kardane User Age Item Tekrari Bood Uno Add Nakone
    Code Ine

    Code:
    [code] private void OnPresence(object sender, Presence pres)
            {


                if (InvokeRequired)
                {
                    BeginInvoke(new PresenceHandler(OnPresence), new object[] { sender, pres });

                    return;
                }
                try
                {
                    if (pres.From.Server.StartsWith("conference"))
                    {
                        if (pres.MucUser != null)
                        {
                            if (pres.MucUser.Item.Affiliation == Affiliation.owner)
                            {
                                listBox1.Items.Add(pres.From.Resource);
                            }
                            if (pres.MucUser.Item.Affiliation == Affiliation.admin)
                            {
                                listBox1.Items.Add(pres.From.Resource);
                            }
                            if (pres.MucUser.Item.Affiliation == Affiliation.member)
                            {
                                listBox1.Items.Add(pres.From.Resource);
                            }
                            if (pres.MucUser.Item.Affiliation == Affiliation.none)
                            {
                                listBox1.Items.Add(pres.From.Resource);
                            }


                            if (pres.Type == PresenceType.unavailable)
                            {
                                if (pres.MucUser.Item.Affiliation == Affiliation.owner)
                                {
                                    listBox1.Items.Remove(pres.From.Resource);
                                }
                                if (pres.MucUser.Item.Affiliation == Affiliation.admin)
                                {
                                    listBox1.Items.Remove(pres.From.Resource);
                                }
                                if (pres.MucUser.Item.Affiliation == Affiliation.member)
                                {
                                    listBox1.Items.Remove(pres.From.Resource);
                                }
                                if (pres.MucUser.Item.Affiliation == Affiliation.none)
                                {
                                    listBox1.Items.Remove(pres.From.Resource);
                                }
                            }
                        }
                    }
                }
                catch { }
            }[/code]
    Tnx
    avatar
    Mehdi Fa
    VB & VB.Net Admin
    VB & VB.Net Admin

    Posts : 87
    Points : 168
    Thanks : 47
    Join date : 2013-07-25

    Open Re: Help C# For Get Room User

    Post by Mehdi Fa on Fri Apr 04, 2014 4:29 am

    Ye For Tarif Mikoni

    Vb

    Code:
    For i = 0 To Listusers.Items.Count - 1
    If Not pres.From.Resource = Listusers.Items(i).ToString()
    Listusers.Items.Add(pres.From.Resource)
    End If
    Next

    C#

    Code:
    for (i = 0; i <= Listusers.Items.Count - 1; i++) {
    if (!(pres.From.Resource == Listusers.Items(i).ToString())) {
    Listusers.Items.Add(pres.From.Resource);
    }
    }

    Vase C# Convert Kardam





    /* LIFE RUNS ON CODE */
    avatar
    pesar_tariki
    New Member
    New Member

    Posts : 30
    Points : 46
    Thanks : 0
    Join date : 2014-03-14

    Open Re: Help C# For Get Room User

    Post by pesar_tariki on Fri Apr 04, 2014 4:38 am

    mc dada vali vase c# bayad jaye () ,[] bezari
    tnx
    avatar
    Mehdi Fa
    VB & VB.Net Admin
    VB & VB.Net Admin

    Posts : 87
    Points : 168
    Thanks : 47
    Join date : 2013-07-25

    Open Re: Help C# For Get Room User

    Post by Mehdi Fa on Fri Apr 04, 2014 4:43 am

    Goftam ke convert kardam  Khande 

    age moshkelet hal nashod inam get user ba onreadXml

    Code:
           private void Xml1(object sender, string xml)
            {
                if (base.InvokeRequired)
                {
                    base.BeginInvoke(new XmlHandler(this.Xml1), new object[] { RuntimeHelpers.GetObjectValue(sender), xml });
                }
                else
                {
                    xml = Strings.Replace(xml, "\"", "'", 1, -1, CompareMethod.Text);
                    if ((Strings.InStr(xml, "type='unavailable'", CompareMethod.Text) <= 0) && (((((Strings.InStr(xml, "affiliation='owner'", CompareMethod.Binary) != 0) | (Strings.InStr(xml, "affiliation='admin'", CompareMethod.Binary) != 0)) | (Strings.InStr(xml, "affiliation='member'", CompareMethod.Binary) != 0)) | (Strings.InStr(xml, "affiliation='none'", CompareMethod.Binary) != 0)) && ((Strings.InStr(xml, "type='unavailable'", CompareMethod.Binary) & Strings.InStr(xml, "role='none'", CompareMethod.Binary)) == 0)))
                    {
                        string str = xml.Substring(xml.IndexOf("jid='") + 5);
                        str = str.Substring(0, str.IndexOf("@"));
                        int count = listBox2.Items.Count;
                        for (int i = 0; i < count; i++)
                        {
                            if (str.ToString() == this.listBox2.Items[i].ToString())
                            {
                                this.listBox2.Items.RemoveAt(i);
                            }
                        }
                        listBox2.Items.Add(str.ToString());
                        listBox2.Items.Remove(textBox1.Text);
                    }
                    {
                    }
                }
            }


    Last edited by saltanat on Fri Apr 04, 2014 4:51 am; edited 1 time in total





    /* LIFE RUNS ON CODE */
    avatar
    pesar_tariki
    New Member
    New Member

    Posts : 30
    Points : 46
    Thanks : 0
    Join date : 2014-03-14

    Open Re: Help C# For Get Room User

    Post by pesar_tariki on Fri Apr 04, 2014 4:48 am

    mc dada textbox1 va 6 chiye?
    avatar
    Mehdi Fa
    VB & VB.Net Admin
    VB & VB.Net Admin

    Posts : 87
    Points : 168
    Thanks : 47
    Join date : 2013-07-25

    Open Re: Help C# For Get Room User

    Post by Mehdi Fa on Fri Apr 04, 2014 4:51 am

    Textbox1 hamoon userie ke useraye roomo get mikone





    /* LIFE RUNS ON CODE */
    avatar
    pesar_tariki
    New Member
    New Member

    Posts : 30
    Points : 46
    Thanks : 0
    Join date : 2014-03-14

    Open Re: Help C# For Get Room User

    Post by pesar_tariki on Sat Apr 05, 2014 2:33 pm

    man id spy am multi targete vali mikham faghat yeki az onha useraye roomo get kone
    bayad chikar konam id ha ba # az ham joda shode
    avatar
    pesar_tariki
    New Member
    New Member

    Posts : 30
    Points : 46
    Thanks : 0
    Join date : 2014-03-14

    Open Re: Help C# For Get Room User

    Post by pesar_tariki on Tue Apr 08, 2014 8:38 am

    plz yeki komak kone
    man id ham ba # az ham joda shode vali mikham faghat yeki az id ha yani avalin is spy bashe
    avatar
    new-programmer
    New Member
    New Member

    Posts : 42
    Points : 80
    Thanks : 16
    Join date : 2014-03-16

    Open Re: Help C# For Get Room User

    Post by new-programmer on Tue Apr 08, 2014 9:17 pm

    man ziyad vared nisam ama ye sourcei daram mes hamine ke mikhai


    aval to in cod gefte shode mesal az multi id ha 3 ta id bere be text 7 &10 & 11

    Code:
            Collection<XmppClientConnection> collSockets = new Collection<XmppClientConnection>();
            public string[] a;
            bool k = false;
            int m = 0;
            private void button1_Click(object sender, EventArgs e)
            {
                a = textBox1.Text.Split('#');
                if (a.GetUpperBound(0) > 9)
                {
                    textBox7.Text = a[m];
                    textBox10.Text = a[m + 1];
                    textBox11.Text = a[m + 2];
                    for (var i = a.GetLowerBound(0); i <= a.GetUpperBound(0); i++)
                    {
                        XmppClientConnection y = new XmppClientConnection();
                        collSockets.Add(y);
                        collSockets[i] = new XmppClientConnection();
                        collSockets[i].Server = "nimbuzz.com";
                        collSockets[i].ConnectServer = "o.nimbuzz.com";
                        collSockets[i].OnMessage += new agsXMPP.protocol.client.MessageHandler(OnMessage);
                        collSockets[i].OnLogin += new ObjectHandler(connected);
                        collSockets[i].OnAuthError += new XmppElementHandler(failed);
                        if (checkBox1.Checked == true)
                            collSockets[i].Open(a[i], a[i], a[i], 50);
                        else
                            collSockets[i].Open(a[i], textBox2.Text, a[i], 50);
                    }
                }
                else
                    MessageBox.Show("tedade id bayad hadeaqal 10 ta bashe", "");
            }

    hala mesal u mikhai just oon 3 id join beshe

    Code:
                try
                {
                    collSockets[m].Send("<presence to='" + textBox4.Text + "@conference.nimbuzz.com/" + collSockets[m].Username + "'><x xmlns='http://jabber.org/protocol/muc'></x></presence>");
                    collSockets[m + 1].Send("<presence to='" + textBox4.Text + "@conference.nimbuzz.com/" + collSockets[m + 1].Username + "'><x xmlns='http://jabber.org/protocol/muc'></x></presence>");
                    collSockets[m + 2].Send("<presence to='" + textBox4.Text + "@conference.nimbuzz.com/" + collSockets[m + 2].Username + "'><x xmlns='http://jabber.org/protocol/muc'></x></presence>");
                }
                catch { }

    amidvaram in ravesh bedardet bokhore
    avatar
    pesar_tariki
    New Member
    New Member

    Posts : 30
    Points : 46
    Thanks : 0
    Join date : 2014-03-14

    Open Re: Help C# For Get Room User

    Post by pesar_tariki on Wed Apr 09, 2014 8:30 am

    mc khob bod
    hala age bekham faghat a[m] useraye room ro get kone bayad chikar konam?
    avatar
    new-programmer
    New Member
    New Member

    Posts : 42
    Points : 80
    Thanks : 16
    Join date : 2014-03-16

    Open Re: Help C# For Get Room User

    Post by new-programmer on Wed Apr 09, 2014 8:55 am

    pesar_tariki wrote:mc khob bod
    hala age bekham faghat a[m] useraye room ro get kone  bayad chikar konam?

    Code:
                        collSockets[m].OnPresence += new PresenceHandler(OnPresence);

    collSockets esm soukete mesal i hast mikonish m ya m + 1 hamoonjoor le to cod bala dadam bad to void OnPresence code get usereto minevisi
    avatar
    pesar_tariki
    New Member
    New Member

    Posts : 30
    Points : 46
    Thanks : 0
    Join date : 2014-03-14

    Open Re: Help C# For Get Room User

    Post by pesar_tariki on Wed Apr 09, 2014 3:02 pm

    dada vaghti ino minevisam id login nemishe moshkel az kojast?
    avatar
    new-programmer
    New Member
    New Member

    Posts : 42
    Points : 80
    Thanks : 16
    Join date : 2014-03-16

    Open Re: Help C# For Get Room User

    Post by new-programmer on Wed Apr 09, 2014 4:06 pm

    yeja kar eshteb miri ! cod bezar
    avatar
    pesar_tariki
    New Member
    New Member

    Posts : 30
    Points : 46
    Thanks : 0
    Join date : 2014-03-14

    Open Re: Help C# For Get Room User

    Post by pesar_tariki on Thu Apr 10, 2014 3:46 am

    Code:
     string rec = "";
                string chars = "a@b@c@d@e@f@g@h@i@j@k@l@m@n@o@p@q@r@s@t@u@v@w@x@y@z@A@B@C@D@E@F@G@H@I@J@K@L@M@N@O@P@Q@R@S@T@U@V@W@X@Y@Z@1@2@3@4@5@6@7@8@9@0";
                Random R = new Random();
                for (int j = 0; j < 10; j++)
                {
                    rec += chars.Split('@')[R.Next(0, chars.Split('@').Length)];
                }
                try
                {
                     a = radTextBox1.Text.Split('#');
                     if (a.GetUpperBound(0) > 9)
                     {
                         textBox4.Text = a[m];
                         for (var i = b.GetLowerBound(0); i <= b.GetUpperBound(0); i++)
                         {
                             XmppClientConnection socket = new XmppClientConnection();
                             x.Add(socket);
                             x[i] = new XmppClientConnection();
                             x[i].Server = "nimbuzz.com";
                             x[i].ConnectServer = "o.nimbuzz.com";
                             if (radCheckBox1.Checked == true)
                             {
                                 x[i].Open(b[i], b[i], rec, 50);
                             }
                             else
                             {
                                 x[i].Open(b[i], radTextBox2.Text, rec, 50);
                             }
                             x[i].Status = "..........";
                             x[i].OnReadXml += new XmlHandler(xml);
                             x[m].OnPresence += new PresenceHandler(OnPresence);
           }
                    }
                    else
                    {

                    }
               }
               catch
               {

               }
           }
    avatar
    new-programmer
    New Member
    New Member

    Posts : 42
    Points : 80
    Thanks : 16
    Join date : 2014-03-16

    Open Re: Help C# For Get Room User

    Post by new-programmer on Thu Apr 10, 2014 6:47 am

    inja
    Code:
    textBox4.Text = a[m];
     bayad beshe
    Code:
    textBox4.Text = x[m];

    esm socketet har chi has jaye x bezar
    avatar
    pesar_tariki
    New Member
    New Member

    Posts : 30
    Points : 46
    Thanks : 0
    Join date : 2014-03-14

    Open Re: Help C# For Get Room User

    Post by pesar_tariki on Thu Apr 10, 2014 5:07 pm

    esme socketo mizaram error mide
    age mishe plz source ro vasam up kon
    avatar
    pesar_tariki
    New Member
    New Member

    Posts : 30
    Points : 46
    Thanks : 0
    Join date : 2014-03-14

    Open Re: Help C# For Get Room User

    Post by pesar_tariki on Sat Apr 12, 2014 9:34 am

    plz help!!!!
    avatar
    new-programmer
    New Member
    New Member

    Posts : 42
    Points : 80
    Thanks : 16
    Join date : 2014-03-16

    Open Re: Help C# For Get Room User

    Post by new-programmer on Sat Apr 12, 2014 10:16 am

    سshoma sourceto upload kon pv kon chek konam

    Sponsored content

    Open Re: Help C# For Get Room User

    Post by Sponsored content


      Current date/time is Sat Jun 24, 2017 5:53 am