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 strongm 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. PaulBarter

    Conditional Compile query

    Thanks, great idea. That will do the job.
  2. PaulBarter

    Conditional Compile query

    I've developed a program that uses the mouse wheel by utilising calls to SetPropa etc. to hook messages in VB6 (there may be a better way, but it works). Unfortunately this makes debugging impossible a lot of the time, so I use conditional compile statements to turn this off while developing...
  3. PaulBarter

    Pass PictureBox to DLL

    So I was doing something silly. Thanks strongm
  4. PaulBarter

    Pass PictureBox to DLL

    Still get the same error 91 Changed test code to Option Explicit Public picPic As New StdPicture Public MyClass As Class1 Private Sub Command1_Click() Set picPic = LoadPicture() Set MyClass.MyPicture = picPic End Sub and Class to Option Explicit Public picPic As New...
  5. PaulBarter

    Pass PictureBox to DLL

    Is it possible to pass a PictureBox to a DLL? When I try, I get Error 91 The full project will contain routines to draw various text and images, but I have created simple project1 with just a Command Button and a PictureBox and code Option Explicit Dim MyClass As Class1 Private Sub...
  6. PaulBarter

    Create a temporary Picture Box

    Thanks strongm. I hadn't come across StdPicture before, but it works just fine.
  7. PaulBarter

    Create a temporary Picture Box

    I am writing a Function to draw an image on a printer page. To make it general I don't have reference to any forms, controls etc. e.g. Function starts Public Function InsertImage(pOutput as Object, pImage as String, pX as double, pY as double, pWidth as double) as Boolean which will insert image...
  8. PaulBarter

    Can you test if a form is loaded

    Great - thanks. I hadn't taken in the fact the Forms collection only has open forms in it.
  9. PaulBarter

    Can you test if a form is loaded

    Hi I have a common subroutine which can be called from various points that I want to optionally update a status Label in a form only if it is loaded ie I want to write code like If Form2.Loaded Then Form2.Label1 = "recalculating" Else ' do nothing End If but of course .Loaded is not...
  10. PaulBarter

    Display PDF files

    Yes that could work, but I prefer to display the PDF in a control on my form, so that I can include sort/filter options on the form to regenerate the report and redisplay it.
  11. PaulBarter

    Display PDF files

    Now that Adobe have made acropdf.dll not work in VB6, has anyone found an alternative solution for displaying the contents of a PDF file? I've got several old vb6 progs that create PDF's and then used acroPDF to display them that no longer work, but I can't find an alternative without spending...
  12. PaulBarter

    Duplicate Type definition in different class modules

    Thanks strongm - I was trying the wrong qualifier. It needs the Project name as a qualifier, not the class name which I had tried.
  13. PaulBarter

    Duplicate Type definition in different class modules

    Hi. I have been writing progs for many years using VB6. In most of my programs the database I/O is done in a separate class which is compiled as a separate DLL, and so can be called by different programs as required. Now, however, I want to use two different I/O DLLs in the same program, and I...
  14. PaulBarter

    Using same user data type in different class modules

    I have several different classes that access different databases. All these classes use the same data structure to hold abbreviated details of the fields in the database which the users programs need to refer to. This is defined as: Type FIELD_ITEM Name As String DefinedSize As...
  15. PaulBarter

    Inserting accented symbols in a text box

    Sorry if I mislead you, but with over 60 characters to insert, menus alone seemed a bit heavy, though still worth considering. > And you shouldn't really need > gtxtInsertTextBox.SetFocus True, but I wanted it to be under my control so I can control SetStart and SelLength, as otherwise VB...
  16. PaulBarter

    Inserting accented symbols in a text box

    You are partly right strongm. Unfortunately, loading another form to choose a character makes it execute the LostFocus event and then it will execute the GotFocus event after you exit from the menu sub. It takes a bit of judicious field saving and flag setting/testing and manually calling...
  17. PaulBarter

    Inserting accented symbols in a text box

    Unfortunately, there are over 30 characters, and upper and lower case for each, so too many for shortcuts
  18. PaulBarter

    Inserting accented symbols in a text box

    Of course! Just remembered I can use Me.ActiveControl Any better ideas out there?
  19. PaulBarter

    Inserting accented symbols in a text box

    So, if the current text box is still in focus, how is the best way to get my accented char into it? I thought I might use SendKeys, but I get an err 70 "Permission Denied". Alternatively, is there any way to find out which box has focus?
  20. PaulBarter

    Inserting accented symbols in a text box

    I am writing an application that contains (among other things!) names and addresses in text boxes and I would like the user to be able to input accented characters for foreign addresses e.g. Ėûá. I can write a routine to supply the necessary symbol from, say, a menu option, as in Word, but if a...

Part and Inventory Search

Back
Top