Login Form To Create A New Button

Discussion in 'Programming General' started by dheathcote, Sep 1, 2008.

Login Form To Create A New Button
  1. Unread #1 - Sep 1, 2008 at 1:48 PM
  2. dheathcote
    Referrals:
    0

    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?
     
  3. Unread #2 - Sep 1, 2008 at 4:41 PM
  4. Visual Basic Matt
    Joined:
    Jan 29, 2008
    Posts:
    647
    Referrals:
    2
    Sythe Gold:
    56
    Discord Unique ID:
    223154494878253056

    Visual Basic Matt Apprentice

    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.
     
  5. Unread #3 - Sep 1, 2008 at 6:16 PM
  6. dheathcote
    Referrals:
    0

    dheathcote Guest

    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
     
  7. Unread #4 - Sep 1, 2008 at 6:48 PM
  8. Visual Basic Matt
    Joined:
    Jan 29, 2008
    Posts:
    647
    Referrals:
    2
    Sythe Gold:
    56
    Discord Unique ID:
    223154494878253056

    Visual Basic Matt Apprentice

    Login Form To Create A New Button

    Still don't get it.... :(
    Code:
    button1.(Your control) = text1.text
    Example...
    Code:
    button1.ToolTipText = text1.text
    
    Is that what you mean???
     
  9. Unread #5 - Sep 1, 2008 at 7:41 PM
  10. tomanderson12
    Joined:
    Jan 21, 2008
    Posts:
    53
    Referrals:
    0
    Sythe Gold:
    0

    tomanderson12 Member

    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
     
  11. Unread #6 - Sep 1, 2008 at 8:13 PM
  12. dheathcote
    Referrals:
    0

    dheathcote Guest

    Login Form To Create A New Button

    i want one button being clicked to lead to another being created
     
  13. Unread #7 - Sep 1, 2008 at 9:13 PM
  14. demonavenger
    Joined:
    Feb 25, 2007
    Posts:
    536
    Referrals:
    0
    Sythe Gold:
    0

    demonavenger Forum Addict
    $5 USD Donor

    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?
     
  15. Unread #8 - Sep 1, 2008 at 9:32 PM
  16. dheathcote
    Referrals:
    0

    dheathcote Guest

    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
     
  17. Unread #9 - Sep 2, 2008 at 12:21 AM
  18. demonavenger
    Joined:
    Feb 25, 2007
    Posts:
    536
    Referrals:
    0
    Sythe Gold:
    0

    demonavenger Forum Addict
    $5 USD Donor

    Login Form To Create A New Button

    And you are wanting this button to goto a website?

    and save the person profile so it will stay like that to different people?
     
  19. Unread #10 - Sep 2, 2008 at 2:42 AM
  20. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    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.
     
  21. Unread #11 - Sep 2, 2008 at 4:51 PM
  22. Visual Basic Matt
    Joined:
    Jan 29, 2008
    Posts:
    647
    Referrals:
    2
    Sythe Gold:
    56
    Discord Unique ID:
    223154494878253056

    Visual Basic Matt Apprentice

    Login Form To Create A New Button

    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...
     
  23. Unread #12 - Sep 2, 2008 at 4:54 PM
  24. dheathcote
    Referrals:
    0

    dheathcote Guest

    Login Form To Create A New Button

    thanks
     
< Vb Question... | Clicking buttons on HTML >

Users viewing this thread
1 guest


 
 
Adblock breaks this site