Search:

Type: Posts; User: DssTrainer

Page 1 of 6 1 2 3 4

Search: Search took 0.18 seconds.

  1. Re: I need a very good VBScript editor/debugger...

    Old thread I know, but surprised nobody has mentioned VBSEdit (not free but cheap). There is also a way to use Notepad++ with Microsoft Script Debugger as well.

    I can't live without my vbsedit tho
  2. Possible to trigger vbs on application crash event?

    Assuming that windows creates an event in the Event->App log for a crashed application... is it possible to monitor or setup a script to fire off when a certain event occurs using a WMI event or...
  3. Re: Pass WScript.Arguments to another vbs?

    surprisingly no one answered but anyway, I think the answer is no so I just created a string out of all the arguments and passed that and it worked.
  4. [RESOLVED] Pass WScript.Arguments to another vbs?

    I have 2 vbs scripts.

    Bootstrap.vbs
    Main.vbs

    The windows desktop shortcut file calls bootstrap and passes some arguments. Bootstrap doesn't care about the arguments, it just does some...
  5. Re: Click button to enter text in ANY currently focused field?

    Ok I Got it working with:



    Private sCurrentTextBox As String

    Private Sub Text1_GotFocus()
    sCurrentTextBox = Text1.Name
    End Sub
  6. Re: Click button to enter text in ANY currently focused field?

    hmm yea that actually would work. Not a bad idea. Thx! :)
  7. Click button to enter text in ANY currently focused field?

    I am looking for something like this:
    http://www.vbforums.com/showthread.php?t=364718&highlight=click+button+insert+text

    But I have 3 text boxes: text1, text2, text3
    and 1 button: command1
    ...
  8. Re: Cleanest way to get only the the drive letter or network name from a filepath

    Perfect!
    Much cleaner than my rat's nest of Mids and rights and while loops

    Thanks!
  9. Re: Cleanest way to get only the the drive letter or network name from a filepath

    Oh same thing... Fine:
    C:\Program Files\text.txt
    C:\text.txt
    G:\temp\text.txt
    \\netdrv10\c$\windows\text.txt
    \\srcdrv22\d$\temp\text.txt

    Happy?!!?
    :afrog: :p :D
  10. [RESOLVED] Cleanest way to get only the the drive letter or network name from a filepath

    Lets say a user inputs a file path. Could be any style:

    C:\Program Files
    C:\
    G:\temp
    \\netdrv10\c$\windows
    \\srcdrv22\d$\temp

    I'd like to get only the drive or network name from the path...
  11. Pass the Listview name to a context menu?

    I have 2 Listviews on my form. I'd like to have one common context menu for both, and depending on which listview I right-click on, I need to pass that name to the function so it knows which lv to...
  12. Replies
    3
    Views
    15,998

    Re: check if Path Exists

    Is there a way to make Dir timeout faster?

    I have a simple function:

    Function CheckPath(sPath As String) As Boolean
    If Dir(sPath) <> "" Then CheckPath = True
    End Function

    my path is...
  13. Re: Pass object property as variable?

    That works :) Thanks!
  14. [RESOLVED] Pass object property as variable?

    Lets say I have a combobox named "cbo"

    I want to get the "count" property so I do :

    msgbox cbo.count

    and it shows me 10.

    But I want to make the property a variable like this:
  15. Replies
    17
    Views
    1,042

    Re: For Each with Arrays?

    oh then i got confused.
  16. Replies
    17
    Views
    1,042

    Re: For Each with Arrays?

    Rhino was correcting the "array" side. "in this case" referred to the "x" which actually must ALWAYS be a variant, not just this case. But CtlTypes could have been string.
    So Rhino was right. :)
  17. Replies
    17
    Views
    1,042

    Re: For Each with Arrays?

    ooops
  18. Replies
    17
    Views
    1,042

    Re: For Each with Arrays?

    I too would have bet with Ellis Dee...

    But it works.. but I don't understand how. I thought a list item associates to a listview or a listbox.. but a random "X" that isn't associated to the array...
  19. Replies
    17
    Views
    1,042

    Re: For Each with Arrays?

    Right, but what would x have to be for it to relate to the array.

    Like with a Listview, x is a listitem
    with a combobox, x is a comboboxitem

    what would the associated array "item" be?
  20. Replies
    17
    Views
    1,042

    For Each with Arrays?

    Is there a way to do:


    CtlTypes = Array("TextBox", "ComboBox", "CheckBox")
    For Each x In CtlTypes

    Next

    What would "x" be?
  21. Re: Select Case TypeOf Object possible?

    cool thanks!
  22. [RESOLVED] Select Case TypeOf Object possible?

    I'm trying to replace an if statement with a more detailed case statement... and I'm trying to use the "TypeOf tobj" as my argument.

    So I had:



    If TypeOf tobj Is TextBox Or TypeOf tobj Is...
  23. Re: Return the value of a dialog response to the parent form ??

    ya, I was hoping for a way to do it without a public variable, but that's what I ended up doing anyway.

    Thanks
  24. Re: Return the value of a dialog response to the parent form ??

    But my form doesn't have vbYes, vbNo.. It's not a msgbox, it's got custom values. Buttons in .NET have a "dialogresult" option that you can map a button to a system button event. But I don't see that...
  25. [RESOLVED] Return the value of a dialog response to the parent form ??

    How do I pass back the value of a form button click in vb6?

    in VB.NET i can do:


    MsgEditor.txtDest.Text = txtDest.Text
    MsgEditor.txtCode.Text = txtCode.Text
    ...
  26. Re: [2005] Enter Data in DataGridView gives red exclamation?

    Ahh i figured it out. Even tho my datagrid fields were set to maxlength, the dataset data binding was set to -1.
  27. [RESOLVED] [2005] Enter Data in DataGridView gives red exclamation?

    I start my program, and when i enter data into my DGV, a little red exclamation box shows up with the tooltip of "Column Value cannot exceed -1 characters"

    What does that mean? All my columns are...
  28. Re: [2005] Possible to Map drive from Folderbrowserdialog?

    Ah. That actually might work. I can just use the .Description tag to convey that message to the user.
    Thanks!
  29. [RESOLVED] [2005] Possible to Map drive from Folderbrowserdialog?

    Is it possible to add a button that links to "Map a Network Drive" from the FolderBrowserDialog?

    I have an application that needs a source folder and a destination folder, which requires the...
  30. Replies
    22
    Views
    2,065

    Re: Listbox scrolling looks backwards

    Heh! Well now at least I know I'm a little less crazy! :afrog:
  31. Replies
    22
    Views
    2,065

    Re: Listbox scrolling looks backwards

    Better demo - http://www.unbannable.com/3lists.swf.html (have to open with IE tho cuz FF and Opera don't like it for some reason)

    In this demo I scroll the mousewheel down 3 times on each list...
  32. Replies
    22
    Views
    2,065

    Re: Listbox scrolling looks backwards

    Ok.
    Here we go:
    http://www.unbannable.com/dirlistbox.swf - Lower Res (flash)
    http://www.unbannable.com/dirlistbox.avi - Higher Res (3.18MB avi)

    Top box is a DirListBox. I scroll down 3 times...
  33. Replies
    22
    Views
    2,065

    Re: Listbox scrolling looks backwards

    Well I usually use the SHBrowseForFolder API stuff which works fine too.. But I just figured I'd ask why the DirListBox was like this.

    Seems FileListBox is fine, normal listbox is fine.. Only...
  34. Replies
    22
    Views
    2,065

    Re: Listbox scrolling looks backwards

    grr gonna have to make a video of it then. Happens on all 3 of my PCs
  35. Replies
    22
    Views
    2,065

    Re: Listbox scrolling looks backwards

    Ya it does 3 lines at a time. But it reloads the full page from the top.

    And now i have a sure fire method to prove it! :)

    Open a DirListbox in VB6 that has like 15 viewable rows.
    Click a row...
  36. Replies
    22
    Views
    2,065

    Re: Listbox scrolling looks backwards

    Ah.. you know what... its DirListBox.. not regular listbox. You are right, regular listbox is normal. (I just assumed all).. So do you at least see this behavior on the DirListBox?
  37. Replies
    22
    Views
    2,065

    Re: Listbox scrolling looks backwards

    are you sure you're using the mousewheel to scroll and have at least 3 pages of listbox items to scroll through? Single scroll bar arrow clicks look normal. But its only on the mousewheel scrolling...
  38. Replies
    22
    Views
    2,065

    Re: Listbox scrolling looks backwards

    Heh.. it is smooth.. but it like paginates from the top when you scroll down, so it looks as if the new group of items is coming down from the top when it should be coming up from the bottonm.

    ...
  39. Replies
    22
    Views
    2,065

    Listbox scrolling looks backwards

    I've noticed this for a while and I see it is fixed in VB.NET.. but is there any way to make Listboxes not look like they are scrolling up when scrolling down?

    Has anyone else noticed this? When...
  40. Replies
    18
    Views
    1,644

    Re: ReDim two-Dimention

    That was my original thought too, but the goal is to be a frontend for spreadsheets only at this time.
Results 1 to 40 of 218
Page 1 of 6 1 2 3 4



Click Here to Expand Forum to Full Width