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

disabling application

Any way to disable components on form If Internet connection is not found on System

View Article


Dividing large numbers beyond what a long\double can hold

I'm working on a program where I need to calculate large factorials (greater than 170 or whatever the max is that a double can handle). I have found a function that can do the factorial calculation and...

View Article


Text Bold in VB

Hi All, I have to make the bold letters in the below mentioned code. Here the word " Invitation " should be bold and made as blue color. How can I do it? Sub Test1() 'For Tips see:...

View Article

[RESOLVED] how do i get the text of ( file1 )

this is what am using with this it it grabs all files from file1 directory , i need to get text for each file being added to the red marked line Code: Private Sub Command2_Click()     For i = 0 To...

View Article

[RESOLVED] listview1 help

assuming i have 10 list Code: Dim i As Integer  For i = 0 To File1.ListCount - 1   ' ListView1.ListItems.Add , , File1.List(i)     ListView1.ListItems.Add , , File1.List(i), , 1...

View Article


Set Process Name To Default Name

Hi I create a free project and save project exe file. When i save the exe file i chose this exe file name "ss" (ss.exe) Now if i run this file i see a process name in process list in task manager...

View Article

[RESOLVED] Duplicate error in current scope vb 6

Can someone help me. I'm trying to display an alert msgbox with two different recordset in one form so whenever there is an expired medicine it will both display and alert at the same time. But it...

View Article

[RESOLVED] WebBrowser Control/Java Applet

Not sure if I should ask here or in the Java Forum. I'll probably ask in both OK, I can run a Java applet in the IE but it won't run (that is, it wont run correctly) if I use the WebBrowser control. In...

View Article


[RESOLVED] How to display selected value in datagrid.vb6

I'm trying to get the value of medicine that has a quantity of less than 15 and display it in datagrid. For example I have paracetamol that has quantity of 15 or less then the paracetamol will...

View Article


[RESOLVED] how to import text file data to access database??

Hi, why got syntax error in insert into statement?? mycode: Code: Private Sub Command2_Click() Dim cn3 As New ADODB.Connection Dim rs3 As New ADODB.Recordset cn3.Open...

View Article

Help in preventing application going non responsive during restoring a backup

I have an application which backs up and restores database (sql server). Somtimes it takes a long time. I need to put a progressbar or a gif while the query is being processed. Doevents is not working...

View Article

Image may be NSFW.
Clik here to view.

Custom Message Box Not Working On Windows 7

Greetings every one. i am using custom message box (by using some api calls to modify the standard windows message box) to change message box icon and button text. It is working fine on windows xp. But...

View Article

Resize DataGrid to Show All Rows

I have a datagrid bound to a recordset. The record count of the recordset will vary each time. So I want to set the height of the datagrid to fully display all rows (records). Simply multiplying the...

View Article


Specify command line for application while creating service using SRVANY.EXE

I am creating service in VB6 application using SRVANY.EXE as show in this link . But my application requires a command line to work.So if i want to pass command line to my application then what to do?...

View Article

[RESOLVED] lisview1 help

i need similar code to this Code: If List2.ListIndex = List2.ListCount - 1 Then         List2.ListIndex = 0       \     Else           List2.ListIndex = List2.ListIndex + 1           End If with...

View Article


detecting a vscrollbar in msflexgrid vb6

I am trying to set the width of a Msflexgrid based on if it has a vertical scrollbar Code: Code: Const GWL_STYLE = (-16) Const WS_VSCROLL = &H200000 Const WS_HSCROLL = &H100000   Private...

View Article

Save File without duplicating file name

I have a macro that renames files by removing unwanted characters (to make the file name SharePoint compliant) in a folder and its subfolders. However, if after removing those characters and making...

View Article


ISAM Error VB6

All, I installed VB6 on my new Windows 8 machine. That was a bit if a chore, but I have it running. I have always used the common "Data" Controls with Data Grids in my programs and they work...

View Article

Multiple Length Functions

I've been coding and maybe I'm tired or what.. But I can't figure out that why is the error "please fill in all fields" is displayed even though all the textboxes are filled.. Code: Private Sub...

View Article

mozilla browser innertext not working

wb.Document.getElementById("q").innerText="Aaa" not working please help , its mozilla component , works same as ie browser but 100000% times better plz help fixing this

View Article
Browsing all 21278 articles
Browse latest View live