Search:

Type: Posts; User: longwolf

Page 1 of 13 1 2 3 4

Search: Search took 0.09 seconds.

  1. Thread: Secure Delete

    by longwolf
    Replies
    17
    Views
    1,288

    Re: Secure Delete

    The path to the file you want to delete is the first parameter of the sub.
    How you select that file is up to you as the programmer.


    Public Sub SecureDelete(ByRef FilePath As String, Optional...
  2. Replies
    6
    Views
    1,060

    Re: Dim the laptop screen.

    I hadn't thought of that one, there are function keys for setting the screen brightness.

    Thanks for the help!


    I'm leaving this open for now, it still could be handy to have code for doing it.
  3. Replies
    6
    Views
    1,060

    Re: Dim the laptop screen.

    I've looked there, there's only an option to turn off the monitor after x minutes.
    I would like to be able to toggle the dimming of the screen.
  4. Replies
    6
    Views
    1,060

    Dim the laptop screen.

    I have a laptop and will be spending a lot of time running it off a power inverter in my van.
    When the laptop is running on it's own battery the screen dims to use less power.
    But when running off...
  5. Replies
    11
    Views
    1,021

    Re: Easy int(x) question

    I found Martin's code.
    http://www.vbforums.com/showthread.php?t=231163&highlight=numeric
  6. Replies
    11
    Views
    1,021

    Re: Easy int(x) question

    Doesn't Martin have a Numeric Text only usercontrol?
  7. Re: Unable to execute a VB6 exe program from cmd with UNC path

    Two possibes,
    1. could the double backslash be the problem in...
    C:\Program Files\Microsoft Visual Studio\VB98>\\krishna.com\ind\hyd\VB6\abc.exe

    2. try running the full path through this one...
  8. Replies
    9
    Views
    1,155

    Re: .Left Restriction

    What are you scrolling, a picture, contained controls, other?
  9. Replies
    6
    Views
    674

    Re: problem with arguments

    The way your argument it dimmed requires a string variable.
    So you can test it like this...


    Sub WhatEver(Optional strA as String)
    if len(StrA) then
    MyStr = StrA
    'the
    ...
  10. Thread: Image host.

    by longwolf
    Replies
    4
    Views
    572

    Re: Image host.

    Thx folks, I'll try them out!
  11. Thread: Image host.

    by longwolf
    Replies
    4
    Views
    572

    Image host.

    I need to post some adds on eBay, but I no longer have a server were I can store the pictures.
    Does anyone know of a free image hosting site where I can link directly to the images for the ads?
  12. Replies
    4
    Views
    660

    Re: Help with a loop.

    here's some pseudo code for you.



    for lp = 1 to PlayerCount
    for lL = Ubound(sLines) to 0 step -1
    'find the right player
    if instr("player" & cstr(lp) & "...
  13. Replies
    4
    Views
    660

    Re: Help with a loop.

    Or, loop backward and only take the final bid from each player
  14. Replies
    4
    Views
    660

    Re: Help with a loop.

    Looks like you'll have to check each player for previous bids and do the math.
  15. Replies
    2
    Views
    468

    Re: simpilfying help

    You shouldn't need to write it again, just create a public sub and call it whenever needed.

    But, you did misspell False
  16. Replies
    9
    Views
    691

    Re: Make a monitor

    I haven't looked at CVMichael's code, but study it, see how the graphics are controled, then use the volume of bytes to control the lines.
  17. Thread: UserControl

    by longwolf
    Replies
    5
    Views
    709

    Re: UserControl

    Don't you mean 'Bump'? :)

    Which procedure does it stop at when you get the error?
    When you find it, compare the parameters you are sending to the sub to the ones it wants.
  18. Replies
    3
    Views
    1,257

    Re: mixing assembly with vb6

    Welcome to the forums!
    I don't know much about it, but there are some examples at psc.

    here's one.
    http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=42280&lngWId=1
  19. Re: Cant figure out how to do this with sliders..

    here's some code from one of my user controls.
    It works this way, it dynamically loads as many scroll bars as you want.
    Each scroll bar also has a textbox and a checkbox that can 'lock' the value...
  20. Replies
    6
    Views
    870

    Re: Errors during load

    that happens sometimes.

    if you have a backup of your project, you can try that.

    if not, you'll have to re-add a DBGrid to your project an then replace the picbox with the grid. As long as you...
  21. Replies
    3
    Views
    587

    Re: startup program on pc start

    there's a link in my sign for code that can create the startup shortcut for you.
  22. Replies
    3
    Views
    707

    Re: Dynamic Array names...

    I don't believe you can.
    For one thing, it'd be very difficult to write code that could use the arrays without knowing their names in advance.

    If, for some reason, you needed to associate the...
  23. Replies
    27
    Views
    1,641

    Re: Basic Module Questions

    If you use a main loop, in a module, you shouldn't need the timers.
  24. Replies
    27
    Views
    1,641

    Re: Basic Module Questions

    You could use a timer, or a loop.

    If you use a loop you'll want a DoEvents and a call to the Sleep API nested inside the loop.
    You'll also want a global Boolean variable to let you exit the loop...
  25. Replies
    27
    Views
    1,641

    Re: Basic Module Questions

    That's part of the idea of modules.
    Anything you declare as Public can be used by any sub in any form or even another module.

    Another nice thing about modules, you can write the module to do...
  26. Re: [RESOLVED] Colour property in a User Control

    no prob :)
  27. Re: Colour property in a User Control

    Here's an example



    Public Property Get ForeColor() As OLE_COLOR
    ForeColor = UserControl.ForeColor
    End Property

    Public Property Let ForeColor(ByVal New_ForeColor As OLE_COLOR)
    ...
  28. Thread: search..

    by longwolf
    Replies
    14
    Views
    1,134

    Re: search..

    my first q would be, what are you searching through?
  29. Thread: CHI file?!?!?

    by longwolf
    Replies
    1
    Views
    725

    CHI file?!?!?

    I'm running the PDW wizard on my app.
    It's giving me a missing file warning about a myappsname.CHI file.

    I haven't made any files with that extension.
    I've run a search against every file in the...
  30. Replies
    10
    Views
    1,099

    Re: Data Comparison

    sorry guys, i've been biz with other things.
    but it looks like dee-u took care of it, thx dee-u!
  31. Replies
    10
    Views
    1,099

    Re: Data Comparison

    either use a multi-dimensional array or a udt and store everything as strings.
    then loop, possible a nested loop, and compare each string till you find the match.
  32. Re: Anyone knoe how to compile html with a VB app?

    you can try putting a good, thick coat of wax on the car  :)

    Try converting the text to asci codes.
    browsers convert it back to text, but if you look at the text file..........
  33. Thread: DX Scaling

    by longwolf
    Replies
    0
    Views
    897

    DX Scaling

    I'm trying to make a BlackJack table, the point of the game.
    I plan to use an 800x600 pixel DX screen and I've made the table top image/texture at 800x440.

    To make sure I get the table top shape...
  34. Replies
    5
    Views
    1,074

    Re: Saving Variables for multiple program uses

    there are several ways to save/load your variables.
    1. a simple text file, good for udt's
    2. an ini file
    3. a data base
    4. the windows registry

    do a search on those, you'll find the info for...
  35. Replies
    6
    Views
    3,072

    Re: Direct3D with VB6

    edit: I moved my scaling Q to an new thread.
    http://www.vbforums.com/showthread.php?p=3408147#post3408147
  36. Replies
    8
    Views
    898

    Re: Recommended Add-ons for VS6

    here's another 'not an add in' tool i sometimes use.
    gbCodeLib
    http://www.garybeene.com/gbware/gbcodelib.htm
  37. Replies
    8
    Views
    898

    Re: Recommended Add-ons for VS6

    mz-tools is the best one i know of.

    have you looked at the other add ins that come with vb, but aren't loaded by default?
    just go to 'Add-Ins/Add-In Manager
  38. Replies
    5
    Views
    536

    Re: help on some coding

    what i gave you is a good start, just reduce the size of the array and the loops.
    then add a way to get your inputs.
    you could use textboxes or input pop-ups
  39. Re: What is better, Using VB6's normal runtimes or adding the DirectX 8 runtime?

    if all you want to do is turn the screen black you don't need DX.

    But in your other thread, you've created an area that can smoothly handle animations.

    some of the things done by DX can be done...
  40. Replies
    5
    Views
    536

    Re: help on some coding

    Welcome to the forum!

    the easiest way would be to store your numbers in an array.
    Then use a loop with an If/Then to test for the highest number


    dim lNum(5) as long 'zero based, holds...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width