Chikita leaderboard

Biyernes, Nobyembre 18, 2011

How to use Heading Tags and Internal CSS in DHTML

In this tutorial, I will show you how to use an Internal Cascading Style Sheet.  There are 3 types of Cascading Style Sheet (CSS) and these are:

* Inline CSS
* Internal CSS
* External CSS

Internal CSS are placed between the <HEAD> </HEAD> tag of Hypertext Mark-up Languange (HTML) page.  It used to format HTML tag like Heading, Paragraph and even Body.  Using CSS in HTML page lessen the encoding time by pre-formatting common HTML tags and re-use it in your HTML page.

Here are the following codes used in this tutorial:

<html>
<head>
<style type="text/css">
<!--
h1{font-size:12;font-family:Comic sans MS;color:#0000FF}
h2{font-size:18;font-family:Monotype Corsiva;color:#00FF00}
h3{font-size:24;font-family:Tahoma;color:#FF0000}
-->
</style>
</head>
<body>
<h1>This is H1 heading</h1>
<h2>This is H2 heading</h2>
<h3>This is H3 heading</h3>
</body>
</html>

Share and Enjoy!

Sabado, Nobyembre 12, 2011

How to use ComboBox in VB 6.0


Visual Basic 6.0 has more than enough Controls to use in every programming jobs and one of them is ComboBox. The ComboBox control is a sort of mixture between a ListBox and a TextBox control in that it also includes several properties and events that are more typical of the latter. ComboBox controls automatically sort their items using the Sorted property and you can add items at design time using the List item in the Properties window or using Additem property at Run time.
There's an interesting tip in this video tutorial and that is showing the years from 1900-2011 using Do-While Loop in ComboBox, a tedius task if you type it one by one from 1900-2011!Wow!

Here are the codes in this tutorial:

Dim a, b As Integer

Private Sub Combo1_Click()
If Combo1.Text = "Blue" Then
Label1.ForeColor = vbBlue
ElseIf Combo1.Text = "Red" Then
Label1.ForeColor = vbRed
ElseIf Combo1.Text = "Green" Then
Label1.ForeColor = vbGreen
End If
End Sub

Private Sub Command1_Click()
Label1.Caption = Combo2.Text + " " + Combo3.Text + ", " + Combo4.Text
End Sub

Private Sub Form_Load()
Combo1.AddItem "Blue"
Combo1.AddItem "Red"
Combo1.AddItem "Green"

Combo2.AddItem "January"
Combo2.AddItem "February"
Combo2.AddItem "March"
Combo2.AddItem "April"
Combo2.AddItem "May"
Combo2.AddItem "June"
Combo2.AddItem "July"
Combo2.AddItem "August"
Combo2.AddItem "September"
Combo2.AddItem "October"
Combo2.AddItem "November"
Combo2.AddItem "December"
a = 0
Do While a < 31
a = a + 1
Combo3.AddItem a
Loop

b = 1899
Do While b < 2011
b = b + 1
Combo4.AddItem b
Loop

End Sub

Share and Enjoy!

Huwebes, Nobyembre 10, 2011

How to Connect MS Word to print an output in VB 6.0

Did you ever wonder if you can connect your MS Word document to your VB 6.0 for a dynamic print output? Now you can, in this video learn how to use MS Word Forms Component Text Form and use MS Word to create custom Print Setup like Letter, Legal, A4 or any custom size and connect it to your Visual Basic programs.  Here are the codes used in this video tutorial: 

Private Sub Command1_Click()
Static wd1 As Word.Application
Static wd1Doc As Word.Document
Set wd1 = New Word.Application
wd1.Visible = True

Set wd1Doc = wd1.Documents.Add(App.Path & "\profile.dot")

With wd1Doc
  .FormFields("W_name").Range = Text1.Text
 .FormFields("W_address").Range = Text2.Text
    .FormFields("W_occupation").Range = Text3.Text
End With
Set wd1 = Nothing
Set wd1Doc = Nothing

End Sub

Share and Enjoy!



Martes, Nobyembre 8, 2011

How to use ListBox and Do-While Loop Statement in VB 6.0

ListBox is a powerful control in MS Visual Basic 6.0.  It has wide range of properties that can be helpful in creating data rich programs. For example, you set the Sorted attribute to True to create ListBox controls that automatically sort their items in alphabetical order. By acting on the Columns property, you create a different type of list box, with several columns and a horizontal scroll bar, instead of the default list box with a single column and a vertical scroll bar along its right border. You can make assignments for both these properties only at design time, and you can't change the style of the ListBox control while the program is running.

In this video tutorial, you will learn how to use some of the properties of ListBox like ListCount, ListItem, List.Additem and so much more.  Here are the following code in this video tutorial:

Private Sub Command1_Click()
If List1.ListCount > 0 Then
List2.AddItem List1.Text
List1.RemoveItem List1.ListIndex
End If
End Sub

Private Sub Command2_Click()
Do While List1.ListCount > 0
List2.AddItem List1.List(0)
List1.RemoveItem 0
Loop
End Sub

Private Sub Command3_Click()
If List2.ListCount > 0 Then
List1.AddItem List2.Text
List2.RemoveItem List2.ListIndex
End If
End Sub

Private Sub Command4_Click()
Do While List2.ListCount > 0
List1.AddItem List2.List(0)
List2.RemoveItem 0
Loop

End Sub

Private Sub Form_Load()
List1.AddItem "Monday"
List1.AddItem "Tuesday"
List1.AddItem "Wednesday"
List1.AddItem "Thursday"
List1.AddItem "Friday"
List1.AddItem "Saturday"
List1.AddItem "Sunday"
End Sub

Share and Enjoy!

Sabado, Nobyembre 5, 2011

How to use Heading Tags and Internal CSS in DHTML.

In this video tutorial, you will learn how to use Heading tags in your HTML page and how to manipulate them using Internal CSS.

Heading tags are used to define the headings in your page. There are 6 available, h1 set of heading tags being the biggest and boldest and the h6 set being the smallest. An internal style sheet should be used when a single document has a unique style. Here are the codes for this tutorial:




<html>

<head>

<style type="text/css">

<!--

h1{font-size:12;font-family:Comic Sans MS;color:#0000FF}

h2{font-size:18;font-family:Monotype Corsiva;color:#00FF00}

h3{font-size:24;font-family:Tahoma;color:#FF0000}

-->

</style>

<body>

<h1>This is H1 Heading</h1>

<h2>This is H2 Heading</h2>

<h3>This is H3 Heading</h3>
</body>

</head>

</html>




Share and Enjoy!



Miyerkules, Nobyembre 2, 2011

Mobile Phones Trends in the Philippines

Known as the texting capital of the world, the Phillippines is #37 in rank along side Mexico and China as the world's most mobile phone users with 17.77 out of 100 people base on Media Statistics of NationaMaster.com.  It only shows that Philippines is a lucrative market for mobile phones companies.  Keeping the facts straight, Philippines has almost 100 million population and almost 1.7 million of these are mobile phones owner!

Apple Iphone and Nokia are still heading the pack, especially on smart phones, but not far behind are emerging notables that can give a run for your money. Below are list of some of the best smart phones available today.

Apple Iphone 4S
Nokia C3
Sony Ericsson Xperia X10

Samsung Galaxy S II

Motorola Atrix 4G
LG Optimus One
Smart Phones as a gift will never go wrong especially this coming holidays. Different phones have different features so get the one that suits your needs and lifestyle.

Martes, Nobyembre 1, 2011

How to use Frame, Option Button, Check Box in VB 6.0.

Sa video na ito ginamit at pinagkumpara ang kaibahan ng Option(Radio) Button at Check Box.  Matututunan din sa video na ito ang mga Text Properties na FontBold, FontItalic at Forecolor.  Ang mga code sa video na ito ay ang mga sumusunod:

Private Sub Option1_Click( )

Text1.FontBold = True

End Sub
_____________________
Private Sub Option2_Click( )


Text1.FontItalics = True

End Sub
_____________________
Private Sub Check1_Click( )


Text1.ForeColor = #FF0000

End Sub
_______________________
Private Sub Check2_Click( )

Text1.ForeColor = #0000FF

End Sub

Share and Enjoy!