Click here to Skip to main content
15,914,074 members
Home / Discussions / C#
   

C#

 
QuestionConvert GlyphIndex to Unicode Pin
xstoneheartx19-Aug-09 11:30
xstoneheartx19-Aug-09 11:30 
QuestionModeless active window/class - Cannot access a disposed object. Pin
Natural_Demon19-Aug-09 9:05
Natural_Demon19-Aug-09 9:05 
AnswerRe: Modeless active window/class - Cannot access a disposed object. Pin
Christian Graus19-Aug-09 11:04
protectorChristian Graus19-Aug-09 11:04 
GeneralRe: Modeless active window/class - Cannot access a disposed object. Pin
Natural_Demon19-Aug-09 12:36
Natural_Demon19-Aug-09 12:36 
GeneralRe: Modeless active window/class - Cannot access a disposed object. Pin
Natural_Demon19-Aug-09 13:00
Natural_Demon19-Aug-09 13:00 
GeneralRe: Modeless active window/class - Cannot access a disposed object. Pin
Christian Graus19-Aug-09 16:00
protectorChristian Graus19-Aug-09 16:00 
GeneralRe: Modeless active window/class - Cannot access a disposed object. Pin
Natural_Demon20-Aug-09 2:48
Natural_Demon20-Aug-09 2:48 
QuestionDynamic Menu Creation Problem Pin
jroberson1019-Aug-09 8:59
jroberson1019-Aug-09 8:59 
I am trying to teach myself C# and I have started writing a web browser based on mozilla gecko. Right now I am working on storing and retrieving bookmarks from an xml document.

I can save and read the bookmarks just fine. However in order to see a bookmark I just added I must exit the program and restart it. I have tried calling the function that populates the menu after the new bookmark is written to the xml file but it runs and loads everything but the new bookmark.

Below is the code I use to populate the menus.




public void PopulateBM()


        {


            string filename = "bookmarks.xml";


            if(File.Exists(filename))


            {


             XmlDocument xmldoc = new XmlDocument();


             xmldoc.Load(filename);


             XmlNodeList xmlnode = xmldoc.GetElementsByTagName("Bookmark");


             for (int i = 0; i < xmlnode.Count; i++)


                {


                 ToolStripMenuItem item = new ToolStripMenuItem();


                 item.Text = xmlnode[i].FirstChild.InnerText;


                 item.Tag = xmlnode[i].LastChild.InnerText;


                 item.ToolTipText = xmlnode[i].LastChild.InnerText;


                 item.Click += new EventHandler(this.item_Click);


                 this.bookmarksToolStripMenuItem.DropDownItems.Insert(3,item);


                 }


            }


          }

AnswerRe: Dynamic Menu Creation Problem Pin
Hristo-Bojilov19-Aug-09 9:37
Hristo-Bojilov19-Aug-09 9:37 
GeneralRe: Dynamic Menu Creation Problem Pin
jroberson1019-Aug-09 9:41
jroberson1019-Aug-09 9:41 
GeneralRe: Dynamic Menu Creation Problem Pin
Hristo-Bojilov19-Aug-09 9:46
Hristo-Bojilov19-Aug-09 9:46 
GeneralRe: Dynamic Menu Creation Problem Pin
jroberson1019-Aug-09 9:50
jroberson1019-Aug-09 9:50 
GeneralRe: Dynamic Menu Creation Problem Pin
Hristo-Bojilov19-Aug-09 9:56
Hristo-Bojilov19-Aug-09 9:56 
GeneralRe: Dynamic Menu Creation Problem Pin
jroberson1019-Aug-09 10:07
jroberson1019-Aug-09 10:07 
GeneralRe: Dynamic Menu Creation Problem Pin
jroberson1020-Aug-09 11:36
jroberson1020-Aug-09 11:36 
GeneralRe: Dynamic Menu Creation Problem Pin
0x3c019-Aug-09 9:47
0x3c019-Aug-09 9:47 
GeneralRe: Dynamic Menu Creation Problem Pin
jroberson1019-Aug-09 9:51
jroberson1019-Aug-09 9:51 
GeneralRe: Dynamic Menu Creation Problem Pin
0x3c019-Aug-09 9:58
0x3c019-Aug-09 9:58 
QuestionInsert function into event at runtime Pin
bonzaiholding19-Aug-09 8:45
bonzaiholding19-Aug-09 8:45 
AnswerRe: Insert function into event at runtime Pin
0x3c019-Aug-09 9:57
0x3c019-Aug-09 9:57 
GeneralRe: Insert function into event at runtime Pin
bonzaiholding19-Aug-09 10:18
bonzaiholding19-Aug-09 10:18 
GeneralRe: Insert function into event at runtime Pin
mustang8619-Aug-09 11:08
mustang8619-Aug-09 11:08 
GeneralRe: Insert function into event at runtime Pin
PIEBALDconsult19-Aug-09 18:16
mvePIEBALDconsult19-Aug-09 18:16 
GeneralRe: Insert function into event at runtime Pin
mustang8619-Aug-09 19:29
mustang8619-Aug-09 19:29 
QuestionC# Code explanation Please Pin
12priya19-Aug-09 7:57
12priya19-Aug-09 7:57 

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.