I'm creating a UI editor for a control I made. Basically the user can double click to open a dialog to set properties like color, text, etc. I would like to add a way to set the images. In the control's properties it will open the resource dialog. Is there a way to open this dialog from an event, button click, in design mode?
I'm using VS2017, vb.net.
Related
I am working on a custom vb.net application which uses Microsoft Word embedded in it. As the users are restricted to what kind of formatting they are allowed to do while modifying documents, we are using a template which contains custom ribbons and menus.
In the past we have also captured the right-click event to suppress the display of the built-in shortcut menu and mini toolbar.
We would now like to re-activate the right-click to bring up a modified shortcut menu. This we can do through macros and templates. However, we are not able to keep the mini toolbar from appearing on the right-click event. We have turned off the Word Option which automatically brings up the mini toolbar when one selects text, however, that does not affect the behavior of the right-click event.
I have a chicken or the egg problem -
I'm trying to create a custom context menu for a richtextbox control that INCLUDES the "Reconversion" menu choice provided by the default textbox context menu when IME is enabled.
So here is the issue -
Duplicating the default text menu choices (Cut,Copy...) is a no brainer, but how can I ADD a menu that will access the IME Reconversion window?
I was thinking it might be possible to hook the Windows handle for this menu but I haven't got the slighest clue.
(Note the RichTextBox control does NOT have a default context menu)
My issue is that I need the formatting capability of the RTF, so I can't just use a TextBox with the default system menu (which works fine with the IME).
In my application when it is iconized in the system tray, and through a ContextMenuStrip1 displays a context menu and when I click the icon I can choose what to display; the application, close it etc.
Now, when the mouse is over the icon I would like to show a tooltip (property that unfortunately does not have, but that have the individual menu items), it always shows me the name of the menu object: ContextMenuStrip1, even in its text property set something else.
Since at some times the app makes updates in background I would like to show under the icon a small progressbar as do some application. How is this possible in vb.net? (I'm using VB2012)
Thank you all.
I resolved you need to use the Text property of the notifyIcon object.
Whenever i click start on a VS project, it opens with the default form set in properties. How do i change it so that form i am working on is loaded instead of the properties startup form. I am using VS2013 Ultimate.
You can open the Project Designer window by right-clicking My Project in the Solution Explorer window and then clicking Open on the context menu. Or, you can click Project on the menu bar and then click Properties on the menu.
1.
Right-click My Project in the Solution Explorer window, and then click Open to open the Project Designer window.
2.
Auto-hide the Solution Explorer window.
3.
If necessary, click the Application tab to display the Application pane. If frmMain does not appear in the Startup form list box, click the Startup form list arrow and then click frmMain in the list.
I made a notepad using vb 2008 and I am facing a problem who I'd make the Statusbar.
any idea will be great.
Note: I am using the Textbox to read and write text
Thank you
You need to add a StatusStrip control to your form.
To find it, open the Toolbox, expand the "Menus & Toolbars" section, and double-click on the one named "StatusStrip".
Double-clicking on the control in the Toolbox will automatically add it to your form, and dock it along the bottom, just like it is in Notepad.
Once the control is there, you can customize it by changing properties in the Properties window. If you want to add information to the status bar, you do that by adding sub-controls inside of it. Click the drop-down arrow next to the "new" icon, and you'll see a list of possible choices:
"StatusLabel" — displays static text
"ProgressBar" — displays a progress bar, indicating the progress of a background operation
"DropDownButton" — displays a drop-down button, to allow a choice of multiple options
"SplitButton" — displays a drop-down button that allows a choice of multiple options, but also invokes the default option by a single click on the button.