Sounds weird, but after I replaced my form icon downloaded from the Internet with one of standard Windows icons VS installer create msi file in a few seconds.
cont.
despite taking so long to build msi file, installation from this msi file was successful and program runs OK on XP machine.
However, program gives an error message "Unexpected error" when trying to run on Vista even the installation on Vista went without any problems.
any ideas, please?
how is populated:
ssql = "SELECT * From Vendors Order by [Name];"
Set rs1 = New ADODB.Recordset
rs1.Open ssql, cn, adOpenKeyset, adLockOptimistic
MSFlexGrid2.Rows = 0
While Not rs1.EOF
MyVendor = rs1("ID") & vbTab & rs1("Name") & vbTab & rs1("Address1") & vbTab &...
Hi,
I have msflexgrid populated with names and want to filter it based on the first letter.
Is there any other way than just delete whole content and populate it with new data?
I think it's pretty common task but couldn't find any sample yet...
well, i don't think the brackets are causing error since the following code (executed before Button2_Click) works ok:
Private Sub ComboBox2_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComboBox2.GotFocus
On Error Resume Next
Dim con As New...
hi,
just trying to put together my first vb express 2008 application (after using vb6 for several years)
i want to get values from access table (based on selection from two combo boxes) and insert them to text boxes:
here is my code:
Private Sub Button2_Click(ByVal sender As System.Object...
thanks, I got it working with this simple code:
Private Declare Function GetProfileString Lib "kernel32.dll" Alias "GetProfileStringA" (ByVal lpAppName As String, ByVal lpKeyName As String, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long) As Long
...
Dim...
hi,
i am looking for a sample code how to detect default printer in xp/vista.
i have a code for printing into pdf file using bullzip and cannot figure out how to set back original default printer.
thanks.
hi,
i have one flexgrid populated with data (just text not numerical):
Set txtStream = fsoStream.OpenTextFile(DataLoc)
Do While Not txtStream.AtEndOfStream
strTextFromFile = txtStream.ReadLine
MyData = Split(strTextFromFile, ";")
FeedData = MyData(0) & vbTab &...
to error7
well, i want to allow computer run any time, but shut it down after midnight and shut it down right away if started between midnight and 6am.
so i need to check time periodically and shutdown if time is between midnight and and 6am.
thanks
i am not using any form, just module so i can't use timer or can i?
can you please give me some sample code using DoEvents() call after the Sleep()?
hi, i want to create a program which would prevent computer running in defined time period (it would shutdown)
i wrote some code but it's not working :-(
when started it has status non-responding.
Option Explicit
Dim notime As String
Dim RETVAL2 As Variant
Declare Sub Sleep Lib "kernel32"...
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.