Tell me, I want to make a program constructor, here is a menu (empty) and now I want others to be able to add items there without having the source code. For example, there are 2 input fields:

  1. Title
  2. Link

When the user enters the name of the item and the link in the first field, then when he clicks the "Add" button, an item appears in the menu, which, when clicked, goes to the link in the WebBrowser element.

  • As an option - use XML - Zowie
  • Can you tell where and how to activate it? Or give the name of the literature on it. - Angus123
  • <a href=" en.wikipedia.org/wiki/XML"> Wikis </a> <br> At one time, the video course from "Specialist" helped in the study of XML, as an option you can skip <a href = " letitbit.net/ download / 3897.3c99db0ab48992356de1f0da2dc7 / ... > <br> In general, it makes no sense to hover over its study if you only need a solution to this problem, I can’t give an example of code because it’s not VBshnik :) <br> I think <a href = " msdn.microsoft .com / en-ru / library / bb385097.aspx "> here </ ... > there should be enough information to solve your problem <br> PS: XML is a markup language, so what to write like how to turn it on is nonsense :) - Zowie
  • In general, it is not even the essence of what to use, the point is that you definitely need a data warehouse, and XML is just one of the options - Zowie

1 answer 1

You decide, you have VB or VB.NET. In any case, for a VB-shnik the task may seem unusually difficult. You need to use the WinAPI functions (read MSDN) to get the handle of your window and the handle of its menu, and then add or remove items to it. Here is a link to the dock for adding a menu item for example: MSDN AppendMenu

(this is about VB)

But in general, nothing special, of course. Where to store data - in xml or else where - this is unprincipled. Although an array of item names hold ...

  • I'm talking about VB .NET - Angus123