Search:

Type: Posts; User: BubbleLife

Page 1 of 7 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: [RESOLVED] Operating on a Variable's properties

    That's brilliant, thank you so much for the assistance with that - I'm afflicted that my only exposure to VB education was one unit of one college course 3 years ago, so as you can imagine I'm a...
  2. Re: [RESOLVED] Operating on a Variable's properties

    That's brilliant! Thank you for the advice there, it works well!

    I was curious about that, regarding arrays, as it suggested using them when creating lots of command buttons. Do you have any...
  3. Re: Operating on a Variable's properties

    LaVolpe - Interesting, just trying to understand this code.. What is "theControl"?

    EDIT: Nevermind, I got it working using your solution LaVolpe, thanks a lot! :)
  4. Re: Operating on a Variable's properties

    Makes sense, but I also want to operate on the text inside the textbox who's name is stored in vsave. For example, button "b4s", when clicked, will make VSave = "b4". But b4 is also the name of a...
  5. [RESOLVED] Operating on a Variable's properties

    Sorry, that title is a bit confusing.

    What I have is a program with a lot of buttons. They all do a similar thing (take a piece of text from their related fields and save it to a file), but I'm...
  6. Replies
    3
    Views
    719

    Re: Scroll Wheel Server

    Ah cool, thanks guys :)
  7. Replies
    3
    Views
    719

    [RESOLVED] Scroll Wheel Server

    Hi all,

    I used to have a program called the Scroll Wheel server. I'm not sure who made it but the exe name is WheelServer.exe - there's not much on Google about it. I also remember that the folder...
  8. Replies
    2
    Views
    930

    Re: Catch printer activity

    That's a great bit of code, thank you!

    However, it's not really what I need. I want to build something that, say, when someone prints a file, pops up with a little message box informing them that...
  9. Replies
    2
    Views
    930

    Catch printer activity

    Hi all,

    Just wondering if there is some VB6 code that can "watch" the system, and if someone tries to print, launches an application? I'm trying to make a kind of print auditing/print controller...
  10. Re: Execute command prompt commands within VB

    Ah, lots of great information, thanks all!
  11. Re: Execute command prompt commands within VB

    dilettante - I'm not sure, how could I use the Shell() function to perform this? Could you post some sample code?
    Also, that sounds good, but it's complex, and a lot of code just to do something...
  12. Re: Execute command prompt commands within VB

    Ahh, looks good, thanks!

    So, I guess to use variables, you you use
    ShellExecute Me.hwnd, vbNullString, "net", "send " & ipvar & " " & msgvar", "C:\", SW_SHOWNORMAL
    ?
    Also, what do the "C:\" and...
  13. [RESOLVED] Execute command prompt commands within VB

    Hi all,

    I would like to make a program in which I need to execute commands from the command prompt. Basically, I would like to utilize net send to make a small (basic) messaging client, using the...
  14. Re: [RESOLVED] Grabbing consecutive parts of a string of unknown length

    Mm, looks interesting! Thanks, I'll look into that :).

    Thanks again!
  15. Re: [RESOLVED] Grabbing consecutive parts of a string of unknown length

    Basically, the user inputs a string. The program will convert each of the characters in the string, one by one, into a hard-coded number and add them to the total. It's the first step of a hashing...
  16. Re: Grabbing consecutive parts of a string of unknown length

    Oh, that looks interesting! Thanks :)
  17. Re: Grabbing consecutive parts of a string of unknown length

    *Bump*
  18. Re: Grabbing consecutive parts of a string of unknown length

    Dim Str1 as string
    Dim NewStr as string

    Str1 = Text1.text

    Start loop
    take one character
    if character = A then
    NewStr = NewStr + 492
    elseif character = B then
  19. Re: Grabbing consecutive parts of a string of unknown length

    Fair enough ^^.

    Ok, I want to do something like the following, where Text1 is a user input box (up to 100 chars length)



    Dim Str1 as string

    Str1 = Text1.text
  20. Re: Grabbing consecutive parts of a string of unknown length

    Ah, that's cool, thank you :) Complex though.

    Would it be possible to ask for a breakdown of of second example using Code Doc's logic?

    Sadly my knowledge of VB is very basic - all I know is the...
  21. Re: Grabbing consecutive parts of a string of unknown length

    For example, the following psuedocode (based on your example):



    Private Sub Command2_Click()
    Dim ExampleString As String
    Dim StringBuf() As Byte
    Dim i As Long

    ExampleString =...
  22. Re: Grabbing consecutive parts of a string of unknown length

    Ah, thanks for that. However, I don't really understand how it works.

    Could you maybe explain what "UBound" is, and what "i" is? I don't get the "For i = 0 to <something> step 2" bit but I've seen...
  23. [RESOLVED] Grabbing consecutive parts of a string of unknown length

    Hi all,

    I'm using VB6, just wondering how to grab characters consecutively out of a string (of unknown length), for modification?

    For example, this string must be at least 5 characters long and...
  24. Replies
    24
    Views
    11,634

    Re: [RESOLVED] Changing IP address with VB

    Thank you so much again for helping me :)

    I doubt this will be of any use to anyone, I'm sure everyone here could make something much better and more easily, but I'd like to share the app anyway...
  25. Replies
    24
    Views
    11,634

    Re: Changing IP address with VB

    Ooh thank you!
    Thanks for all the help!
  26. Replies
    24
    Views
    11,634

    Re: [RESOLVED] Changing IP address with VB

    Oh, one last quick question - is there a bit of code for reading the IP - i.e, so I can have a button to "load current settings", or a text label to show the current settings? Thanks!
  27. Replies
    24
    Views
    11,634

    Re: Changing IP address with VB

    Wow that's great, thanks a lot! I'll have a look through it all and see what I can do.

    Thanks again!
  28. Replies
    24
    Views
    11,634

    Re: Changing IP address with VB

    How does it return it, as a msgbox?

    And if it would be possible, may I have the code with with the return code but without the DNS stuff? I believe it gets rid of a lot of the reg stuff then. I...
  29. Replies
    24
    Views
    11,634

    Re: Changing IP address with VB

    Oh thank you! That looks nice and simple :D.

    What is a return string? Does it need to return anything? It's setting data, not getting data. Like I said I'm only a noob at this. I don't know, do I...
  30. Replies
    24
    Views
    11,634

    Re: Changing IP address with VB

    I don't mind setting the adaptor myself, the program is only for me at the moment anyway. What buttons/textboxes/etc are required for your second one though? Like I said, I'm new at this and the code...
  31. Replies
    24
    Views
    11,634

    Re: Changing IP address with VB

    Thank you for all your replies!

    I've been looking through the code, but I'm a bit of a VB noob I'm afraid and all the references to Reg keys and whatnot are losing me a bit.

    I don't need to...
  32. Replies
    6
    Views
    552

    Re: massive ping

    Bear in mind though, that if you are transferring data to the server, if the connections drops the data will stop being transmitted regardless of whether you're pinging or not. Also bear in mind...
  33. Replies
    6
    Views
    552

    Re: massive ping

    Ping them all every second? O_o;
    Do you need to do that, really? You know if they don't have connectivity because users will complain that their files aren't saving and they can't surf the Internet...
  34. Re: variables, (probably simple, but i just can't get my head around it)

    No problem :D.
    I've attatched a new version with comments. I'm not great at explaining things but I try, hehe.
  35. Re: variables, (probably simple, but i just can't get my head around it)

    How about this?
    Obviously it's got no validation on the Box7 yet :)

    EDIT: Updated with some simple validation :)
  36. Re: variables, (probably simple, but i just can't get my head around it)

    On a form with Two text boxes, names "Text1" (for the "Name" box) and "Text2" (for the "text" box):



    Option Explicit
    Dim A As String

    Private Sub Text1_Click()
    A = Text1.Text
    End Sub
  37. Replies
    3
    Views
    508

    Re: Unable to change button color.

    Piccie :D
  38. Replies
    24
    Views
    11,634

    [RESOLVED] Changing IP address with VB

    Hey all,

    I have a PC, and I want to be able to change the IP address easier than going to Network connections > Picking the connection > Properties > Changing IP every time. The IP address is...
  39. Replies
    4
    Views
    541

    Re: Changing a character

    Woah.. That looks... Complex, but thank you :).

    I was just going to say: I tested some sample code:



    Dim RD As Integer

    Private Sub Enc_Click()
    Dim a As String
  40. Replies
    4
    Views
    541

    Re: Changing a character

    Ah, okie, cool. Thanks!

    What do you mean by adding or subtracting the ASC values though? AFAIK no keyboard characters exceed ASCII(255), so that shouldn't be a problem, should it?
Results 1 to 40 of 251
Page 1 of 7 1 2 3 4



Click Here to Expand Forum to Full Width