Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Browsing all 21089 articles
Browse latest View live

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 Article


Null 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 Article


Date

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 Article

Email

Hi Is it possible to send email with attachment Thanks

View Article

Stored Procedure

Hi How we can get SQL Server Date using Getdate() through Stored Procedure in Visual Basic 6 Thanks

View Article


Photo 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 Article

Turn 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 Article

Search 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 Article


Image may be NSFW.
Clik here to view.

Importing 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 Article


how can I get url from firefox and chrome?

how can I get url from firefox and chrome?

View Article

i 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 Article

Can 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 Article

Default 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 Article

Loop

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 Article


Image may be NSFW.
Clik here to view.

Is 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 Article

HELP 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 Article


Winsock 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 Article

how 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
Browsing all 21089 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>