Search:

Type: Posts; User: Kaverin

Page 1 of 13 1 2 3 4

Search: Search took 0.55 seconds.

  1. Thread: Rotating Text

    by Kaverin
    Replies
    18
    Views
    1,825

    Re: Rotating Text

    But reply on the thread, and poof, I can appear (thanks to getting an email about a response, otherwise I would have never thought about the forum again). :) I got really busy with work and other...
  2. Thread: Form Resizing

    by Kaverin
    Replies
    5
    Views
    639

    This is considerably more stuff than...

    This is considerably more stuff than crptcblade's, and maybe not as elegant, but I was bored and decided to do something only in plain old VB :).

    'this is all the form code
    '.BorderStyle =...
  3. Replies
    3
    Views
    542

    Using WM_PAINT would be one way to do it. If you...

    Using WM_PAINT would be one way to do it. If you actually do subclass something, you're actually replacing the window procedure with one of your own, so when windows sends a message to a window,...
  4. Thread: Round Form

    by Kaverin
    Replies
    17
    Views
    787

    I've seen that in MSDN before, but it's either...

    I've seen that in MSDN before, but it's either completely incorrect, or something is misworded. Deleting the region after using SetWindowRgn() seems to have no ill effects. I've used it many times...
  5. Replies
    27
    Views
    1,740

    I didn't know of that .alteration thing was an...

    I didn't know of that .alteration thing was an object or not. If it is, then it's just a reference (you need to use Set of course), so that will change it. If it isn't, just ignore it since it's...
  6. Replies
    11
    Views
    1,053

    I was bored so I did this. It's probably not the...

    I was bored so I did this. It's probably not the most efficient way to get them, but it works (and it's VB5 safe too).

    Private Function GetFactors(ByVal lngNumber As Long) As Variant
    Dim...
  7. Replies
    11
    Views
    1,053

    Those are two equations right there... what is...

    Those are two equations right there... what is it that you don't understand about them? The first one tests 10 to see if Number is one of its factors, and the second tests Number to see if 10 is...
  8. Replies
    27
    Views
    1,740

    I have no clue what that was for, or what any of...

    I have no clue what that was for, or what any of those things might be, but if you were trying to find a way to only repeat that one block once, just do something like this:

    Private Sub LoadMat()...
  9. Replies
    4
    Views
    678

    If the application has a visible window, you can...

    If the application has a visible window, you can use EnumWindows() to get a listing of them, and then check for the classname of each one with GetClassName() (so you only get the ones of the specific...
  10. Replies
    3
    Views
    412

    If you say which one(s) of those can be used it...

    If you say which one(s) of those can be used it might help Ephesians more.
  11. Thread: Round Form

    by Kaverin
    Replies
    17
    Views
    787

    If you start messing with regions, you should...

    If you start messing with regions, you should also clean up after yourself. I don't know if windows will actually handle the new ones you add with SetWindowRgn() (or what it even does with the old...
  12. Replies
    6
    Views
    2,853

    Using EnumWindows as they previously said, all...

    Using EnumWindows as they previously said, all you'd have to do use use GetClassName() inside the EnumWindowsProc(), which is the user defined callback you make for EnumWindows(). In Hack's example...
  13. If you used something like...

    If you used something like GetWindowThreadProcessID() to get the PID of the process that made the window, and then get info about the exe that way, the path should be along with the exe name itself. ...
  14. As long as ptPrevious is dimmed as POINTAPI and...

    As long as ptPrevious is dimmed as POINTAPI and have that param in the API declare "Byref something as POINTAPI" then it should work. You can change that to "ByVal something as Long" and then use...
  15. Replies
    1
    Views
    673

    registry key question

    Does anyone know if there's a way to rename a registry key? I've never seen a function that does it, or a way to do it with an existing function and wondered if I'd just missed it. I know that...
  16. Replies
    28
    Views
    1,727

    If you want to add things to menus,...

    If you want to add things to menus, InsertMenuItem() as Megatron said is much better to use. InsertMenu() was maintained since it was used a long time ago (though it still works fine). Plus,...
  17. Replies
    2
    Views
    832

    Since you only want 24 bit blocks, you can use...

    Since you only want 24 bit blocks, you can use CopyMemory to just take 3 bytes from the source and copy it to the destination, but what you will end up doing is having that extra byte in each long...
  18. Take a look at this and see if it is what you are...

    Take a look at this and see if it is what you are getting at. One of the things you've got to be careful of in VB when you work with trig functions is the orientation of the coordinate system. The...
  19. Knowledge_is_Et, VB has only a Sqr() function,...

    Knowledge_is_Et, VB has only a Sqr() function, which returns the square root of the argument. There's no function for giving a number squared unless you make it.
  20. VB can already go between oct, dec, and hex with...

    VB can already go between oct, dec, and hex with what it has. There is a Hex$() function for converting something into hex, and then to go back you can use Val("&h" & yourhexstring). CLng() and...
  21. Are you sure the answer is wrong and you're not...

    Are you sure the answer is wrong and you're not just mixing something up. If you're using the VB trig functions, they expect their angle arguments to be in radians, and the inverse trig functions...
  22. I'd forgotten about replying to this, but I have...

    I'd forgotten about replying to this, but I have the dll myself, and I've also got win98 SE. I never noticed that it was an NT dll though. I remember using it in an example for the general vb...
  23. Replies
    5
    Views
    1,860

    The statusbar control in Windows Common Controls...

    The statusbar control in Windows Common Controls has individual panel objects on it, and with the proper border setting and simple code they can be made to look and act like buttons if that's what...
  24. I don't know how you missed it, but baja_yu said...

    I don't know how you missed it, but baja_yu said it.

    radians = degrees * (pi / 180)
    degrees = radians * (180 / pi)

    where pi = 4 * Atn(1), or 3.14159265358979 if you want a constant
  25. I may have missed it, but where did the square...

    I may have missed it, but where did the square root thing come from, and where was the "previous way" you're talking about. If you're more clear about what you're asking someone can surely help out.
  26. Thread: SendMessage

    by Kaverin
    Replies
    3
    Views
    813

    It specifies whether the change can be undone. ...

    It specifies whether the change can be undone. Non zero allows for undo, 0 prevents it.
  27. It took me a while, but I managed to eke out a...

    It took me a while, but I managed to eke out a bit more. Though it still may not be what you're looking for, it's pretty close and worth looking at. This function just accepts an exe name to make...
  28. This may not be exactly what you were asking for,...

    This may not be exactly what you were asking for, but it gets the name of the exe (I think I saw that called the application name somewhere so that's why I decided to mention it). Even if this isn't...
  29. Replies
    6
    Views
    1,313

    If any of those places don't have a complete...

    If any of those places don't have a complete list, there is a definite way you can get one. If you have either VC++ as a stand-alone product or VS, just look in the file winuser.h. It will have a...
  30. I've just been busy with other stuff and haven't...

    I've just been busy with other stuff and haven't given much thought to this place. I got bored the other day and decided to come in and see what was going on.
  31. Thread: finding hwnd

    by Kaverin
    Replies
    6
    Views
    660

    It lives! :D

    It lives! :D
  32. This will do what you want. 'in a form...

    This will do what you want.

    'in a form
    Private Declare Function GetDiskFreeSpaceEx Lib "kernel32" Alias "GetDiskFreeSpaceExA" (ByVal lpRootPathName As String, lpFreeBytesAvailableToCaller As...
  33. Thread: Subtracting?

    by Kaverin
    Replies
    53
    Views
    2,953

    If you're working with numbers, you should...

    If you're working with numbers, you should actually use them (by applying Val() or the host of C<data type prefix>() functions to strings) and not VB's sloppy conversions between text and numbers. ...
  34. In the procedure attributes of each...

    In the procedure attributes of each property/procedure, you tell which property page is to be used. It's in the Tools > Procedure Attributes menu, and then you may have to press the Advanced button...
  35. Replies
    22
    Views
    4,005

    Just take physical chemistry and you'll see that...

    Just take physical chemistry and you'll see that method so many times you'll get sick of it :). There are so many assumptions made about things (such as molecules being rigid spheres that always...
  36. Replies
    22
    Views
    4,005

    If you want a value for pi as accurate as VB will...

    If you want a value for pi as accurate as VB will get it (without making up your own calculation), this will be sufficient:


    pi = 4 * Atn(1) '3.14159265358979
  37. Replies
    1
    Views
    472

    You can use the GetLogicalDriveStrings() API to...

    You can use the GetLogicalDriveStrings() API to get a string containing the drive letters of the attached drives on the system, and then break it up with VB's Split() function (since you have VB6). ...
  38. Thread: find path API?

    by Kaverin
    Replies
    3
    Views
    552

    This will give you an array of the root strings...

    This will give you an array of the root strings of the attached drives on the comp:

    Declare Function GetLogicalDriveStrings Lib "kernel32" Alias "GetLogicalDriveStringsA" (ByVal cbBufferLength As...
  39. Thread: find path API?

    by Kaverin
    Replies
    3
    Views
    552

    There are file searching APIs like...

    There are file searching APIs like FindFirstFile()/FindNextFile() that you could use to do this yourself,
    but it takes a bit of work. There is another function that I saw while looking around...
  40. You may be able to use WM_LBUTTONDBLCLK (or the R...

    You may be able to use WM_LBUTTONDBLCLK (or the R and M versions for the right and middle buttons). That is what is sent when you double click a button in a window, so if there is a behavior defined...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width