hi
i need to create menu with icons from xml file, icons from url
xml look like this
- <Item name="cat" ico="http://....../cat.bmp">
</Item>
- <Item name="dog" ico="http://....../dog.bmp">
</Item>
- <Item name="cow" ico="http://....../cow.bmp">
</Item>
my c# code is
XmlDocument doc = new XmlDocument();
doc.Load("katalogs.xml");
foreach (XmlNode node in doc.DocumentElement.ChildNodes)
{
ToolStripMenuItem childMenu = new ToolStripMenuItem(node.Attributes["name"].Value, new Bitmap(cow.bmp")));
tools.DropDownItems.Add(childMenu);
}
if i set icon from file, all working fine
but have can i get icon from url?
Thanks a lot