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 quiz pv c#

    Share
    avatar
    ho5e!n@n.c
    New Member
    New Member

    Posts : 25
    Points : 27
    Thanks : 0
    Join date : 2014-04-12
    Age : 34

    Open help quiz pv c#

    Post by ho5e!n@n.c on Thu Jun 26, 2014 10:43 am

    سلام دوستان
    یک سوال داشتم لطفا جواب بدین
    یه بوت پی وی دارم هرکسی در خاص بوت بزنه سوال
    بوت به کاربر یه سوال میده
    حالا اگه مثلا 2تا کاربر باهم سوال تایپ کنن
    مثلا به کاربر اولی میگه
    1+2=?
    به کاربر دوم
    5-1=?
    اونوقت جوابا قاطی میشن کاربر یک جوابش میشه جواب کاربر دوم
    خلاصه میخام که هر کاربر جداگانه باشه یعنی هر سوال و جواب کاربر جداگانه و بدون قاطی باشه خداکنم متوجه شده باشین که کمک کنید





    My ID Nimbuzz: ho5e!n@n.c



    My Room: برازجانم

    My bot: onlinepv@n.c and onlines2a@n.c
    avatar
    iman saeedi
    VB & VB.Net Admin
    VB & VB.Net Admin

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

    Open Re: help quiz pv c#

    Post by iman saeedi on Thu Jun 26, 2014 12:56 pm

    kheyli rahat mitoni ino ba class benevisi
    avatar
    ho5e!n@n.c
    New Member
    New Member

    Posts : 25
    Points : 27
    Thanks : 0
    Join date : 2014-04-12
    Age : 34

    Open Re: help quiz pv c#

    Post by ho5e!n@n.c on Thu Jun 26, 2014 4:06 pm

    یه نفر کدش بده ممنون میشم بدجور گیرم





    My ID Nimbuzz: ho5e!n@n.c



    My Room: برازجانم

    My bot: onlinepv@n.c and onlines2a@n.c
    avatar
    ho5e!n@n.c
    New Member
    New Member

    Posts : 25
    Points : 27
    Thanks : 0
    Join date : 2014-04-12
    Age : 34

    Open Re: help quiz pv c#

    Post by ho5e!n@n.c on Fri Jun 27, 2014 8:59 am

    کسی نبود!!!!!!؟





    My ID Nimbuzz: ho5e!n@n.c



    My Room: برازجانم

    My bot: onlinepv@n.c and onlines2a@n.c
    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 quiz pv c#

    Post by Mehran Mahmoudi on Fri Jun 27, 2014 10:36 am

    Hi
    Mituni az listView ,DataGridView Ya Hatta ListBox estefade koni.
    Ye listView add kon 2 ta column behesh add kon yeki username, yeki javab.
    hala man miad pm midam soal, to bia id e man + javabe soal ro add kon be listView:
    Code:
    ListViewItem item = new ListViewItem();
    item.Text = msg.From.User;
    item.SubItems.Add("javab");
    listView1.Items.Add(item);
    Ta Inja Halle? Hala Taraf Miad Javab Ro Mide Pv e Botet, Vase CHeck Kardan Inke Javab Doroste ya Na:
    Code:
    for(int i=0;i<listView1.Items.Count;i++)
    if(listView1.Items[i].Text.Equals(msg.From.User))
    if(listView1.Items[i].SubItems[1].Text == msg.Body)
    {
    // inja be user begoo k javabesh doroste va be emtiazesh ezafe kon
    break;// halghe ro beshkan
    }
    else
    {
    // inja bego javabesh ghalate
    break;
    }
    Alan Jaeiam vs nadaram ba notePad neveshtam moshkeli bood hamin topic rep bede.
    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
    ho5e!n@n.c
    New Member
    New Member

    Posts : 25
    Points : 27
    Thanks : 0
    Join date : 2014-04-12
    Age : 34

    Open Re: help quiz pv c#

    Post by ho5e!n@n.c on Sat Jun 28, 2014 7:21 pm

    مهران جان اینم امتحان کردم ایدی اد کردم ولی جواب نه
    بعد بازم بی فایده بود ثاطی شد
    نمیدونم دیگه چکارش کنم





    My ID Nimbuzz: ho5e!n@n.c



    My Room: برازجانم

    My bot: onlinepv@n.c and onlines2a@n.c
    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 quiz pv c#

    Post by Mehran Mahmoudi on Sun Jun 29, 2014 9:32 am

    Hi
    Age JooRi Ke Bayad, Anjam Bedi Karet Rah Miofte !!
    Bishtar Talash Kon Age Nashod Rep Bede Ta Simple SOurce Benevisam BaRat.






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

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

    avatar
    ho5e!n@n.c
    New Member
    New Member

    Posts : 25
    Points : 27
    Thanks : 0
    Join date : 2014-04-12
    Age : 34

    Open Re: help quiz pv c#

    Post by ho5e!n@n.c on Sun Jun 29, 2014 10:05 am

    اگه بنویسی ممنون میشم نشد بخدا





    My ID Nimbuzz: ho5e!n@n.c



    My Room: برازجانم

    My bot: onlinepv@n.c and onlines2a@n.c
    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 quiz pv c#

    Post by Mehran Mahmoudi on Sun Jun 29, 2014 11:18 am

    Salam
    Mishe CodeHayi Ke Neveshti Ro Baram Bezari???? Daqiqan Hamuni Ke Behet Gofte Boodam Ro Neveshtam :S Jaye Taajobe Chetor Natunesti !!
    Link:
    [You must be registered and logged in to see this link.]

    ---------
    Tozihat:
    2 Ta Method Be EsmHaye
    Code:
    CreateRandomMathQuestion
    AnswerToMathQuestion
    Hastan, Avvali Baraye Sakhtane Soale Riazi Mesle: 77 + 91 = ?
    Dovvomi Baraye Javab Dadan Be SoalHayi Ke Be In Shekl Hastan :S
    Ghablan Ye Dll Be Esme 'Badbuzz MF Library' Share Karde Boodam Ke Karayi Mesle In Mikard ! Codehaye Oon Ro Baraye In Use Kardam.
    ---------
    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 quiz pv c#

    Post by $iahi on Mon Jun 30, 2014 4:16 am

    meran jan on source dll ro bezar lotfan





    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 quiz pv c#

    Post by Mehran Mahmoudi on Mon Jun 30, 2014 4:43 am

    $iahi: Oono Ke Share Karde Booodam Ghablan !! :S

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






    [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 quiz pv c#

    Post by $iahi on Mon Jun 30, 2014 4:13 pm

    meran joon source na dll Khande





    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 quiz pv c#

    Post by Mehran Mahmoudi on Tue Jul 01, 2014 2:07 am

    Salam
    $iahi:
    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    using Microsoft.VisualBasic;
    using System.Windows.Forms;
    namespace BadbuzzMfLibrary
    {
        namespace Quiz
        {
            public class MfQuizTool
            {
                public string CreateRandomMathQuestion(int min, int max)
                {
                    if (max - min < 3)
                    {
                        return "failed";
                    }
                    else
                    {
                        int intFirstNum = new Random().Next(min, max);
                        if (intFirstNum == 0)
                        {
                            do
                            {
                                intFirstNum = new Random().Next(min, max);
                            }
                            while (intFirstNum == 0);
                        }
                        int int2thNum = new Random().Next(min, max);
                        if (int2thNum == 0 || int2thNum == intFirstNum)
                        {
                            do
                            {
                                int2thNum = new Random().Next(min, max);
                            }
                            while (int2thNum == 0 || int2thNum == intFirstNum);
                        }
                        string[] alamaaaat = { "+", "x", "-" };
                        string chi = alamaaaat[new Random().Next(alamaaaat.Length)];
                        string soal = intFirstNum + " ? " + int2thNum;
                        switch (chi)
                        {
                            case "+":
                                soal = soal.Replace("?", "+");
                                break;
                            case "x":
                                soal = soal.Replace("?", "x");
                                break;
                            case "-":
                                soal = soal.Replace("?", "-");
                                break;
                        }
                        return soal + " = ?";
                    }
                }
                public string AnswerToMathQuestion(string question)
                {
                    if (question == "" || question == null || question == string.Empty)
                        return "failed";
                    else
                    {
                        string[] ehemzzz = question.Split(new char[] { ' ' });
                        int javab = 0;
                        switch (ehemzzz[1])
                        {
                            case "+":
                                javab = int.Parse(ehemzzz[0]) + int.Parse(ehemzzz[2]);
                                break;
                            case "x":
                                javab = int.Parse(ehemzzz[0]) * int.Parse(ehemzzz[2]);
                                break;
                            case "-":
                                javab = int.Parse(ehemzzz[0]) - int.Parse(ehemzzz[2]);
                                break;
                        }
                        return javab.ToString();
                    }
                }
                public string AnswerToWordQuestion(string question, string answers)
                {
                    if (question == "" || question == null || question == string.Empty)
                        return "failed";
                    else if (answers == "" || answers == null || answers == string.Empty)
                        return "failed";
                    else
                    {
                        string[] answerss = answers.Split(new char[] { '#' });
                        string answer = "failed";
                        for (int b = 0; b < answerss.Length; b++)
                        {
                            string[] quechars = new string[question.Length];
                            for (int a = 0; a < quechars.Length; a++)
                                quechars[a] = question.ToLower().Substring(a, 1);
                            string[] anschars = new string[answerss[b].Length];
                            for (int a = 0; a < answerss[b].Length; a++)
                                anschars[a] = answerss[b].ToLower().Substring(a, 1);
                            if (quechars.Length == anschars.Length)
                            {
                                for (int c = 0; c < quechars.Length; c++)
                                    if (quechars[c] == "?")
                                    {
                                        anschars[c] = "";
                                        quechars[c] = "";
                                    }
                                string str1 = "";
                                string str2 = "";
                                foreach (var c in quechars)
                                    str1 += c;
                                foreach (var c in anschars)
                                    str2 += c;
                                if (str1 == str2)
                                {
                                    answer = answerss[b];
                                    break;
                                }
                            }
                        }
                        return answer;
                    }
                }
                public string CreateRandomWordQuestion(string question)
                {
                    if (question == "" || question == null || question == string.Empty)
                        return "failed";
                    else
                    {
                        string strWord = null;
                        strWord = question;
                        string[] strChars = new string[strWord.Length];
                        for (int a = 0; a < strWord.Length; a++)
                            strChars[a] = strWord.Substring(a, 1);
                        int intFirstNum = 0;
                        for (int a = 0; a < strChars.Length / 2; a++)
                        {
                            int int2thNum = new Random().Next(strChars.Length);
                            if (int2thNum == intFirstNum)
                                do
                                {
                                    int2thNum = new Random().Next(strChars.Length);
                                }
                                while (int2thNum == intFirstNum);
                            intFirstNum = int2thNum;
                            strChars[int2thNum] = "?";
                        }
                        string strQuiz = null;
                        foreach (string strB in strChars)
                            strQuiz += strB;
                        return strQuiz;
                    }
                }
                public string ReverseWord(string word)
                {
                    if (word == string.Empty || word == null || word == "")
                        return "failed";
                    else
                    {
                        string strWord = null;
                        strWord = word;
                        string strQuiz = null;
                        for (int a = strWord.Length - 1; a >= 0; a--)
                            strQuiz += strWord.Substring(a, 1);
                        return strQuiz;
                    }
                }
            }
        }
    }
     CRAZY 
    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
    Nima
    Csharp Admin
    Csharp Admin

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

    Open Re: help quiz pv c#

    Post by Nima on Wed Jul 02, 2014 5:21 am

    salam bax gol . inam ye source quiz riazie khode microsoft gozashte
    be nazaram jalebe o mitone be dard bokhore .
    Good Luck

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






    Sponsored content

    Open Re: help quiz pv c#

    Post by Sponsored content


      Current date/time is Sun Dec 17, 2017 7:01 am