Search:
Type: Posts; User: Keith_VB6
Search:
Search took 0.10 seconds.
-
>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...
-
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 ?
-
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...
-
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....
-
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...
-
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...
-
Is this what you want ?
Private Sub Command1_Click()
Line1.Visible = Not Line1.Visible
End Sub
-
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
-
-
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...
-
[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.
-
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...
-
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....
-
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'...
-
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...
-
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...
-
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...
-
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 =...
-
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...
-
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...
-
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...
-
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,...
-
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...
-
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,...
-
I still say, post your code. Or at least a snippet. I'm still willing to see if I can help.
-
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.
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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 >...
-
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...
-
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...
-
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...
-
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...
-
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....
-
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....
|
Click Here to Expand Forum to Full Width
|