Oops, forgot this.
Private Type ChooseColorStruct
lStructSize As Long
hwndOwner As Long
hInstance As Long
rgbResult As Long
lpCustColors As Long
flags As Long
lCustData As Long
lpfnHook As Long
lpTemplateName As String
End Type
Private Declare Function...
I need a simple color picker that will allow me to put the RGB values into seperate textboxes (Red in one box, Green in another, and Blue in another).
I got some code through our mutual friend Google, but I don't understand it. It shows a color picker, but I can't get the RGB values, let alone...
OK, I'll do that.
All that remains now is how to get a DriveListBox to display 'Local Disk (C:)' instead of 'c:'. I've searched on Google and used the Search facility here - but to no avail.
@ gmmastros
I got it to work. Turns out I didn't read it properly. Typical.
When the app loads you get the main screen. Terminating the program from this screen gives an 'unhandled win32 exception' error. Why does it do this? I'm receiving numerous complaints about it happening in some of my...
@ gmmastros
That worked, thanks a lot!
@ Everyone else
I have another problem. I'm trying to get my application to use the Windows XP visual style. I have followed the instructions at this site...
Hello again folks.
I've got a couple of quick questions for you:
1. I want to get rid of the icon on my form so that the caption behaves as if there is no icon there. How do I do this?
To elaborate, I created my form, went to the 'Icon' property and hit the 'Delete' key. Now I am left with a...
How do I check if a piece of text already exists in a listbox and, if needed, prevent it being added again?
I checked Google, but once again it proved useless.
Here is the SaveTextToFile Function:
ublic Function SaveTextToFile(FileFullPath As String, _
sText As String, Optional Overwrite As Boolean = False) As _
Boolean
On Error GoTo ErrorHandler
Dim iFileNumber As Integer
iFileNumber = FreeFile
If Overwrite Then
Open FileFullPath For Output...
I am aware that a thread on how to create Scheduled Tasks already exists, but it looks too complicated for me.
What I want to do is allow the user to create a .vbs file, which will then run at a date and time they specify.
Any (simple) answer will be much appreciated.
I found some code that helped me save text to a file, and tweaked it to work with listboxes.
What I want to know now is, how do I get this text BACK into the listbox?
The code is here: http://www.freevbcode.com/ShowCode.Asp?ID=733 - I used a loop to save from a listbox. Will post code later...
I know you can change the icon of a message box in VB6, but can you change the actual 'Yes/No/etc' buttons to something else?
GeodesicDragon
curquhart.co.uk
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.