I have a form with minimize/maximize buttons on the toolbar so I cant have a help button there.
So I thought I would add a normal button and add code on the click event to show the help cursor and show the help text on the controls exactly as the help button does on the toolbar.
I can change the cursor to show the question mark but this doesn't do anything else, how can I 'activate' the help function?
You first have to create one, have a look at the Helpprovider class:
Msdn HelpProvider class
HelpProvider example
But, you can also create a simple form, add a webbrowser control to it. Then create a .html file and insert it in the webbrowser control, when the user clicks the help button, the form will open with the .html page with your help text.
You can set a shortcut in the property's window for the button that opens the helpfunction like this:
The F1 button will call the code behind the helpbutton that calls the help function.
Related
I'm working on a Viewer Form in VB.NET. I have a select picture button which I want to write a function for it. When I double click on the button in the viewer form design it was suppose to create a method automatically in the viewer form code but I didn't. So I had to create the method myself but I have an error which I don't know how to fix it. I tried to change the "btn" to "Btn" but it still didn't work.
When someone clicks on a button then a pop up form will appear.
I am trying to do but don't know how to fix it.
You can open new popup window form by javascript as you have to
call following with onclick event of your button
window.open(url, 'new tab', 'width=700,height=500');
You can also close this popup window after success of form submission by following
window.close(url);
In url you have to add your url.
If this is not work please share more information. thank you
I'd like to open a pop-up when the Help Button is clicked.
I've got this window with 2 help buttons.
I want each help button, when pressed, to open a small squared pop-up beside them containing a small text that I've previously written.
What could be the best way to do it ?
I don't want it to be a window, just a square containing some strings.
Thanks.
You need NSPopover. It's fairly easy to implement. There is a sample project here.
I am wanting to add an image to the top or background of a listbox. I would like it to be visible on the screen, but more importantly is that it prints. Can someone help me with the code for this. I tried to see if you could add it through properties and don't see that option. I need the listbox not listview. Also I was wondering if it could be added as a string and the file referenced at the top of the listbox (when you right click the little arrow and click edit options? Can someone please help. I am working on a project and still very new at this.
You need to create a custom ListBox class and add the ability to draw a custom background by overriding the OnPaint event, like on:
Source: http://www.vbforums.com/showthread.php?416784-2005-ListBox-Background-Image
I have a .doc with a command button (cmdStart) which opens a form.
After populating the form I click a button to close the form and populate the .doc.
I want to hide the initial cmdStart on the .doc as well when the form closes,
Ive tries document.shapes(1).visible=false and cmdStart.visible=false but none seems to work.
Any ideas?
thanks
(ps I cant just opne the form from the autonew, I need the cmdStart visible to begin with)
You have several options to deal with that. However, you won't be able to hide your command button but you will be able to remove it.
Removing a command button can be done by the following code:
Private Sub CommandButton1_Click()
CommandButton1.Select
Selection.Delete
End Sub
(Note that usually you would be able to hide text in Word by setting the font hidden, e.g. by calling Selection.Font.Hidden. However, this does not affect controls.)
If you deleted the button and you need it later on again you will have to re-create it. In that case it might be a good idea to mark the position of the button with a bookmark.
Another option would be to use a MACRO button field. Such a field can be inserted from the Insert Field dialog and can be used to launch a macro.
If you really wanted to "hide" the button, you could set the Height and Width to 0.75 and it's virtually gone. Then resize back to "show". I've also seen people put them inside tags and hide the tag. Hope this helps