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...
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...
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...
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...
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...
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.
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...
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...
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...
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...
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...
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?
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...
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.