i'm building a custom control to draw graphics. In my control i have a picturebox and one propertygrid, what i need it's to hide all the public property's of the picture box (browsable(false)), but i don't see how to do it...
Other question, it's possible to add one task menu to my control? Kind of the the task menu of the datagridview where we can set the datasource...
is it guaranted that a task A started before TaskB will be completed before task B assuming the task do the same level of operatons?or in other words is there a chance that a task B will finish before tast A in the assumption that the task calls the same procedure?
I have a masterpage where I have placed a menu control with names Menu1, Menu2, Menu3. All the menu items have code behind pages and I want to change the color of menus when someone clicks on it i.e. when someone clicks on Menu1 it should be selected and its color should change to yellow and others should be Blue and so on.
I have tried static selected style but its not working when the menus have code behind pages.
I have a menu control and what im looking to do is change the color of each of the menuItem but dont have a cssClass property to do so. How could I accomplish this.[code]...
I downloaded a nice menu control from this webpage [URL]. I added the control to my toolbox, and dragged and dropped it onto my form. The problem is I can't see any way of adding menu items. There is a property named items, but that doesn't seem to add menu items to the menu. There doesn't seem to be any other property that would add the items. Any way of adding code to add the menu items.
I am migrating code from vb6 to vb.net (using vs2005 as my ide) I have added a resource that is a .chm file that contains help information (that i have not written) and what i want to do is open the file to a "page" on the click event of a menustrip tool item.
How can i use the click event of the menu strip item to open an explorer window that displays help like pressing F1 in visual studio 2005 on the term INTEGER and getting the help page on the visual studio help bit to do with integers
I need some code to add the contextmeu to the richbox Not the tabcontrol But the richtextbox is in the control, So I have the CType(TabControl1.SelectedTab.Controls.Item(0),RichTextBox) But now what to add the context menu?
I have a Menu control to which I've added a Logout menu item. The code looks like so:
Protected Sub Menu1_MenuItemClick(sender As Object, e As System.Web.UI.WebControls.MenuEventArgs) Handles Menu1.MenuItemClick If e.Item.Value = "Logout" Then
[Code]...
When I logout it redirects fine, but it doesn't seem to be abandoning the session. I've successfully implemented logout in another application by using a LinkButton, this seems to be an issue specifically with the Menu control?
I'm using VS2010 Express but there doesn't seem to be an option to create a control library project. Is this not included in this version or must I download it from somewhere?
I would like to include a menu system like the control panel in win7 with the large 48 x 48 icon, a title and a link for the navigation like this: What is this style called? and are there any free versions I can include as a DLL to my project?
q1/ how can i add a menuitem to ie edit control context menu? is it a registry setting? q2/ after i've added a menuitem to ie edit control context menus, how can i programmatically edit the text in that edit control when i click my menuitem?
I want to avoid paste operation in combox box control. to suppress the system context menu for copy and paste, I did following steps1) Create a empty new context menu (just drag drop new context menu on the form) 2) Assigned newly created empty ContextMenuStrip to combo box ContextMenuStrip property. Is it the right way to avoid right click system context menu? is there any other way to do so?
I've made a Context menu that adds a new node to the control. But it doesn't work. Private Sub ToolStripMenuItem10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripMenuItem10.Click Maps.BeginUpdate() Dim i As Integer [Code] ..... What I am trying to achieve is for example map1 is already there so if you add a new map it will add +1 to the i and return map2 etc.
Disable the WebBrowser control context menu visual studio 2008.somebody said: place the following code in your form load method on a form with a WebBrowser control:[code]
Any way I can set parent of the MainMenu control? I don't want to use other controls because there is no windows 7 or vista style as in picture. Other controls have just ugly blue and white color. When I add MainMenu it sets position on top of the form. I want to set MainMenu Parent to one Panel. Other controls have just ugly blue and white color.
I need to create a menu bar (similar to VB6) for my ASP.NET application.
What I don't need is a standard navigation menu bar (plenty of those out there). I'm not redirecting to a different page. What i do need is a menubar that will behave similarly to a VB6 menu, or ASP.NET button control. I have to postback and execute some VB code (depending on what menu item the user selected).
What I hope is relevant code below, I would like the User to be able to Right click when hovering over the PictureBox container of a User Control and pop up a menu which allows a User to check or uncheck an item in the context menu. How can I acheive that?
I have 10 PictureBox on a windows form (created in Design View) and a context menu strip is attached to each of them. I am trying to set the property of the PictureBox using the context menu.
what is the correct control for displaying mouse event -> right click? i tried the ContextMenuStrip control but it seems i can't change its location, can i?
I have a program that has two list boxes. I want to have the user right click either listbox and remove an item using the context menu option. I have tried to use GetChildAtPoint (control.mouseposition) but I cannot return a control the mouse is over. I then tried to use the _Click event of the context menu to get the sender, but the sender is the contextmenu control. Here is the code I am using:
Dim ctrl As Control = Me.GetChildAtPoint(Control.MousePosition) If ctrl Is Nothing Then Exit Sub
I have 10 textboxes on a windows form. Each textbox has the same contextmenu. Say they are named textbox1 - textbox10. What I need is when I right click in one of the textboxes I need to capture the name of the textbox in which the contextmenu was called. So if I am over textbox2 and right click for contextmenu then select menu item #2 in the click event I need to capturethe textbox control I called the contextmenu from (textbox2) so I can send that name to a function to process my other code.
I am looking for a nice menu control to add some styling to my application. I search the forums and codeplex and codeproject. I found one that is nice..[URL] but I need to be able to embed a textbox for some input.
I am changing the content menu strip of the control to my menu strip but nothing happens.I can see my menu strip in the rest of the form but dhtml edit control does not react to right click.
When I open a form in my application and I maximize it, the Icon and the ControlBox are merged in the menu of the MDI parent where I open the form in. That is perfectly normal.
But when I close that form and open an other and also maximize it, I get two icons and two control boxes in my menu. When I close that form and open an other again and maximize it on it's turn, I get 3 icons and 3 control boxes in my menu. When I close the maximized form shouldn't the icon and the controlboxes dissapear?
How does one get the context menu to appear when right clicking a "custom" windows title bar? I want the default context menu (the one that appears when clicking a forms caption bar) to show when clicking a control on a form... generally i want to make my own title bar (caption bar) for a form...the code that fails is "formTitleContext"also any suggestions to writing more concise code for this task will be greatly