Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. GeodesicDragon

    Colour Picker with RGB

    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...
  2. GeodesicDragon

    Colour Picker with RGB

    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...
  3. GeodesicDragon

    Couple of Quickies

    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.
  4. GeodesicDragon

    Couple of Quickies

    So what do I use instead of 'End'?
  5. GeodesicDragon

    Couple of Quickies

    If (MsgBox("End Program?", vbQuestion Or vbYesNo, "Exit") = vbYes) Then End End If That's all the code used to terminate the program.
  6. GeodesicDragon

    Couple of Quickies

    @ 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...
  7. GeodesicDragon

    Couple of Quickies

    @ 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...
  8. GeodesicDragon

    Couple of Quickies

    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...
  9. GeodesicDragon

    Listbox - Item Already Exists?

    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.
  10. GeodesicDragon

    Opposite of SaveTextToFile?

    Thanks for that, guys. It works now. All I need to do now is find out how to check if text in a listbox already exists.
  11. GeodesicDragon

    Opposite of SaveTextToFile?

    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...
  12. GeodesicDragon

    Opposite of SaveTextToFile?

    Whenever it saves, it always adds a blank line to the start of the text file. How do I stop it doing that?
  13. GeodesicDragon

    Scheduled Task

    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.
  14. GeodesicDragon

    Opposite of SaveTextToFile?

    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...
  15. GeodesicDragon

    Custom Buttons in Message Boxes?

    No, wait. I think I have it.
  16. GeodesicDragon

    Custom Buttons in Message Boxes?

    OK, then what? Sorry, but this is all Greek to me. No offence meant if you're Greek!
  17. GeodesicDragon

    Custom Buttons in Message Boxes?

    @ genomon And how do I do that? More to the point, can you use custom icons with it?
  18. GeodesicDragon

    Custom Buttons in Message Boxes?

    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
  19. GeodesicDragon

    Custom Message Box Problems

    It works! Finally! Thanks very much for your help, everyone!
  20. GeodesicDragon

    Custom Message Box Problems

    I have done what Golom said, and it's still not working. I've decided to just scrap the entire project. Thanks anyway for helping.

Part and Inventory Search

Back
Top