• Log in or sign up for an account here: https://www.sythe.org/login

Login Form To Create A New Button

  • Thread starter Thread starter dheathcote
  • Start date Start date
D

dheathcote

Guest
Login Form To Create A New Button
i am building a program that uses buttons to bring up webpages that i have set, what i want to do is to have a button that brings up a form that you fill out and it creates a new button can anyone help?
 
Login Form To Create A New Button
Do you mean something like this?
Button1 as you beginning button
Button2 as your ending button
Frame1 as your form

Put button 1 on button 2 (Button1 visible button 2 not)

Button1 click code...

Code:
Frame1.visible = true
button1.visible = false
button2.visible = true

Button2 Click code...
Code:
'What you want button 2 to do put here

I really had no idea what you said, this is really simple.
 
Login Form To Create A New Button
This is what i want to happen
Button 1 click>Panel1 show>person fills in fields>button 2 press>button 3 create with properties set from panel 1
 
Login Form To Create A New Button
I think he means two seperate forms then one the first Theres a button that says 'Login' when you click it the next form pops up with the text boxes to enter information but im not sure what he wants button two for
 
Login Form To Create A New Button
i want one button being clicked to lead to another being created
 
Login Form To Create A New Button
It may help if you explain what you 'EXACTLY' want...
therfore making alot easier for people to identify what you need...

making a button to create another button isn't exactly enough information...
explain with further steps...
1: person signs in, another button appears, "edit profile"... etc?
 
Login Form To Create A New Button
person opens program and there are a list of buttons leading to different links
but one or them creates a new button and they can choose the link
 
Login Form To Create A New Button
person opens program and there are a list of buttons leading to different links
but one or them creates a new button and they can choose the link

And you are wanting this button to goto a website?

and save the person profile so it will stay like that to different people?
 
Login Form To Create A New Button
Did the collective intelligence of the VB6 forum go down a few notches?


I doubt you want to create a button, more make one visible.
 
Login Form To Create A New Button
person opens program and there are a list of buttons leading to different links
but one or them creates a new button and they can choose the link

Thanks for Visual Basic Matt to spend his time coding this very simple project for you.

Code:
Private Sub Command1_Click()
WebBrowser1.Navigate "YOUR WEBSITE NUMBER 1"
End Sub

Private Sub Command2_Click()
WebBrowser1.Navigate "YOUR WEBSITE NUMBER 2"
End Sub

Private Sub Command3_Click()
WebBrowser1.Navigate "YOUR WEBSITE NUMBER 3"
End Sub

Private Sub Command4_Click()
Command5.Visible = True
End Sub

Private Sub Command5_Click()
Dim InputData As String
InputData = InputBox("Where would you like to navigate?")
WebBrowser1.Navigate InputData
End Sub

If that doesn't help you, then I have no idea what will...

Edit: I recommend you try to use the kind of coding I just put together below because it uses a combo box rather than multiple buttons...

First make sure your combo's have all this...

Code:
Combo1.AddItem "YOUR WEBSITE NUMBER 1"
Combo1.AddItem "YOUR WEBSITE NUMBER 2"
Combo1.AddItem "YOUR WEBSITE NUMBER 3"
Combo1.AddItem "Custom"

You can add more links if u want.

Then the code I just put together is this...

Code:
'Creates CaseItem and InputData As a String
Dim CaseItem As String
Dim InputData As String
'Finds the selected item on the list
CaseItem = Combo1.Text
'If the case is that the user wishes a custom link
If CaseItem = "Custom" Then
InputData = InputBox("Where would you like to navigate?")
WebBrowser1.Navigate InputData
Combo1.Text = ""
'Else if the case is that the user wishes to use your links
Else
WebBrowser1.Navigate CaseItem
Combo1.Text = ""
End If

What I gave you are examples and I do not wish for you too just copy and paste... Study the code and see how its done... Its very simple and it may look complicated when you first look at it, but actually its really easy. If you are going to be a vb programmer you have to try to learn the code so you don't forget it. That does not mean you can't ask anymore questions and just try to figure it all out yourself.... It means that, you can't just go copy and pasting other people's exact code. Try to be creative and make up your own.

Note: Just would like to say that EVERYBODY has leached something at sometime...
 
Runescape Gamblingrunescape gambling
Back
Top