Results 1 to 3 of 3

Thread: Embedding to a webpage

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Posts
    129

    Embedding to a webpage

    Ok, after searching a bit on this site and figuring some things out, I managed to embed my program into a web browser.

    This is how:
    I opened VB6 and made an ActiveX Control
    I added a form (which is the form of my app.)
    I set the ActiveX Control Initialize (Load) for Form1.show

    This works in IE once you accept to display the ActiveX content



    So, now that I have that set up, I have a question about saving information. Is it possible to maybe save the contents of a label so it can be loaded in the future or into a high scores type of program made the same way? And If i can't do that would I be able to have it send me an email when its exited without having the user to do anything so I can post the high scores or whatever myself?
    Resizing
    System Balloons

    If your question is answered, please mark the thread resolved by pulling down the Thread Tools menu and clicking the Mark Thread Resolved button.

    Remember to rate a post if you find it helpful

  2. #2
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: Embedding to a webpage

    You can use the registry:
    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Form_Initialize()
    4.     'change 0 if you want another default value
    5.     Label1.Caption = GetSetting(App.Title, "Settings", "Highscore", 0)
    6. End Sub
    7.  
    8. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
    9.     SaveSetting App.Title, "Settings", "Highscore", Label1.Caption
    10. End Sub

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Posts
    129

    Re: Embedding to a webpage

    Thanks, but i can't test it. I had my thing working before but now I can't get to it from the webpage again. Any help on getting a program on a webpage?
    Resizing
    System Balloons

    If your question is answered, please mark the thread resolved by pulling down the Thread Tools menu and clicking the Mark Thread Resolved button.

    Remember to rate a post if you find it helpful

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width