Visual Basic AddressOf expression cannot be converted to long
I am writing a code to control a portable radio in visual basic and have one single error that is AddressOf' expression cannot be converted to 'Long' because 'Long' is not a delegate type coming from...
View ArticleNull amount in recordset question
I use this code Code: Dim rsRpt As New ADODB.Recordset, rsAp As New ADODB.Recordset, rsT As New ADODB.Recordset, checkNo As String rsAp.Open "Select distinct k_vendor,k_name, checkno from...
View ArticleDate
Hi I am using SQL Database stored on the server . I want when user runs program on client machine it should show the Date according to server , not Client system's Date . How this can be done. Thanks
View ArticleStored Procedure
Hi How we can get SQL Server Date using Getdate() through Stored Procedure in Visual Basic 6 Thanks
View ArticlePhoto Viewer
Hello! Everyone I have new program on Photo Viewer. Everything is alright, but i'm getting little confuse on the below code: Private Sub File1_Click() If Right(F,1) <> "\" Then F = File1.Path +...
View ArticleTurn Off AutoComplete Browser Settings in IE9?
Is it possible, using VB6, to turn off the "AutoComplete" setting in an IE9 browser? If so, don't necessarily need exact code, just an idea on how to get started. API?
View ArticleSearch a Textbox for any of the given strings
Hello guys I've got four strings named Str1, Str2, Str3, Str4. I want to search a Textbox for any of these strings to check if one of them are present there. Any helps would be appreciated.
View ArticleImporting Notepad text colums in to MSFlexgrid1
Hi all:wave: I have a text file as attached, with 3 columns. How can I export the data to a MSFlexgrid1? Any help would be greatly appreciated :D Attached Files sample.txt (335 Bytes)
View Articlei cant remember how to do it
Hi, so i have a problem i cant remember how to solve. i want to open a text file and the directory is "C:\users\michael\desktop\test.txt" but it wont open obviously on other comps because the...
View ArticleCan I create an executable without compiling project?
I don't have the reference files on my machine but they are on the client machine. So how do I create the executable without one of the reference files? Thanking you in advance,
View ArticleDefault focus in a form or panel does not set inside a Web browser control
I am using defaultfocus property to set default focus in a form or panel. I am trying to set default focus for textbox and it works properly in a browser. But when the same page is loaded using...
View Article[RESOLVED] Win 7 - VB6 - MSAccess - and UAC issue
We have a VB6 application that accesses a MS Access database with both DAO and ADO. When running on Windows 7 (VB6 app is runtime executable) with different user accounts we have encountered a very...
View ArticleLoop
Hi! I have simple Do...Loop while program to print from 0 to 20. Let's have a look: Private Sub Command1_Click() Dim num As Integer num = 0 Do Print num num = num + 1 Loop While num <= 10 End Sub...
View ArticleIs it possible to create applications with UTF 8?
Hello guys, When I try to use UTF8 characters and make some forms or labels, I see only "??????". Like you see on the picture below: So, I would like to know, if there is some solution for this? I was...
View ArticleHELP with search text1.text_Change and DataGrid
so I'm trying to make a code using datagrid and a textbox where everytime the user types in a letter or a number the datagrid narrows it's search this is my code Code: Private Sub txtSearch_Change()...
View ArticleWinsock Problem
Hi Guys, I'm learning how winsock works before using it in an upcoming project. In this test project I am sending messages from the server to clients and clients to server. I've got everything working...
View Article[VBRichClient] VB crash adding two objects with the same key to a...
Sample code (in a VB form): Code: Event test() Dim WithEvents ec As cEventCollection Private Sub Command1_Click() RaiseEvent test End Sub Private Sub ec_EventRaised(Key As String, EventName As...
View Articlehow to highlight tab row
hi, am using SSTab1 . i need code to highlight row i was trying. SSTab1.tab(3).setfocus but its now working. help me thanks in advance
View Article