Search:

Type: Posts; User: Keith_VB6

Page 1 of 6 1 2 3 4

Search: Search took 0.13 seconds.

  1. Re: Run through many textboxes with Tabkey...

    >gavio
    You're absolutely correct. That was bad of me. :blush:

    I had the wrong control,wrong constant and the wrong event. Talk about a dyslexic moment.

    gavio's code works. I would just...
  2. Replies
    1
    Views
    406

    Re: set form like gradient opaci

    I'm not aware of any. You might have to fake it. Grab a screen shot, place it on your form and add a gradient effect over the image.

    What's this for ?
  3. Re: Run through many textboxes with Tabkey...

    In the last textbox in each frame, when the tab key is pressed just send the focus to the first text box in that frame.

    Say you have 3 textboxes, text1,text2,text3Private Sub...
  4. Replies
    0
    Views
    419

    Class module object referces/calls

    I'm working on a class. It's an array of classes with a matching array of pictureBoxes.

    When I write class, and modules in general, I try to make the forms and modules independent of each other....
  5. Replies
    5
    Views
    587

    Re: goto loop coding question

    edit: I should just go to bed. I see what you're saying now. It doesn't always work on first pass.

    I would just recommend a Do...Loop instead. Do until Filelen()<>0...loop, but you might want to...
  6. Re: Listing Related Controls in Property Window

    Are you saying that 2 1/2 years later, this is still an open topic ?

    What were/are you trying to accomplish ?

    I did something similar. I would suggest using a property page for the link...
  7. Replies
    2
    Views
    768

    Re: quick question

    Is this what you want ?
    Private Sub Command1_Click()
    Line1.Visible = Not Line1.Visible
    End Sub
  8. Replies
    5
    Views
    487

    Re: Tab in RichTextBox?

    How about:Private Sub RichTextBox1_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = vbKeyTab Then
    RichTextBox1.SelText = vbTab
    KeyCode = 0
    End If
    End Sub
  9. Replies
    4
    Views
    584

    Re: [RESOLVED] bitblt wonders

    anytime
  10. Replies
    4
    Views
    584

    Re: bitblt wonders

    Welcome to the forum :wave:

    How about posting the code you're using. Any error messages and what line(s) is causing them.

    The only thing I can suggest is that when using BITBLT, you may want...
  11. Replies
    15
    Views
    965

    Re: End a program using ctl+a+w

    [ALT] [CTRL] [DELETE] is bad enough. Why create another key combination to contort your fingers with ? Stick with the system default or a simple [CTRL] + one letter.
  12. Re: MouseUP event - Call ReleaseCapture (almost resolved)

    Ok, I think I have this working. But I'd like some feedback. I'm using setcapture() to switch the mouse capture to the control I want to drag.

    Is this going to cause any problems ? Is there a...
  13. Thread: Directions

    by Keith_VB6
    Replies
    11
    Views
    1,331

    Re: Directions

    I think you would benefit more if you continue posting individual problems here. You would learn more and have a greater pool of experts. My game building knowledge is far less than the experts here....
  14. MouseUP event - Call ReleaseCapture (almost resolved)

    Hey All,

    To move a PictureBox, I'm using :
    Call ReleaseCapture
    Call SendMessage(picDrag.hwnd, &HA1, 2, 0)

    How would I detect the mouseUp event ? The ReleaseCapture() function seems to 'kill'...
  15. Thread: Directions

    by Keith_VB6
    Replies
    11
    Views
    1,331

    Re: Directions

    I understand that the values are stored as an enumeration type, but what is setting the value. Is it driven by keyboard input or by code.

    The 'move' sub sets the x,y coordinates. You still need to...
  16. Replies
    11
    Views
    2,262

    Re: Draw on picture box faster.

    Your welcome. If you don't mind, what's your goal ? What are you going to do with a 2 color image ?

    Also, note that comparing the overall color number isn't a true measure. You would probably be...
  17. Replies
    11
    Views
    2,262

    Re: Draw on picture box faster.

    I'm not sure I understand. You want to put the black and white picture into another array ?

    In the module that I posted GetDIBits() does that. Take a look at the code I found, Richard Mason did an...
  18. Thread: Directions

    by Keith_VB6
    Replies
    11
    Views
    1,331

    Re: Directions

    I looked at your class but I don't understand your problem. What is it that you want to do ?

    What's feeding the "direction" value ?

    If you're trying to modify:
    Case NW9
    Me.X =...
  19. Replies
    11
    Views
    2,262

    Re: Draw on picture box faster.

    apg88 is wants to convert an image from a camera to a 2 color black or white image.

    I believe the getdibs would be faster. Or something similiar. But we need to remove the loading part. The...
  20. Replies
    11
    Views
    2,262

    Re: Draw on picture box faster.

    Well, I'll have to edit my last post. I copied the code from codeguru.com and now I've messed with GetDIBits().

    I can't say I fully understand it. But I modified it to create a kind of contrast...
  21. Replies
    11
    Views
    2,262

    Re: Draw on picture box faster.

    You'll probably kick yourself but use SetPixel().

    Public Declare Function SetPixel Lib "gdi32" Alias "SetPixel" _
    (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long) As...
  22. Thread: Directions

    by Keith_VB6
    Replies
    11
    Views
    1,331

    Re: Directions

    I recently posted code to do something very similar.

    The basic code is:

    'example: MoveObj image1,45,10 - move image1 45 degree angle by 10 units.
    Public Sub MoveObj(ByVal Obj As Control,...
  23. Replies
    1
    Views
    577

    Re: Screen Capture

    Try adding "DoEvents" before the SavePicture line.
    ...
    Call keybd_event(vbKeySnapshot, 1, 0, 0)

    'To get the Active Window
    'Call keybd_event(vbKeySnapshot, 0, 0, 0)

    DoEvents

    SavePicture...
  24. Replies
    3
    Views
    849

    Re: Add a picture on screen?

    I don't know what you're drawing. But the only advice I can give is to draw to another DC and then BitBlt to the desktop. But then, you probably knew that.

    Maybe, there's a way with DirectX. But,...
  25. Re: GetPixel returning -1 (How to Troubleshoot)

    I still say, post your code. Or at least a snippet. I'm still willing to see if I can help.
  26. Re: GetPixel returning -1 (How to Troubleshoot)

    We're going to need to see your code.


    I believe this just means that the x,y values are out of bound. The values are less than 0 or greater than the images'/DC's width and/or height.
  27. Replies
    8
    Views
    1,124

    Re: Capture Game Screen (Game Uses DirectX)

    hmmm. That's a tough one.



    I doubt it. Because the first thing it would do is block the print screen button. It's more likely that it's blocking keys to prevent cheating.

    You tried to...
  28. Thread: SendKeys

    by Keith_VB6
    Replies
    6
    Views
    1,085

    Re: SendKeys

    How about posting the code that you're trying.

    Keys with the ALT modifier are usually in a menu. Is this a hotkey or a menu item ? If it were a menu item, you would have to open the menu header...
  29. Replies
    8
    Views
    1,124

    Re: Capture Game Screen (Game Uses DirectX)

    If pressing the print screen key is the only way to grab the image. Then, use it. In your program add a timer. In the timer check the clipboard for an image. If there's an image then transfer it to a...
  30. Re: Transparent issue with my form and image, please help

    You're welcome.

    If you change this line:
    SetLayeredWindowAttributes F.hwnd, Color, 0, LWA_COLORKEY
    'this causes a form to be transparent, set TranspLevel from 0 to 255, 0 being invisible...
  31. Re: Transparent issue with my form and image, please help

    I would skip the code that you had a link to and use the GWL_EXSTYLE. It's a lot simpler. Also, imo, the linked code is poorly executed. Anytime you create a region, you need to use DeleteObject() to...
  32. Replies
    3
    Views
    849

    Re: Add a picture on screen?

    While I can't figure out why someone would need/want to do this. I've played around with transparent windows. And I can give you a start.

    Create a new project and copy and paste this code. It will...
  33. Replies
    6
    Views
    588

    Re: Resizing Problem

    Ok. I'm going to try to post again. I had just typed a reply, when my web connection stopped responded. I looked at my task bar. And my firewall prog was 'updating'. Then it wasn't responding, and...
  34. Replies
    6
    Views
    588

    Re: Resizing Problem

    Try something like this:
    Option Explicit
    Dim LastX As Long
    Dim ButtonDown As Boolean

    Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If X >...
  35. Replies
    8
    Views
    1,012

    Re: Math Required - Direction

    Ok, I had time to think about my code. I'm attaching a modified version. I optimized the functions to work with object calls. IE getDistance(obj1,obj2) instead of...
  36. Replies
    8
    Views
    1,012

    Re: Math Required - Direction

    I was looking at my code and have a couple of thoughts. First off, it's checking from .left , .top this should probably be .left + .width/2, .top +height/2 so, it's the center of the object. And the...
  37. Replies
    8
    Views
    1,012

    Re: Math Required - Direction

    I feel your pain. I'm not all that good with math myself, but anytime I learn a new formula or function I add it to a math module. And re-use the code when ever needed.

    I've attached a project. I...
  38. Replies
    14
    Views
    1,549

    Re: how can i use ctrl+esc in vb6?

    I still don't understand. What do you need help doing ? Do you want the from to be displayed when you press CTRL-Escape ?

    If that's what you want then do then do a search for "sethotkey". It...
  39. Replies
    14
    Views
    1,549

    Re: how can i use ctrl+esc in vb6?

    I'm still not sure what you mean. Please explain in more details. What do you mean by "code the ctrl+esc" ?

    If you want to send CTRL-Escape then this code does that. Just add a command button....
  40. Replies
    14
    Views
    1,549

    Re: how can i use ctrl+esc in vb6?

    basti42,

    Welcome to the forum. :wave:

    Feel free to ask any question that you want.

    We're all here to help, but I think we need a little more information.

    What are you trying to do....
Results 1 to 40 of 208
Page 1 of 6 1 2 3 4



Click Here to Expand Forum to Full Width