How Select an Start-Up Form in VB6

This is the basic steps on how you to select your own start-up form
or Object(s) or run your program that can read first  the Sub Main
which some programmer's store or write their main connection from
their database , so here where to start with:

                                        Fig. 1.1



































As you can  see on Figure 1.1, just go to > Project Tab then >
Project Properties.

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 Factorial of Numbers in VB2008



































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 Factorial of Numbers in VB6








































How done it with code?, just check the code below

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 Attach and Detach Database on SQL Server

This is a simple way on how to Attach and Detach Database on your SQL Server,
to work with it just follow this few step's:

here where to Detach your Database, just right-click on your database then click
Task, and hit Detach and your done like shown on the image below





























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 Make a MDI Child in VB 2008

Hello guy's, at this time i will show you on how to make or create a MDI child in
VB 2008 so this is a simple line of code that will saved your day on how to deal
with this, situationfirst thing to do is Add MDI Parent on the Project Tab or if you
want not to Add MDI parent, just Adding to forms, that way is fine, so the code's
will look like this:



        Form1.MdiParent = Me
        Form1.Show()


 'Me is your MDI child Container which is the mother form
'Form1 is the MDI child 


if you dealing  with two(2) forms, you must set the first Form, where you want
to become a MDI Container from Form Properties named IsMdiContainer,
you must set this to True instead of False, and then write the code above where
do want to insert

Happy Coding ^_^
The Hardest Thing to Do is to DO Nothing ^_^
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 Convert Text Content of TextBox into Asterisk ( * ) in VB6

This sample tutorial will demonstrate to you on how to change or convert the text
content of a text box control in VB6 on a special character like Asterisk(*) or any
special character you want to, this is method will commonly used on hiding the cha-
racter for confidential purposes, like user's Password for any computer's System,
there are two(2) ways on how to do it, the steps are shown below:,

1.) First way and without doing any codes, just go to Text box Property and find
     Passwordchar at the Properties pane, then put a (*) on it or any character you
     want like shown on the image below























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

Cannot Insert Duplicate Key in Object 'dbo.BO'

















Are you encounter this kind of error?, if you, you are in the right place at the right time, this
error says Violation of Primary key, obviously the problem is on my database, that
also indicated on the error dialog, 'dbo.BO' is my database name on my SQL Server,
so the main problem is when i'm trying to INSERT a duplicate value on a TABLE which

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

Time Calculator
































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 Highlight the Text Box Content in Vb6

Hello Guys, at this time i will share to you the code on how to highlight all the text box
content when you set the mouse cursor on it, like shown at the image below







at the Text Box Got-focus event just place this two basic lines of Codes

Textbox1.SelStart = 0
Textbox1.SelLength =  Len(Textbox1.Text)

and you're done, just press f5 and see the result

Happy Coding ^_^
The Hardest Thing to DO is to Do Nothing ^_^
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 MDI Form in Visual Basic 2008

This sample tutorial will demonstrate to you on how to Add MDI Form on your Visual
Basic 2008, to do that just follow this few steps below:


                                                 Figure 1.0


































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 Call Sql Server Stored Procedure in VB6

Hello Guys, At this time i will show to you on how to execute or call a stored procedure of
SQL Sever, here we go>>>>>>>>>>

Make sure that your Database Connection and Command, like shown at code below



Public MrCmd As ADODB.Command 'just put it on amodule
Public Conn As ADODB.Connection

i declare MrCmd as my ADODB.Command and Conn As ADODB.Connection as
Public for me to access or use it every-time i want, so you can write it like this

Set MrCmd = New ADODB.Command ' you must set MrCmd  as New 
                                                               ADODB.Command
MrCmd.ActiveConnection = Conn          ' this were your connection is being set
MrCmd.CommandType = adCmdStoredProc 'since we are dealing with stored procedure
                                                                 'let set the command type = adCmdStoredProc

MrCmd.CommandText = "Get_Products" ' this is your Stored Procedure

MrCmd.Execute 'execute your stored procedure
MrCmd.ActiveConnection = Nothing 'set your connection  close

Hope this will help

Happy Coding
The Hardest Thing to Do is to Do Nothing ^_^
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

Syntax Error or Access Violation( Run-time error '-2147217900 (80040e14)')

If you are getting trouble on this kind of error prompting
 Run-time error '-2147217900 (80040e14)' Syntax Error or Access Violation like
shown at the image below:

                                Figure 1.0













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

Could Not Open a Connection to SQL Server

If you encounter this kind of error on your SQL Server while you are attempting to connect
or logging in on your server, getting this error message shown at the image below, the only
reason of this, your Database Engine Service Status is Stopped












you are in the right place at the right time, all you have to do is go to SQL Server Surface 
Area Configuration for you fixed this error, to send you up in SQL Server Configuration
just follow the instruction image below

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 Configure IIS in Windows XP

To Configure your IIS, just follow this few steps and saved your day in trouble

Note: Before do this following steps you must insert first your Windows XP installer
on your DVD or CD drive

first you have to do is go to Control Panel and click the Add Remove Programs Icon as
you can see at the image above, and this is the second scenario
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 Load .Rtf file in Vb6

Hello guys, this is a sample tutorial on how to load or integrate a .RTF file on your VB6
program, all you have to do is to Add a Components named Microsoft Rich Textbox
Control 6.0(SP6), like shown at the image below


















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 Convert MS Access Database to SQL Server Database

Hello guys at this time i will show to you on how to convert your MS Access Database to
SQL Server Database, to do this, just follow those few steps below.








on your MS Access database, go to Database Tools, go to Move Data tab, then click
SQL Server

















then the Up-sizing wizard will prompt, allowing you to use an option, at this time since
i am not using Existing Database, so i select Create new Database, then Click Next
button,

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 Register OCX Files on your Computer

Since OCX files is little bit important to us, as  a programmer, for some reasons, so i will
show to you on how register an OCX files:

 











go to Run then type Regsvr32 













then follow by the Path or the Directory of your OCX file, then click OK

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 Show Hidden Files

This sample steps will show to you on how to make your hidden files or folders visible















at the figure above, you can simply open My Computer, then go to Tools Tab, then
click  Folder Options























Then Folder Options Property Pages will prompt, just select the View Tab, then find
Hidden Files and Folders, under of this just marked the two options the first is
> Do not show hidden files and Folders and the second
> Show hidden files and folders
so since this tutorial will demonstrate on how to show hidden files and folders, we can
select the 2nd option > Show hidden files and folders, then click Apply.
then you are done...

The Hardest Thing to Do is to Do Nothing ^_^
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 '380'

If you are encounter this error, says "Run-time Error '380', "Invalid Property Value"
at my case i encounter this , when i used a List-view control, the cause is when i forgot
to create another column  for the List-view control, instead of declaring like this:

Format$(LvLoans.ListItems(ako).SubItems(2),"General Number")

i declare like this:

Tip: before you declare anything you must check it first if exist, before doing the code
to avoid this kind of typo errors

Happy Coding ^_^
"The Hardest Thing to Do is to Do Nothing ^_^"
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 Menu Bar in Vb6

This sample tutorial will demonstrate to you on how to create a Menu Bar in Vb6 and also
creating a Sub Menu on a Menu Bar:

Tip: On creating a Menu and Sub Menu, the most used transaction menu module must be
at the first line on a Menu and Sub Menu's

so we can do this like shown on the image below:






















1.) You can simply click the menu editor icon on your tool bar of your VB6.
2.) at the Caption  you  can type your Menu name, at the
3.) Name, type your desired name for your menu,this is represent as Object Name of
your Menu.
4.) the click OK.


then after clicking
the Ok button, this
will be the Output.














at this part i will show to you on how to Create the Menu's Sub Menu's




















 1.) just click next for you to the cursor move downward.
2.) then just repeat the number 2 and 3 process in the creating Menus  at the image
above.
4.) to make it the Sub Menus of a File that i created,just click Left Arrow, and it will
show the dotted before the New,
5.) if you want to Create for short-cut  just select at the short-cut combo box, and
select your desired combination.

 then the output is
look like this
















this is the sample and basic code,

Private Sub N_W_Click()
    MsgBox "Your code goes here"
End Sub

Hope you Like it ^_^
Happy Coding  ^_^
The Hardest Thing to Do is to Do Noting ^_^
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.