VB.Net One button to show hidden buttons - vb.net

I'm a complete noob at this, but does anyone know a simple code that will get hidden buttons to show apon clicking another button?
Thanks!!

In the click event of the button that you want to unhide the other buttons just put
Button1.Visible = True
Button2.Visible = True
Etc.
Replace Button1 with the actual button name.
That’s it

Related

clear label of a form from the button of another form in Visual Basic

First, I apologize for my english, I'm still learning
I have a project in visual basic .net
It has two forms. One is the main and the other are called "details". "Details" must appears when click a label on the main form. When I close "details" form, I need to clear or reset (___.text = "") all the labels inside it. I tryed programming a close button or even in the FormClosing Event but it doesn't work.
The main form has a "New" button that cleans every label and textbox inside it. So I tryed to clear the labels of "Details" form from this button (Form2.Label1.Text = ""). But it doesn't work.
If I click "New" and then I click "Details" to open Details form, the labels had the old values. I need it clean.
Thanks
Display your "Details" Form with ShowDialog() instead of Show(), then call the PerformClick() method of your "New" Button:
' ... from within the "Main" Form ...
Dim details As New frmDetails
details.ShowDialog() ' <-- code STOPS here until "details" is dismissed
btnNew.PerformClick() ' now click the "New" button

How can I disable button press?

I'm trying to make some controls just for their view. For example I need a button which remains unpressed when it's pressed, like it seems on visual basic editor. How can I make this button?
Edit: Here is what I want
Before press:
After press:
Just a few possibilites
WinForms: yourButton.Enabled = false
WPF: yourButton.IsHitTextVisible = false
Make a image of a button and place it in your form

Get tab and enter event in form in panel

In Visual Studio 2012 I have a panel in FormA which loads FormB.
FormB = New FormB
FormB.TopLevel = False
FormB.WindowState = FormWindowState.Maximized
FormB.FormBorderStyle = Windows.Forms.FormBorderStyle.None
FormB.Visible = True
Panel1.Controls.Add(FormB)
FormB contains some TextBoxes and a Button. When I try to tab through the TextBoxes in FormB the focus jumps to controls in FormA. I'm not able to get the keyboard enter event in FormB neither. I started with a bunch of independent forms but I am now trying use Tabs and Panels to navigate through the app. It would be great if I could use my existing form in panels to achieve this.
do you know "KeyPreview"? If you activate this, it may help you to catch the events directly on your active form. By default this is disabled and you can find it in your form-properties.

vb.net hide button text or make image on button cover text

I dynamically create buttons on a form and use the button text as ids so that I can pass that to an SQL query to pull saved data about that button when necessary, but I also use an image over buttons that have information saved about them. What I need to know is how do I keep the text on the button from appearing when there is an image assigned to that button? By default vb.net shows both the text and the image and no TextImageRelation values allow for the image to take precedence. I tried changing the text color to transparent, but the outline of the text is still visible through the image. Is there anyway to keep the text value as it is but just show the image on the button?
Don't use the .Text property of the button to store your information. Use the .Tag property for your IDs. Just set the .Text property to "" (empty string), that way it won't interfere with your image.
not sure, but why not just set the value to a variable to be passed to the SQL on the button click event and not place the text on the button? If you are using the same button click event for several buttons you could check the sender's ID and then set the variable based on that.
To Enable "Button1" Click (Visible)
Button1.Enable = True
To Disable "Button1" Click (Visible)
Button1.Enable = False
Hide "Button"
Button1.Visible = True
or
Button1.Show()
Show "Button"
Button1.Visible = False
or
Button1.Hide()
You can Also Used the code to any Tools (TextBox, Label, ComboBox, Radio Button, Button, Link, GroupBox)

making a thumbnail toolbar (windowsAPICodePack,windows 7) button invisible in vb.net

I'm trying to make a thumbnail toolbar button (TTB from now on)visible when the it is clicked. I know how to do stuff when it is clicked, AddHandler etc. But if I tell it TTB.visible=false then it doesn't become invisible. If I put TTB.enabled = False it will be disabled, so it's only the visible that isn't working.
Also I put a button on my form (not a TTB) and when that is click wrote, TTB.visible = false and that didn't work, so there is no way to make it invisible.
Try set TTB.visible=true after you Add it into toolbar button list.