How would I save settings in Visual Basic 6?

Hello, I'm working on a project with a countdown timer and I'd like to save the value so that when the program next starts up, it will continue where the timer last was. For instance the timer is at 05:43:21 and I close the application. When it next opens,
it will resume at that countdown. 
This is for Visual Basic 6, I know that this is for .NET framework only however I could not find a section for VB6 questions. Moderators, please move this if there is a section. I know Microsoft no longer supports VB6 but I could not think of where else
to ask.

Sticky post at the top of the VB forums titled
Where to post your VB6 Questions
moving to off-topic
Reed Kimble - "When you do things right, people won't be sure you've done anything at all"

Similar Messages

  • How to compare two PDFs using Visual Basic

    Hi,
    We have created one Visual Basic exe for comparing two PDFs.We are using AcroExch.App and AcroExch.avDoc
    for creating adobe application object. And we are using MenuItemExecute "DigSig:ToolsDiff" for comparing the PDFs. This piece of code is working fine with Adobe 4.0 and it is comparing the PDFs and showing the mismatches.
    But the same piece of code is not working with Adobe 8.0 Professional. Is there any similar command to MenuItemExecute "DigSig:ToolsDiff" in Adobe 8.0 to find out the mismatches or any alternate approaches that i can try to make the existing code works properly to see the mismatches between two PDFs.
    Thanks in advance,
    Raju

    The only APIs for comparing PDFs are part of the plugin APIs, and not exposed to COM/IAC. You would need to write a custom plugin that called the APIs directly and then expose your plugin for use via VB.
    Leonard

  • How to Create a JVM wtih Visual Basic

    I'd like to use Visual Basic to:
    1. Create a JVM.
    2. Create references to classes and methods.
    3. Call static and non-static methods.
    Is this possible? If so, how?
    Many thanks!

    If you use .NET then you can
    - call JVM directly from VB,
    - implement Java methods with VB methods
    with OOJNI SDK for .NET 2.0
    http://www.simtel.net/product.php[id]98653[SiteID]simtel.net
    or
    with OOJNI SDK for .NET 1.1
    http://www.simtel.net/product.php[id]95126[sekid]0[SiteID]simtel.net

  • How to use java applets inside visual basic

    hi everyone,
    i am new to programming specially java so please bear with me.
    having said that i am looking for a way to embed java applets in visual basic. so
    1) is it possibele?
    2) if yes(which i believe) then how?
    we are supposed to use VB but i hate it so looking for this way .
    any suggestions and help is whole-heartedly welcome.
    kindly help me.
    you can post ur replies here or mail me directly at my e-mail id
    [email protected]

    thanx
    i have 2 more queries.
    1) is this IE ACTIVE-X CONTROL present by default in VB or do i have to download some add-ons?
    2) how do i write a concurrent server in java . i mean is there any thing equivalent to the UNIX system's FORK()?what if i have to implement this in an applet?
    thanx again.

  • Sample code of how to execute sql loader from visual basic

    Hi,
    Can anyone please provide me with sample code of how to
    run sql loader from inside a visual basic 6.0 application with Oracle 8.1.7.3 database or please point me to documentation/tech books containing such examples?
    Thanks very much
    John

    You have to use the command shell to activate a file.bat. The Shell command has the following parameters :
    Shell(Pathname, Windows Style )
    [email protected]
    Joel P�rez

  • How to export/save settings for Authentication?

    Hello all,
    what is the best way to export/save settings for Authentication and 'core settings' of authentication using ssoadm?
    I want to save all settings from:
    (Top Level Realm) -> Authentication [ in web gui console].
    Also all settings from 'All Core Settings'. Is there a way to do that from command line?
    Thank you

    Does the backed up copy of the iPhone's settings include the voicemail information? I'm wanting to do a "restore" on the iPhone, but want to find a way to keep the voicemails and not lose them

  • How would I save and name multiple images automatically acquired from a Imaqdx camera?

    I have a code that can save images however, there is a need for user input when it comes to saving the images.
    I also attached the code.
    Attachments:
    CodeForPictures.vi ‏116 KB

    Hi Theydon,
    The number of photos is going to be set by how often you are calling that IMAQdx Snap.  This right now is going to be limited by the prep time between shots.  If you make it so the loop will run more than once a second, you will get more photos.  
    Secondly, why do you have that while loop around the write to file?  You don't actually need it, and this is probably what is causing the files to skipover those files.  If you would still like to decide whether or not to save the image, you could use a case structure instead of this while loop. 
    Cheers,
    Marti C
    Applications Engineer
    National Instruments
    NI Medical

  • In this case, how would you save values to a file?

    Hi,
    I need your advice. I have a Vi with lots of controls and the user can change many settings.
    If I stop and start the vi again, you'll surely know, all settings are back to default, due to the fact that LabVIEW unfortunately does not allow to make values default programmatically.
    Nevertheless there are many possibilities to save and load the settings. But which one is the best in my case?
    I have boolean buttons, over 60 numeric controls, two file pathes and one numeric array.
    I could write all of them separated by tabs in a text file (see screenshot), and read them back - but this is very laborious and prone to mix-up.
    I tried clustering, but it's not possible due to the array, which I cannot put into a cluster.
    What would be the best and simplest way to accomplish this saving and reading of the settings? What would you recommend?  
    Greetings
    Johannes
    LabVIEW 7.1.
    Windows XP Professional 2002 SP 2
    Intel Core 2 Duo, 2,4 GHz
    Message Edited by candidate on 12-01-2008 10:00 AM

    You could write a VI that set values from a file using VI server. With VI server you get references to all controls and create a list of label.text. When you read the value for "Smierung" you search the index of the reference to that control in the label array and set the value using "Value" property.
    Play around with VI server and control references.
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

  • "vocals" How do i save settings on vocal track

    Hi All
    Can anyone please help, I am new to GB and wondered if anyone could please tell me how to save vocal settings on a track so I may use them again on earlier recorded vocals, eg: import the earlier recorded vocal track into GB with the settigs already in GB. Is this possible? Also is there any good plug in settings about use can use for vocals. Thanks to all in advance.
    Kind Regards Gary

    how to save vocal settings on a track
    open Track "i"nfo, select a category in the left hand list (e.g. Vocals), and click the Save Instrument button
    so I may use them again on earlier recorded vocals
    select your newly saved "instrument" for any track in which you want the same effects

  • How Can I run a .vbs (Visual Basic Script) file on Linux?

    Hello, I have a doubt:
    How Can I execute on Linux a .vbs file? I can't use wine cause it is not a .exe file.
    Is there any way?
    Greetings

    Mikko777 wrote:http://www.cyberciti.biz/tips/visual-ba … linux.html learn to use google
    Google works, yes ... if you know what you are searching for. Try this search: VisualBasic is not VBScript.
    Here is what you will need (consult an attorney first):
    - Wine
    - Windows Scripting Host (WSH) 5.6* (available officially from MS website, but requires validation):
    http://www.microsoft.com/downloads/deta … laylang=en
    * There is an update to 5.7 also available form MS
    - You will also need (from your Windows installation):
    mfc42.dll
    - Once you have the files placed in your Wine '/system32' folder (via installer or extraction), you will need to register dll files. At minimum, I think you can get by with:
    wine regsvr32 /path/to/vbscript.dll
    wine regsvr32 /path/to/wshext.dll
    Others may be required ... if you get more messages alerting you to register files, just repeat for each one necessary. Or register them all and be done with it.
    Once you have WSH setup, you can launch the VBScript file by opening 'winefile' and double clicking on the script. From the command line, you will need to launch it with 'wscript':
    wine wscript "Z:\\home\\user\\.wine\\dosdevices\\c:\\Program Files\\test.vbs"
    If you attempt to launch the VBScript with just:
    wine "Z:\\home\\user\\.wine\\dosdevices\\c:\\Program Files\\test.vbs"
    you will get a message about 'BAD EXE Format' or similar.
    Last edited by MrWeatherbee (2007-11-09 15:03:36)

  • How do I save settings for a View?

    Hi
    Anyone who can help me, it'll be great...
    I have created a view in eclipse. When the user opens the eclipse workspace that view is also opened. The user can use the view to search for code. When the workspace is closed the view is saved because the program calls saveState when the workspace closes.
    However, when the user has the view open and does a search and then just closes that view (without exiting the workspace) the search criteria that the user previously enters does not save... so when the user opens the view again all the default search criterias are loaded.
    What do I use to save the view state?
    Thanks

    This question is really best asked in an eclipse newsgroup, e.g. the RCP group:
    http://www.eclipse.org/newsgroups/index_project.php
    All I can tell you (I'm just starting out fiddling with this myself) is that FAQ 204 in The official Eclipse FAQ 3.0 is "How does a view persist its state between sessions". It says that you can use the JFace IDialogSettings facility for persisting view state in the case where your view is closed but not the workspace. Is that something you are familiar with?

  • How would I save my customized iTunes library interface?

    Hello all
    I want to reboot my hard drive due to some operating problems and corrupted files, and as I did rudely discover in my previous attempts, all information in my personalized iTunes library along with (obviously) the program itself was lost, despite my attempt at backing the library up.
    Now, I have amassed and organized a somewhat large collection of music on my iTunes again, have all the files backed up outside the computer itself, and I need to do a bit of house cleaning. So I guess my question is whether there is any way I can save the interface of my iTunes library, edited and customized information and all?
    thanks in advance

    You cannot use his library any more than he can use yours. You can, however, use Home Sharing:
    Understanding Home Sharing
    iOS- Setting up Home Sharing on your iOS device
    iTunes- Setting up Home Sharing on your computer
    Setting up Home Sharing for Apple TV (2nd & 3rd generation)
    Troubleshooting Home Sharing
    Or, you can use Family Sharing:
    Set up Family Sharing
    Family Sharing
    A Guide to Family Sharing - iCloud - Apple Developer
    Sharing purchased content with Family Sharing
    iOS 5 & iCloud Tips- Sharing an Apple ID With Your Family
    How Apple's iOS 8 Family Sharing for iTunes will work

  • How to connect Oracle database into Visual basic 6.0

    Hi. I am using Oracle I Enterprise version 9.2.0.1, I have a problem for connecting oracle database into VB. I use a ODBC to connect oracle database with VB. By testing connection. Message tells me that "connection successfully", but I can not have a record display in VB. It tells me that can not publish a connection with ODBC. Please tell me why

    Are you using the Oracle ODBC driver? If so, which version?
    Are you writing your own VB application? What API are you using-- ADO? Can you post the code that's making a connection and the exact text of the error message?
    Justin

  • How can a Visual Basic Application be used to read a Netscape LDAP server?

    I would Like to know if Visual Basic (ON AN NT WORKSTATION) can be used to access a Netscape LDAP Server (ON UNIX). And If so, will any API calls be necessary? Is there any documentation on using Visual Basic with LDAP?

    Hi Ryan,
    yes you can use VB with the nsldap32v30.dll or nsldap32v30.dll. You can get this from the iplanet page . The dll is inside the LDAP C SDK. Then, there's a 3 or 4 year old vb sdk with the declarations of the LDAP functions; but this seems not to be available in the web.
    Please send me a mail, I'll send you the doc and a sample vb prog.
    remove the nospam.
    [email protected]

  • How to call visual basic exe file from LABVIEW 7.1

    Hi all,
    I would like to call a visual basic 6.0 application(executable file) from labview 7.1 kindly anyone is having code or papers send me.
    Thanks and Regards
    rajesh

    Hi all,
    i would like to run a visual basic programme from labview , i have attached my file , even though iam executing the programme iam not able execute the vb file , kindly suggest me ,
    Regards
    rajesh
    Attachments:
    active x.vi ‏18 KB

Maybe you are looking for

  • Baseline date to be made noneditable in MIRO

    Hi friends,   My requirment is to make Basle line date field ( header data 2nd tab) to be noneditable in Tcode MIRO .   This base line date should be noneditable only for one specific company code.   Help me with some clues. regards Sathish

  • TU score drop because of balance increase

    Buildabetterlife15 wrote: Thanks for the reply Norman. That's the thing. I did open the two cap1 cards but the statements haven't broke for those. Also the FH fresh start hasn't printed a statement either. I actually paid off the FP CO last month. I'

  • Name-changing Mac

    My Mac mini keeps changing its name from "Mac mini" to "Mac mini (2)". I've searched online regarding the issue and most of the answers are that there is another Mac on the same network. This is not the case as I have just the one Mac. I renamed it n

  • Webcenter Spaces Error

    I am getting the following error when starting up webcenter spaces. weblogic.management.DeploymentException: [Deployer:149003]Unable to access application source information in 'C:\Oracle\Weblogic10.3.1-R1\user_projects\domains\MyWCDomain\servers\WLS

  • Lightroom 2.1 will not open!!

    Running OS X.5.5 on macbook pro. No problems to date. Suddenly LR won't open. It quits on start up. Adobe helpdesk says I have to create a new mac user and work with that. Duh?