Results 1 to 3 of 3

Thread: Help with Sonic Button Control

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2008
    Posts
    2

    Smile Help with Sonic Button Control

    Hi, I have an activex button control created by SWJ Soft which says it can be dragged by the users at runtime by using Mouse and Shift key.

    I want to know that how can I utilize this property to make my vb application remember its button positions for different users. Each and every user must be able to create their own custom form design according to their convenience at runtime and the application must open next time as for user.

    You can download their demo control from the following site for free to test.

    Sonic Click Mega Button Control

  2. #2
    Member
    Join Date
    Jul 2008
    Posts
    36

    Re: Help with Sonic Button Control

    I would use an INI file to save this. But you can also use a standard text file...just save the top/left positions.

    I went ahead and wrote an example of saving all control positions on the form and loading them back. All you need to do is add the module to your project, and call the Form_SavePos() routine to save all control positions, and Form_LoadPos() to load them all back next time.

    This example uses a simple text file to store positions.

    Just open the project, move the controls around, close it, and reopen it and they should be where they last were.

    Similar to how the VB IDE works.
    Attached Files Attached Files

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2008
    Posts
    2

    Thumbs up Re: Help with Sonic Button Control

    Thanks for your quick solution.

    I have tested your form and it works perfectly.

    I will try with the Sonic Button as well and let you know the progress.

    Thanks again.

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