Skip Navigation Links
   Listen Software Solutions
 Click Here: Let me help you with online Data Processing
Better Ideas, Better Solutions 
Add your Ad immediately

Jill Corriveau Designs
If you interested in information about Jill Corrveau Designs and want to learn more about product lines then post a comment and leave an email

Website Link
Rain and Shine Cards
The Rain & Shine family of products includes the Rain & Shine necklaces featuring Jill Corriveau's colorful and inspirational images enclosed in glass and surrounded by a silver solder enclosure. The necklaces have themes ranging from family and friends to dreams and desires. The Tweenkle-Tweenkle silver plated pendant necklaces feature a pendant with one of Jill's images coated in clear resin. Both lines are sold with cards and envelopes in a clear sleeve. Rain & Shine has also produced a line of full size greeting cards.

Website Link
Windsor Exports
Windsor Exports is Leading Manufacturer and Exporter of steel balls, steel ball bearings, balls for bearings, balls bearing, rollers for cylindrical roller bearings from India.

Website Link
Mark Thomas
View Our Collection of Exquisitely Crafted Diamond Engagement Rings available in a variety of Styles, such as Classic Diamond Solitaires, Three Stone Rings, Diamond Accented Rings and Matching Sets elegantly designed on Platinum, White Gold and Yellow Gold Settings. Complete The Circle of Love Today with A Diamond Engagement Ring.

Website Link
Quain
Be-long Corporation supply Pharmaceutical Raw Materials like Amoxicillin (Amoxycillin) Trihydrate Powder, Florfenicol, and Water Treatment Products like Sodium Dichloroisocyanurate 50% 60% 63% (Sdic, NaDCC), Trichloroisocyanuric acid (Symclosene, trichloro-s-triazinetrione, TCICA, Trichlor).

Website Link
Gary Hackbart
On Target - Commercial and residential income property analysis software for the investor and the real estate professional.

Website Link
Peter Oppewall
EVtransPortal.com, a B2B and B2C portal website provides market research, consulting, information and referral services to companies within the EV, HEV, and Fuel Cell industries, as well as to individuals, organizations, and government groups. We provide EV companies with direct access to customers, suppliers, and industry resources including: sources for cutting edge battery and fuel cell technologies, EV and HEV product development, marketing, and venture capital. We support consultation, cooperation and collaboration both within the electric drive vehicle industry, and between the EV industry and the general automotive transportation, and utility industries.

Website Link
Jeffrey B. Ware
Online shopping for compression stockings, support hose and accessories. We are a comprehensive web site dedicated to the management and treatment of varicose veins. This is the site where you can find everything you need to treat, manage, or prevent varicose veins. We offer the most latest in medical and technical information available. Our products are of the highest quality from top manufacturers in the industry. We are located @ 1138 Opal Court Hagerstown, Maryland 21742.

Website Link
maulik
yantram - Offshore Engineering Services, Civil Engineering , Structural Engineering , Architectural Engineering, Mechanical Engineering Solutions India offers Engineering Services for the clients who want to outsource their Engineering Solutions. Outsourcing your Engineering Solutions to Yantram Offshore Engineering Solutions Company would be a smart choice.

Website Link
Manoj Kumar
The one stop shop for all call centers need. Call Centers in India is a leading provider of offshore contact center and business process outsourcing services.

Website Link
Shawn Gyorke
Crash Data Services, LLC provides quality traffic accident investigation, including crash data retrieval and accident reconstruction. We proudly serve Northern Illinois and customize our services to fit the needs of insurance providers, legal professionals, car rental agencies, municipalities and more. Our commitment to our clients makes us an outstanding company to fulfill your accident investigation needs. From low impact accidents to major collisions, our professional services provide answers. Check out our expert witness services today. Call 847-217-6644.

Website Link
Brain Hawkins
Pingo offers exciting that lets us call India at just four and half cents per minute from US or UK. Good Sound Clarity No Hidden charges and more over four hundred and forty minutes talk time for just twenty dollars. Avail this great offer and enjoy long talking hours

Website Link
hazel coates
SUPERB SPACIOUS 4 BED VILLA WHICH SLEEPS 8 WITH FULLY SCREENED SOUTH FACING POOL OVERLOOKING CONSERVATION AREA SUN LOUNGERS, BAR-B-QUE AND FULLY FURNISHED OUTDOOR DINING AREA. FREE WIRELESS BROADBAND ACCESS

Website Link
Jonathan Harris
Officialdraftingtables.com carries Alvin, Mayline, and Safco drafting tables

Website Link
Jim Goodman
TwoWayBattery.com is your source for high quality two way radio replacement batteries, chargers, eliminators and accessories. Enjoy our 30-day money back guarantee and same-day free shipping on all orders over $149.00.

Website Link
Jim Goodman
Free Shipping - Lowest Price Guarantee - Cut-Rate Batteries supplies two way radio batteries, also offers barcode scanner batteries, barcode printer batteries, chargers, eliminators, adapters & megaphones. Batteries products are guaranteed to be compatible with related equipment with 12 months warranty and 30 day money back guarantee.

Website Link
vaseem raza
Manufacturers of standard and custom made Worm Gear Boxes, spur, helical, bevel and worm gears, racks, pinions, chain sprockets used in different factories,industries, machines & tools

Website Link
Beads Jewels
Manufacturer , Exporter of Gemstone Beads , Beaded Silver Jewelry , Semiprecious Beads , Precious Beads , 925 Silver Bead Jewelry , Costume Silver Jewelry , Fashion Silver Jewelry , Imitation Jewelry , Coloured Stone Jewelry , Antique Silver Jewelry.

Website Link
dailone
China inflatable products supplier, provide Inflatable toys, inflatable bouncer, inflatable castle,inflatable slide, inflatable climbing wall.

Website Link
Rick Daley
Imaging Conections is an online marketplace for document scanning services and systems.

Website Link
Luke Morrison
InteriorTime.com offers contemporary sectional sofas, leather sofa sets, leather sectionals, hassocks or storage ottomans, leather ottomans, bench ottomans, foot stools, and theater seating. Bar stools, club chairs, and dining chairs like parsons chairs, and kitchen chairs have made an appearance in 2005 as well as restaurant chairs. We have tried some classics like the Barcelona chair, the le Corbusier line and Barcelona daybeds. And which classic line isn't complete without Arco lamps and Eileen gray coffee tables.

Website Link
Aventail.com
Aventail's SSL VPN platforms provide impenetrably secure access to hundreds of thousands of business enterprises everyday. With our SSL VPN appliances, you can work from virtually anywhere without worrying about hackers accessing your private information. A competitive technology solutions provider, Aventail is constantly adapting its products to accommodate modern business strategies, specifically the rise of the mobile office and the increased need for protection against internet viruses.

Website Link
www.sunpowtech.com
we offer high quality solar bike light* Voltage: 3V* Capacity: 50mA* Dimension:90x45x28mm* Waterproof design* Super long life LEDs, up to 10000 hours* Lighting up to 20 metres distance

Website Link
aram
We sell conflict free, certificated diamonds, diamond man ring and hand-made engagement rings.

Website Link
CWI Medical
CWI Medical is a Leading Provider of Incontinence Supplies such as Tranquility, Prevail and Attends. Nutritional Supplements like Resource, Boost, Ensure, and Pro-Stat. Medical Diagnostic Equipment like Thermometers and Scales are available. Informative Articles and safe, secure online shopping. Please visit www.cwimedical.com or call 866-588-3888 for convenience and great prices!

Website Link
Webmaster
Your AD will run for 60 days. The Webmaster will review content of the AD and reserves the right to remove any questionable content.

Website Link
Site: 3 Id: 581
ASP.Net, ADO, MS Access

How to display a text screen in VB - TEXTOUT

(4228 hits)
Buy Microsoft Visual Studio .NET Enterprise Architect

This code sample demonstrates how to output a text character using the Win32 api textout. The process includes two parts starting first with a two dimensional character array called aScreenChars mapping to a column and row on the display and a two dimensional attributes string array containing a concatenation of attributes commands per string. The attributes string is parsed and the attributes applied before the character is rasterized.

Each textout character is rasterized using the text_opaque turned on. The form font properties are initialized or de-initialized in a functional called setattributes. Some of the font attributes include underline, bold, background color, and text color.

The screeninitialize method extracts the character width and height used during text rasterization.

The form paint events calls the displaytext method which can render out a single character or all characters in the ascreenChars array.

Download Sample

API Module

Option Explicit
Public Declare Function TextOut Lib "gdi32" Alias "TextOutA" 
(ByVal hDC As Long, ByVal _
  X As Long, ByVal Y As Long, 
  ByVal lpString As String, 
  ByVal nCount As Long) As Long
Public Declare Function SetTextColor Lib "gdi32" 
(ByVal hDC As Long, ByVal crColor _
  As Long) As Long
Public Declare Function SetBkColor Lib "gdi32" 
(ByVal hDC As Long, ByVal crColor As _
 Long) As Long
Public Declare Function SetBkMode Lib "gdi32" 
(ByVal hDC As Long, ByVal nBkMode As Long) As Long

Public Const TEXT_TRANSPARENT = 1
Public Const TEXT_OPAQUE = 2

Public Const conScreenHeight = 24
Public Const conScreenWidth = 80

Public aScreenChars(conScreenWidth + 1, conScreenHeight + 1) As String
Public aAttributes(conScreenWidth + 1, conScreenHeight + 1) As String

Public Const constATTR_NORMAL = "0"

frmMain (variables)


Option Explicit

Const constOne = 1
Const constAll = 2

Dim iCharWidth, iCharHeight As Integer
Dim iCursorRow, iCursorColumn As Integer
Dim iTermBKColor, iTermTextColor As Long

frmMain (functions)

Public Sub ScreenInitialize()
    Dim RC
   
    With Me
        .FontUnderline = False
        .FontItalic = False
        .FontBold = False
        .Font.Name = "Fixedsys"
        .ScaleMode = 3
        If iCharWidth = 0 Then
           iCharWidth = .TextWidth("M")
        End If
        If iCharHeight = 0 Then
            iCharHeight = .TextHeight("M") + 2
        End If
    End With
    
    'Setup the User Scale of the display
    With Me
        .ScaleMode = 0
        .ScaleWidth = conScreenWidth
        .ScaleHeight = conScreenHeight
    End With
    
    Me.Scale (0, 0)-(conScreenWidth - 1, conScreenHeight - 1)
    
    RC = SetBkMode(hDC, TEXT_OPAQUE)
    
    iTermTextColor = QBColor(15)
    iTermBKColor = QBColor(0)
        
End Sub

Public Sub DisplayText(iType As Integer) Dim i Dim j Dim sBuffer Dim iAttrChangeOffset As Integer Dim sAttributeCmds As String Dim iNewAttribute As Integer Dim sOldAttributeCmds As String Dim iRow As Integer Dim iColumn As Integer If iType = constAll Then For i = 0 To conScreenHeight sBuffer = "" For j = 0 To conScreenWidth sBuffer = aScreenChars(j, i) sAttributeCmds = aAttributes(j, i) If sAttributeCmds <> sOldAttributeCmds Then Do iNewAttribute = Val(EscapeParseArg(sAttributeCmds)) SetAttribute (iNewAttribute) Loop While sAttributeCmds <> "" End If TextOut hDC, j * iCharWidth, i * iCharHeight, sBuffer, Len(sBuffer) sOldAttributeCmds = sAttributeCmds Next Next ElseIf iType = constOne Then i = iCursorRow j = iCursorColumn - 1 sBuffer = aScreenChars(j, i) sAttributeCmds = aAttributes(j, i) Do iNewAttribute = Val(EscapeParseArg(sAttributeCmds)) SetAttribute (iNewAttribute) Loop While sAttributeCmds <> "" TextOut hDC, j * iCharWidth, i * iCharHeight, sBuffer, Len(sBuffer) End If End Sub
Private Function EscapeParseArg(s As String) As String Dim i As Integer i = InStr(s, ";") If i = 0 Then EscapeParseArg = s s = "" Else EscapeParseArg = Left(s, i - 1) s = Mid(s, i + 1) End If End Function
Public Sub SetAttribute(ch As Integer) Dim RC As Long Select Case ch Case 0 'Normal With Me .FontUnderline = False .FontItalic = False .FontBold = False .Font.Name = "Fixedsys" End With 'RC = SetBkColor(hDC, iTermBKColor) 'RC = SetTextColor(hDC, iTermTextColor) Case 1 'Bold With Me .FontBold = True End With RC = SetTextColor(hDC, QBColor(9)) Case 5 'Blinking With Me .FontItalic = True End With RC = SetTextColor(hDC, QBColor(3)) Case 4 'Underscore With Me .FontUnderline = True End With Case 7 'Reverse Video iTermTextColor = iTermBKColor iTermBKColor = iTermTextColor Case 8 'Cancel iTermTextColor = iTermBKColor iTermBKColor = iTermTextColor Case 30 'Black Foreground iTermTextColor = QBColor(0) Case 31 'Red Foreground iTermTextColor = QBColor(4) Case 32 'Green Foreground iTermTextColor = QBColor(2) Case 33 'Yellow Foreground iTermTextColor = QBColor(14) Case 34 'Blue Foreground iTermTextColor = QBColor(1) Case 35 'Magenta Foreground iTermTextColor = QBColor(5) Case 36 'Cyan Foreground iTermTextColor = QBColor(3) Case 37 'White Foreground iTermTextColor = QBColor(15) Case 40 'Black Background iTermBKColor = QBColor(0) Case 41 'Red Background iTermBKColor = QBColor(4) Case 42 'Green Background iTermBKColor = QBColor(2) Case 43 'Yellow Background iTermBKColor = QBColor(14) Case 44 'Blue Background iTermBKColor = QBColor(1) Case 45 'Magenta Background iTermBKColor = QBColor(5) Case 46 'Cyan Background iTermBKColor = QBColor(3) Case 47 'White Background iTermBKColor = QBColor(15) End Select With Me .ForeColor = iTermTextColor .BackColor = iTermBKColor RC = SetBkColor(hDC, .BackColor) RC = SetTextColor(hDC, .ForeColor) End With End Sub
Private Sub Form_Load() ScreenInitialize aScreenChars(20, 5) = "H" aAttributes(20, 5) = "0;1;32" aScreenChars(21, 5) = "E" aAttributes(21, 5) = "0" aScreenChars(22, 5) = "L" aAttributes(22, 5) = "0" aScreenChars(23, 5) = "L" aAttributes(23, 5) = "0" aScreenChars(24, 5) = "O" aAttributes(24, 5) = "0;1;33" End Sub
Private Sub Form_Paint() DisplayText constAll End Sub