Shannon Shang-I think therefore I am

We came here, you and I, to this place and this profession, to be great, to do great things, and give form to great dreams - and we have

Visual Basic 6.00 HOW TO

============================================================

HOWTO: Detect If Computer Has Sound Card That Plays Wave Audio

HOWTO: Determine the Differences Between DoEvents and Sleep

HOWTO: Create a Default Value for Custom Controls and Classes

HOWTO: Determine If Text in a Text Box Can Be Undone

HOWTO: Detect When a Control Is Placed into a UserControl

HOWTO: Set Number of .CAB's in Setup.lst After Repackaging

HOWTO: Change the External HTML Editor

HOWTO: Show Table Borders for All Cells in DHTML Page Designer

HOWTO: Improve Performance of Object De-allocation

HOWTO: Bind a DataList or DataCombo to a Recordset at Run Time

SAMPLE: FSOSAMP.EXE Application Uses the FileSystem Object

HOWTO: Make A Trusted SQL Server DSNLESS Connection

HOWTO: Control Which MDAC Version the Package and Deployment Wizard (PDW) Distributes

HOWTO: Display an Image in a Command Button

HOWTO: Label Pie Slices as Percentages in MSChart Pie Chart

HOWTO: Determine the Currently Selected ScopePaneItem

HOWTO: Refresh a Parameterized DataReport

HOWTO: Expose and Use ENUMS from Visual Basic Components in Active Server Pages

HOWTO: Resolve Ambiguous Names with the Outlook Object Model Using Visual Basic

HOWTO: Use the Split Function to Put a Delimited String into a String Array

HOWTO: Change the Axis Label Font and the Font Size in MSChart

HOWTO: Install an Excel Add-In (XLA or XLL) with Automation

HOWTO: Remove a Visual Basic Project from Visual SourceSafe

HOWTO: Determine If a Table or Query Exists

HOWTO: Get Help with Crystal Reports - International and U.S.

HOWTO: Provide Constants from an ActiveX Component

HOWTO: Determine Visual Basic Trappable Errors

HOWTO: Enable the Windows 95/98/Me Size Grip in a VB Form

HOWTO: Create Excel Chart w/OLE Automation from Visual Basic

HOWTO: Synchronize Data on the Form with a dbCombo

HOWTO: How the Server Use Is Determined by OLE

HOWTO: Close Shelled Process When Finished under Windows 95/98/Me

HOWTO: Change Add-In Manager Description for Add-Ins

HOWTO: Determine the Contents of a Cell in a DBGrid Control

HOWTO: Find and View the Amount of Free Disk Space on a Drive

HOWTO: Speed up Alignment of Controls with Triple-Click

HOWTO: Easily Set Up the Tab Sequence of a Form

HOWTO: Drag a Form by a Child Control

HOWTO: Determine Selected Control from Array of Option Buttons

HOWTO: Pass Optional Parameters to a C DLL Function from VB

HOWTO: Get a Typelib (.TLB) File for a Visual Basic OLE Server

HOWTO: Install Visual Basic to a Network Using 8.3 File Names

HOWTO: Put a ComboBox into a Toolbar

HOWTO: List Stored Procedures in a SQL Server Database

HOWTO: Determine if RDO Restartable Property is Set to False

HOWTO: Get a Long Filename from a Short Filename

HOWTO: Find and Highlight Text in the RichTextBox Control

HOWTO: Use the Assert Method for Debugging

HOWTO: Create A Default Event for a UserControl

HOWTO: Create a Default Property For a User Control

HOWTO: Use Spaces in Enumerated Types

HOWTO: Select All Text in a Field When It Gets the Focus

HOWTO: Determine the Type of Drive Using Win32

HOWTO: Close a Shelled Process When Finished Under Windows

HOWTO: Capture the Parameters from an SQL Procedure with RDO

HOWTO: Get a Long Filename from a Short Filename

HOWTO: Use Optional Arguments in Intrinsic Data Types

HOWTO: Pass a NULL String to a Windows API from Visual Basic

HOWTO: Print the Contents of the MS Chart Control

HOWTO: Tell If UserControl is in Design-Time or Run-Time

HOWTO: Get the Unread Message Count from an Outlook Folder

HOWTO: Give Your ActiveX Component a Friendly Name

HOWTO: Save Attachments to File with MSMAPI.VBX or MSMAPI.OCX

HOWTO: Play MIDI Files Using API Functions

HOWTO: Play an .AVI Video File in Full Screen in Visual Basic

HOWTO: Select a Directory Without the Common Dialog Control

HOWTO: Set the FillColor in the MS Chart Control at Run- time

HOWTO: How to Send/Receive E-Mail Messages with Visual Basic

HOWTO: Use the CallByName Function to Run a Procedure

HOWTO: Create an HTML Page Using ADO and MSFlexGrid

HOWTO: Access and Retrieve the SQL QueryPlan from RDO

SAMPLE: PERSIST.EXE Persists Class Objects with VB6

SAMPLE: LLStream.exe Plays Streaming Audio Files

HOWTO: Print Contents of the Web Browser Control From VB

HOWTO: Set a Custom Range for Value Axis with MSChart Control

HOWTO: Force Application Setup to Use the Default Directory

HOWTO: Create a MAPI-Aware UserControl

HOWTO: Create Shortcuts on the Programs Menu with PDW

HOWTO: Extract an Icon from a Windows Program

HOWTO: Change ProgressBar Orientation at Run-Time

HOWTO: Determine Which 32-Bit Windows Version Is Being Used

HOWTO: Navigate Between DHTML Designer Pages

HOWTO: Add a Horizontal Scroll Bar to a Visual Basic ListBox

HOWTO: Implement Additional Interfaces in an ActiveX Control

HOWTO: Select and Unselect a Range of Cells in MSFlexGrid

HOWTO: Use Bound Controls with an ADO Recordset

HOWTO: Use ADO to Query a Table with a Space in Its Name

HOWTO: Install Crystal Reports for Use in Visual Basic 6.0

HOWTO: Tell That a Visual Studio Service Pack Is Installed

HOWTO: Use the Batch File Generated by PDW

HOWTO: Display Boolean Values in Bound DataGrid

HOWTO: Change Databindings on the Fly

HOWTO: Open a Secured Access Database in ADO Through OLE DB

HOWTO: Display a ReadMe File at the End of a Custom Setup

HOWTO: Set and Get Cookies for a URL Using WinInet APIs

HOWTO: Install the Microsoft Windowless Controls for VB6

HOWTO: Determine RDO Files Needed for Distribution of App

HOWTO: Install a Visual Basic Application on Terminal Server

HOWTO: Debug a MAPI Transport Provider

HOWTO: Determine If Internet Explorer Is Offline from an ActiveX Document

?>

Comments

ch21st said:

In the vb6, Which way is Get/Set the charset of Font CommoDialog ?
# November 10, 2003 11:43 AM

ch21st said:

how to display image for datagrid
# February 12, 2004 12:34 PM

ch21st said:

Can anyone please help me.. I have some data in excel (various columns and rows) and want to update cells (compare current value to a value in a database) and if the value is different I want to update the cell with the new value.. And then move onto the next cell and do the same thing again..

EG:

A B C D E F G
1 paul now tar 16 21 35 34
2 ian now bricks 32 45 2 90

So I want to compare cell D1 with a value in a database based on the criteria of cells A1 and C1.. Then move onto E1 etc..

After the whole row is complete move onto row 2 and compare cell D2 with a value in the databse based on the criteria of cells A2 and C2.. THen move onto E2 etc..
# July 21, 2004 7:10 PM

ch21st said:

Ma:
You can't do it by Font CommoDialog , You can use the ChooseFont API to retrieve the charset information ,ChooseFont opens the Choose Font common dialog box. All of the necessary information needed to create the dialog box, as well as all of the information returned from it, is stored in the structure passed as pChooseFont. The logical font information is mostly stored in a LOGFONT structure, which can be used to access that font.
you can reference the code written by me:
http://www.blanksoft.com/article_read.asp?id=134

# July 22, 2004 9:51 AM

ch21st said:

zzang:
datagrid does not support images directly. You can do this with the
MSHFlexGrid as each cell has an Image Property

# July 22, 2004 9:54 AM

ch21st said:

hi Kyle ,
You could do something like this:
set oSheet = xlapp.ActiveSheet
cellRows = 2
cellCols = 4
for i = 1 to cellCols
for j = 4 to cellRows
if somevalue<> oSheet.Cells(i,j).Value then do something
Next
Next

# July 22, 2004 10:19 AM

ch21st said:

I am a relative beginner. I have an excel spreadsheet open and I wish to update a table in a sql database with the values in specific cells of the excel sheet using VB6..


SPREADSHEET:
A B C
1 Paul Kruger 21

SQL DATABASE:
Table: Person
Fields: First, Sur, Age

For example I want to "select age from person where first = 'cell A1' and sur = 'cell B1'.. I then want to update that found value with the value in 'cell C1'..

Thanks for youe help in advance
# August 3, 2004 10:59 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)