User Profile

Collapse

Profile Sidebar

Collapse
NSF12345
NSF12345
Last Activity: Sep 15 '06, 11:51 AM
Joined: Aug 23 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • NSF12345
    replied to Multiple Userform
    When you have finished with that form, and have a close button, just put "userform2.hide " this hides the 2nd userform. Some people prefer to hide the 1st form when the 2nd form is opend, so they have something like this:

    'Code on Form1
    private sub Command1.click ()
    form1.hide
    form2.show
    end sub

    then when they have finished with the 2nd form they swap the code around to this:
    ...
    See more | Go to post

    Leave a comment:


  • NSF12345
    replied to Excel - Clearing Sheet Contents
    it could be that the cells you are tryin to clear are protected? i remember having that problem in an assignment i had.
    See more | Go to post

    Leave a comment:


  • NSF12345
    replied to Help creating multiple logins
    That is really confusing, dont you want something like...

    **Create 2 text boxes (text1 and text2) and a command button (Command1)**

    Const username1 = "user1"
    Const password1 = "pass1"
    Const username2 = "user2"
    Const password2 = "pass2"

    Private Sub Command1_Click( )
    username = Text1.Text
    password = Text2.Text
    If username =...
    See more | Go to post

    Leave a comment:


  • NSF12345
    started a topic Copy DIR

    Copy DIR

    In VB6 (from what i can make out it has sevice pack 2 on, though if someone can tell me how to check i will be grateful) I have been using FileCopy "File Location and name.***" , "New file location and name.***" to copy single files form one location to another, and i have searched through the net for days, and found nothing that will copy a whole DIRECTORY accross, which is what i want.

    Iv tried dircopy (but that...
    See more | Go to post

  • Finding out if a computer is connected to the network

    Iv developed a small program that looks for a file over our network, and copy it to the location of another computer. Im using the "If FileExists("\\o ldpc\main share\Folder\fi le.txt") Then" way of finding if the file exists, but i want to make it so that it tries to look for the computer, not the file. At the moment this is how i am finding and copying the file:

    If FileExists("\\o ldpc\main share\Folder\fi le.txt")...
    See more | Go to post

  • NSF12345
    started a topic Find Computer over network

    Find Computer over network

    Iv developed a small program that looks for a file over our network, and copy it to the location of another computer. Im using the "If FileExists("\\o ldpc\main share\Folder\fi le.txt") Then" way of finding if the file exists, but i want to make it so that it tries to look for the computer, not the file. At the moment this is how i am finding and copying the file:

    If FileExists("\\o ldpc\main share\Folder\fi le.txt")...
    See more | Go to post

  • NSF12345
    started a topic Registry Keys

    Registry Keys

    I have been having a play with registry keys to save settings. I have been able to save settings with this code:

    SaveSetting "MyProg", "Settings", "FormHeight ", form.height

    and retrieve settings with this code:

    form.height = GetSetting("MyP rog", "Settings", "FormHeight ")

    But i was wondering if there was a similar way to delete a...
    See more | Go to post

  • NSF12345
    replied to rnd() not so random?
    i got told once that the start random number was based on the time and date of the computer (down to the second) so its hard to get the random sequence to run again, but i have often thought the same, how random IS randomize ona computer? and i find that RANDOMIZE at the start of the code (either on load or on click (which ever u want) it tends to garuntee a random number
    See more | Go to post

    Leave a comment:


  • NSF12345
    started a topic Registry Keys

    Registry Keys

    I have been having a play with registry keys to save settings. I have been able to save settings with this code:

    SaveSetting "MyProg", "Settings", "FormHeight ", form.height

    and retrieve settings with this code:

    form.height = GetSetting("MyP rog", "Settings", "FormHeight ")

    But i was wondering if there was a similar way to delete a...
    See more | Go to post

  • i think thats what she wanted to do in the first plase...
    See more | Go to post

    Leave a comment:


  • NSF12345
    started a topic Windows Resize

    Windows Resize

    I have made a small application, that will always be at the top of the users screen and i would like all other windows on the computer resize around it? On program exit, i would like the windows to go back to their original full screen state. Can anyone help me?
    See more | Go to post

  • NSF12345
    started a topic Click Through Form

    Click Through Form

    I have made a small application, and I have an invisible, or slightly transparent, form so that you can see through it at whats underneath. However, i would also like to make it a CLICK TROUGH form aswell, so that the user can click on what they see. Has anyone got any ideas?
    See more | Go to post

  • Thanks, worked a treat!!...
    See more | Go to post

    Leave a comment:


  • I done the readin the data, by putting it in an array (will show code if u want it) but i still cant get it to wipe the data in the .txt file. would still like help :)
    See more | Go to post

    Leave a comment:


  • Cant you use the computer name, then the file location? I know that sounds vague coz im not too sure myself. I share files on my network, and i have a shortcut on my laptop which takes me to a folder on my desktop. The file location (according to my laptop) is :

    \\CompName\Fold erName

    (the folder is shared, so it goes into the network, finds the CompName, then the FolderName)

    so...make a shared folder on...
    See more | Go to post

    Leave a comment:


  • NSF12345
    replied to I need help with fonts in vb6
    trouble with that is it is too risky that the layout would be off with the form. What you could do (which sounds horrible, and might make the .exe massive) is have LOADS of forms, 1 for each font style you wish to do. Have a combo box on each form, and when the box is changed, it changes to the form with the appropriate font. Just an idea, but i wouldnt do it. I'd make them stick to one font if thats what needed to be done...
    See more | Go to post

    Leave a comment:


  • NSF12345
    replied to I need help with fonts in vb6
    Im not sure about that. When you change the fonts, you'd also have to have some code that would alter the width and height of all the items, which i have no idea to lol unfortuneatly, not every object has the auto-resize feature, but that be risky on the form layout.

    sorry i cant help any more
    See more | Go to post

    Leave a comment:


  • NSF12345
    replied to I need help with fonts in vb6
    Do a Combo Box, not positive about the code for it, but try something simple first like, on a button, do an onlick event to do this:

    Command1.Font = "MS Comic Sans"

    that should change the font to Comic Sans
    See more | Go to post

    Leave a comment:


  • NSF12345
    replied to Hiding tabs
    cant you just put TabName.visible =false or TabName.hide to hide the Tabs and TabName.visible =true or TabName.show to show the Tabs? Also...

    on the Check box, do an OnClick event that says:

    If ChkName.value=1 then
    'Runs code if the checkbox is ticked to show tab
    else
    'Runs code if the checkbox is not ticked to hide tab
    end if

    Thats what i would do. Give it a try and let us...
    See more | Go to post
    Last edited by NSF12345; Aug 24 '06, 10:01 AM. Reason: Spelling

    Leave a comment:


  • I could also do with a way to wipe the .txt file aswell, without deleting it and re-creating it. Thanks
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...