Oh come on!
Paste this in your project and click the button! It works 100 %!
Option Explicit
Public Sub AddLine(ListBox As Object, ByVal Str As String)
ListBox.AddItem Str
End Sub
Private Sub Command1_Click()
AddLine List1, "Test"
End Sub
Hi!
I'm not sure how it applies to VB, but there is a thing called XP Manifest, which must be implemented in all applications which want to use XP visual styles. You can search for it on the web. This is a link to Microsoft's description of XP theming...
Hi!
In VB there is no straightforward way. In Delphi, there is. :-)
In VB, you will have to write your own code to reposition controls. You can put this code in the form's Resize event.
Aleksander
Hi!
First of all, you didn't say what is the type of your frmeditor.listproject. Is that a ListBox or what?
Second, you don't have to specify ByRef explicitely, since omitting this directive tells VB to use ByRef by default. It is not wrong to specify it, it is just unnecessery.
Third, try...
Hi!
The error is actually a typing mistake!
Dim TestAs New ADODB.Connection should be
Dim Test As New ADODB.Connection
I would however encourage you to use your first method because DAO is much faster with Access than ADO, but you have to modify it a bit: Just add DAO 3.51 or 3.6 to you...
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.