Search:
Type: Posts; User: Dan_H
Search:
Search took 0.93 seconds.
-
January 21st, 2007, 07:36 PM
The first problem with media files will be due to hardware acceleration. Pixel data is not handled by software but is passed directly to the video hardware for rendering, allowing for faster pixel...
-
January 13th, 2007, 08:59 AM
You're almost there yourself, just need to add the length of the selected text to the start of the selected text, so
rtb.GetLineFromChar(rtb.SelStart + rtb.SelLength)
-
December 8th, 2006, 02:17 PM
I am guessing that you have a custom messagebox, otherwise its just a matter of calling the standard msgbox within the function and interrogating the response directly in the function.
With your...
-
December 1st, 2006, 05:40 PM
You have to implement a custom routine using a timer to enable right-double click. Try this:
Option Explicit
Private n As Integer
Private DRCSensitivity As Integer
Private Sub...
-
November 30th, 2006, 06:30 PM
I'm not too clued up when it comes to activeX objects, but luckily VB6 comes with a splendid little Wizard - the ActiveX Control Interface Wizard. Goto the Add_Ins menu, select add_in manager, and...
-
November 30th, 2006, 11:16 AM
I don't have VB with me at the minute but do we not assign to the picture property?
Pic1.Picture = Pic2.Picture
If that is actually an image control you're using, I hardly ever use them so...
-
November 26th, 2006, 01:53 PM
Rather than using a second timer, just increment a form level variable in your timer procedure, and get the timer to disable itself when the variable reaches a certain value. The exit value will...
-
November 25th, 2006, 05:24 AM
Even shorter, use Mid$ to remove the first character
Text1 = Mid$(Text1, 2)
I also prefer to be strict and use Left$, Mid$, Right$ etc which enforce variable type. Without the dollar sign...
-
November 23rd, 2006, 03:06 PM
Creating a control array of labels for each group would be one way to do it.
Add a label to a form, give it an appropriate name, say lblMetalloids, then copy it. Hit paste and VB will ask you if...
-
November 21st, 2006, 06:07 PM
I've been getting lazy in your absence Gremlin!
Storing the last known X and Y coords is a much better way of drawing than using CLS. I think I've been picking up some bad habits while you've...
-
November 21st, 2006, 04:31 PM
I saw this earlier and though I might build a little demo; whilst I've been coding more posts have been added, but not wanting to see all my hard work go to waste...
Cropping can be done fairly...
-
November 17th, 2006, 06:09 PM
I think you need an array to store whether a question has been answered correctly or not. I'd use a boolean array.
You can evaluate the answers in each click of your option buttons, or in the...
-
November 15th, 2006, 06:07 PM
The End statement is not good at all. It terminates your program without invoking the unload event of your form, thus any clean up code you might have in there does not get executed.
You should,...
-
November 15th, 2006, 06:44 AM
It is fairly easy to move the mouse around with the SetCursorPos API. You can execute this in a timer to float the pointer around, or pass values to it directly to get it to jump.
Gettting the...
-
November 10th, 2006, 03:13 PM
The imagelist must be bound to the toolbar in the property pages of the toolbar, then you just assign the index value of the image in the imagelist you want to display, so
...
-
November 5th, 2006, 04:51 PM
Instead of using the Controls.Add method - use a control array. You can add to the array dynamically, and code for one control works for all the controls in the array - you just have to handle the...
-
November 5th, 2006, 03:51 PM
Declare the array you are copying into as dynamic, then simply assign the array you want to copy to it. As an example
Dim MyArray(5) As Long
Dim Array2() As Long, n%
For n = 0 To...
-
November 4th, 2006, 07:27 AM
The height property of a form does include its titlebar. It gives a value in twips from the top of the titlebar to the bottom of the lower border.
A form's scaleheight gives the interior height...
-
November 1st, 2006, 05:26 PM
Here's a quick demo to show circles aswell. Its not as easy as it sounds for circles; I like to use the hypotenuse method for calculating the radius based upon the starting coordinates at mousedown...
-
October 28th, 2006, 08:15 AM
The code looks good, and I can copy screen images to the clipboard sucessfully using very similar code. I am assuming that you are obtaining the handle value (hwnd) elsewhere - the only issue I can...
-
October 11th, 2006, 05:31 PM
Thanks for the luminance reminder rbamforth; I have seen this before but I didn't realise that luminance weightings would also affect greyscale. I adjusted my code to use these values and there is a...
-
October 9th, 2006, 05:34 PM
Ah - I do love graphics programming!
I've never actually done a speed comparison on the various graphics methods for image manipulation, so here we go.
Paytor, I think this shows the speed of...
-
October 9th, 2006, 01:53 PM
@Wof - Indeed the old type coercion issue it is (yoda writing ?!). I'd forgotten 32767 is the integer max - 2 bytes to the integer, 15 bits, the 16th for the sign.
So VB thinks &HFF00 is an...
-
October 9th, 2006, 11:10 AM
I don't have VB to test at the minute, but does the first one not require a second ampersand - &HFF00&
I'm sure I saw an overflow error when I had forgotten the second &, suggesting a type...
-
October 9th, 2006, 09:08 AM
To answer your first question, if you have true greyscale images then you can indeed just store 1 value that you can later replicate across the 3 RGB elements when loading the picture back.
I am...
|
Click Here to Expand Forum to Full Width
|