How to Capitalize the First Letter on a Text Box in VB6

this time i will show you on how to capitalize every first letter of a word in a Text box Control, follow the codes below: This code will write on a module as a function just copy and paste on a module Public capT As Object Public Sub cap(frm As Form) cr = vbCrLf For Each capT In frm.Controls  If TypeOf capT Is vkTextBox Then  t = capT.Text         If t <> "" Then         ...
Continue Reading with Borgy's Blog »
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati

How to Add Icon on List View

This sample tutorial is showing you on how to add an icon or image on a List-view control on your own program: 1.) you must Add Microsoft Windows Common Controls  6.0 (SP6) , to simply add a   List-view Control and a  Image-list Control: 2.) set up the List-view Control on your form and also a  Image-list Control, to...
Continue Reading with Borgy's Blog »
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati

Run Time Error 35613

"Imagelist must be initialized before it can be used" if you got this error message, your   imagelist is need to initialized first before declaring it for the certain used.for example if the imagelist is used as a image container for a Listview control so before you declare it via this code:     panoy.smallicon=1 with out initializing imagelist,you always got this error so to avoid this kind of error you...
Continue Reading with Borgy's Blog »
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati

Cant find Project or Library

Hello guys this time i will discuss it to you on how to solved this error CANT FIND  PROJECT OR LIBRARY, this is error will usually encounter, if there are missing REFERENCE on your project, to solved  it just go to  Project Tab>Reference> then unchecked all the listed  Missing Reference. on my case, i encounter this error when i reformatted my laptop and i  run my projects, the error dialog box...
Continue Reading with Borgy's Blog »
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati

How to Filter the Special Characters in Vb6

This sample line of codes will show you on how to filter all the special character on your keyboard that will inputted by the user, this is very important to avoid the typo error, so we want to trap it via this code If KeyAscii >= 1 And KeyAscii <= 7 Or _        KeyAscii >= 9 And KeyAscii <= 47 Or _        KeyAscii >= 58 And KeyAscii <= 64 Or _       ...
Continue Reading with Borgy's Blog »
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati

How to Create Table on SQL Server

Here the Following steps on how to create Table on your SQL Server 2005 On your Database that you Created just click the cross box to view it on a hierarchical form shown on  the image below, by creating database just follow this link How to Create a Database on SQL Server 2005, then on the Tables just simply right-click  and press New...
Continue Reading with Borgy's Blog »
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati

How to Create Database on SQL Server

this is the basic steps on how to create your own database on your SQL Server 2005 At the Object Explorer window just right-click the database then click New Database like shown on the image below. After pressing the New Database this will prompt the New DatabaseDialog window, at obviously your database name Database...
Continue Reading with Borgy's Blog »
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati

How to Calculate Date using Date Diff and Date Add Function

this code will show you on how to calculate the difference of  two dates like for example 1 0/10/2010 to 10/01/2010 to find the lapsed day we use a Date Diff function that is  built in VB6 so the code will look like this: Label1.Caption = DateDiff("d", #10/1/2010#, #10/10/2010#) at this code i display the output on a label control did you notice that the Date Diff function i s there,since i am looking for  day lapsed...
Continue Reading with Borgy's Blog »
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati

How to Create a Stored Procedure in SQL Server

Hello guys this is the basic way on how to simply Create a Stored Procedure in Sql Server 2005 just follow the Steps that shown on the Image below Click Database then ...
Continue Reading with Borgy's Blog »
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati

Nested IF

This is the basic Code for Nested IF Structure in vb6 Dim Adrian, Panoy As Integer Adrian = Val(Text1.Text)'holds the value of text1 Panoy = Val(Text2.Text)'holds the value of text2     If Adrian = 100 Then ' if  Adrian=100 then it will  to the next if         If Panoy = 100 Then 'if Panoy=100 then msgbox Prompt            ...
Continue Reading with Borgy's Blog »
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati

Do Loop Until

This the Basic code of Do Loop Until in Vb6 Private Sub Command1_Click() Dim Adrian As Integer 'holds the Value of 1 to 10     Adrian = 1'set the value to 1     Do         Print Adrian ' print the value             Adrian = Adrian + 1 ' increment by 1 from original value    Loop Until Adrian =...
Continue Reading with Borgy's Blog »
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati

Copyright @ Codes-47.Blogspot.Com. Powered by Blogger.