Click here to Skip to main content
15,900,641 members
Home / Discussions / C#
   

C#

 
AnswerRe: Display a grid of all character of a font Pin
_Maxxx_14-Jun-09 15:21
professional_Maxxx_14-Jun-09 15:21 
GeneralRe: Display a grid of all character of a font Pin
Luc Pattyn14-Jun-09 15:29
sitebuilderLuc Pattyn14-Jun-09 15:29 
GeneralRe: Display a grid of all character of a font Pin
_Maxxx_14-Jun-09 16:56
professional_Maxxx_14-Jun-09 16:56 
GeneralRe: Display a grid of all character of a font Pin
Luc Pattyn14-Jun-09 16:58
sitebuilderLuc Pattyn14-Jun-09 16:58 
GeneralRe: Display a grid of all character of a font Pin
_Maxxx_14-Jun-09 19:07
professional_Maxxx_14-Jun-09 19:07 
GeneralRe: Display a grid of all character of a font Pin
baranils14-Jun-09 19:46
baranils14-Jun-09 19:46 
GeneralRe: Display a grid of all character of a font Pin
Member 400112014-Jun-09 23:45
Member 400112014-Jun-09 23:45 
QuestionC# ToolstripMenu question Pin
Dj_AviAtriX14-Jun-09 12:00
Dj_AviAtriX14-Jun-09 12:00 
Hello , i have the following situation : with my function i get an XML file , parse it and add group box with image and a text box for every post node in the XML file , And for each group box i assign name and toolstrip menu which has a dinamicly added 1 item the thing i want to do is this - when clicked this item ( lets say the item has name Jeff) so .. when i press the menu item Jeff to add text to a text box ( the text is "@Jeff) . as u can see i managed to make the name adding in the toolstripmenu but i cant make it when i clic to add the name to the text box for each person

and here is my function so you could see what im talking about


public void parseXmlatme()

    {


        string sUser, sUrl;

        string avatar;
        sUser = Settings.Default.user;
        AtMeFlowLayoutPanel.Controls.Clear();
        sUrl = "http://edno23.com/api/xml/get.php?username=" + sUser + "&type=posts_mention_me";
        rssReader = new XmlTextReader(sUrl.ToString());
        rssDoc = new XmlDocument();
        rssDoc.Load(rssReader);

        for (int i = 0; i < rssDoc.ChildNodes.Count; i++)
        {
            if (rssDoc.ChildNodes[i].Name == "edno23")
            {
                nodeRss = rssDoc.ChildNodes[i];
            }
        }

        for (int i = 0; i < nodeRss.ChildNodes.Count; i++)
        {
            if (nodeRss.ChildNodes[i].Name == "posts")
            {
                nodeChannel = nodeRss.ChildNodes[i];
            }
        }

        for (int i = 0; i < nodeChannel.ChildNodes.Count; i++)
        {
            if (nodeChannel.ChildNodes[i].Name == "post")
            {
                nodeItem = nodeChannel.ChildNodes[i];
                string C;
                C = nodeItem["user_from"].InnerText;
                avatar = nodeItem["user_from_avatar"].InnerText; ;
                // 
                // groupBox1
                // 
                GroupBox grpBox = new GroupBox();
                TextBox txtBox = new TextBox();
                PictureBox picBox = new PictureBox();
                ContextMenuStrip  rightMenu = new ContextMenuStrip();
                ToolStripMenuItem atMe = new ToolStripMenuItem();

                // 
                // rightMenu
                // 
                rightMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                atMe});
                rightMenu.Name = "rightclick";
                rightMenu.Size = new System.Drawing.Size(153, 70);
                // 
                // toolStripMenuItem2
                // 
                atMe.Name = "toolStripMenuItem2";
                atMe.Size = new System.Drawing.Size(152, 22);
                atMe.Text = "@"+C;
                name = C;
                atMe.Click += atMe_Click;



                 ////
                grpBox.Location = new System.Drawing.Point(3, 3);
                grpBox.Name = "grpBoxatme" + i;
                grpBox.Size = new System.Drawing.Size(301, 73);
                grpBox.TabIndex = 0;
                grpBox.TabStop = false;
                grpBox.Text = C;
                grpBox.ContextMenuStrip = rightMenu;
               // rightMenu.Items.Add(C);
                // txtbox
                txtBox.BackColor = System.Drawing.SystemColors.ControlLightLight;
                txtBox.Location = new System.Drawing.Point(59, 16);
                txtBox.Multiline = true;
                txtBox.Name = "txtBoxatme" + i;
                txtBox.ReadOnly = true;
                txtBox.Size = new System.Drawing.Size(235, 49);
                txtBox.TabIndex = 2;
                txtBox.Text = nodeItem["message"].InnerText;

                //pic box
                picBox.Dock = System.Windows.Forms.DockStyle.Left;
                picBox.ImageLocation = "http://img.edno23.com/avatars/thumbs/" + avatar;
                picBox.Location = new System.Drawing.Point(3, 16);
                picBox.Name = "pictureBoxatme" + i;
                picBox.Size = new System.Drawing.Size(50, 54);
                picBox.TabIndex = 0;
                picBox.TabStop = false;

                AtMeFlowLayoutPanel.Controls.Add(picBox);
                AtMeFlowLayoutPanel.Controls.Add(grpBox);
                grpBox.Controls.Add(picBox);
                grpBox.Controls.Add(txtBox);
            }
        }




    }

Thanks in advance

I'm a bomb technician, if you see me running - try to keep up. Big Grin | :-D

AnswerRe: C# ToolstripMenu question Pin
I Believe In GOD14-Jun-09 12:29
I Believe In GOD14-Jun-09 12:29 
GeneralRe: C# ToolstripMenu question Pin
Dj_AviAtriX14-Jun-09 12:38
Dj_AviAtriX14-Jun-09 12:38 
QuestionHow to update cell in Datagrid Pin
E_Gold14-Jun-09 7:24
E_Gold14-Jun-09 7:24 
AnswerRe: How to update cell in Datagrid Pin
I Believe In GOD14-Jun-09 10:49
I Believe In GOD14-Jun-09 10:49 
Questionink sdk application Pin
radhikasharma14-Jun-09 6:59
radhikasharma14-Jun-09 6:59 
AnswerRe: ink sdk application Pin
OriginalGriff14-Jun-09 9:30
mveOriginalGriff14-Jun-09 9:30 
QuestionSamples To Bytes Pin
dSolariuM14-Jun-09 6:53
dSolariuM14-Jun-09 6:53 
AnswerRe: Samples To Bytes [modified] Pin
molesworth14-Jun-09 8:07
molesworth14-Jun-09 8:07 
QuestionHow to restart Console Application at Main Method Pin
Serpendiem14-Jun-09 6:46
Serpendiem14-Jun-09 6:46 
AnswerRe: How to restart Console Application at Main Method Pin
Eddy Vluggen14-Jun-09 8:19
professionalEddy Vluggen14-Jun-09 8:19 
AnswerRe: How to restart Console Application at Main Method Pin
I Believe In GOD14-Jun-09 10:50
I Believe In GOD14-Jun-09 10:50 
AnswerRe: How to restart Console Application at Main Method Pin
PIEBALDconsult14-Jun-09 15:14
mvePIEBALDconsult14-Jun-09 15:14 
AnswerRe: How to restart Console Application at Main Method [modified] Pin
XA21X30-Aug-10 19:48
XA21X30-Aug-10 19:48 
QuestionXLS to CSV - header problem Pin
Fehim Dervišbegović14-Jun-09 5:46
Fehim Dervišbegović14-Jun-09 5:46 
AnswerRe: XLS to CSV - header problem Pin
Henry Minute14-Jun-09 9:47
Henry Minute14-Jun-09 9:47 
GeneralRe: XLS to CSV - header problem Pin
Fehim Dervišbegović14-Jun-09 23:07
Fehim Dervišbegović14-Jun-09 23:07 
Questiondatagridview to excell Pin
michaelgr114-Jun-09 5:27
michaelgr114-Jun-09 5:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.