Sunday, September 28, 2008

8 Random Facts about Me

Hello Alritch. This is my first time and for you I'm posting some of the things i do, I don't like and I'm thinking..

1.) I'm In love to my Girlfriend and we're getting settle this coming year.
2.) I want to change my career cause it's not right for me(Thinking)....
3.) I cannot do conversation to our client if they have question regarding on the specific task (nervous) after that I'm losing my confident but on the positive side i want to improve it and to prove to them that is not my weakness.
4.) I love to watch scary bloody movies (killing each other)(chuckle).
5.) I rather buy some foods than buying cloths.
6.) I don't smoke i don't really drink. i really don't like the taste of any of beverage.
7.) I love to play basketball every Sunday even the end of the day all of my body is painful.
8.) When I'm alone i always talk to myself. hahaha (chuckle)

Now its done. I'm tagging this people.

1.) Dahl
2.) Admiral
3.) Miss Elle
4.) ZAZA
5.) Dgores
6.) Eunice
7.) Ridwan
8.) Aice

And the RULES are:

1. Each player starts with eight random facts/habits about themselves.
2. People who are tagged need to write their own blog about their eight things and post these rules.
3. At the end of your blog, you need to choose eight people to get tagged and list their names.
4. Don’t forget to leave them a comment telling them they’re tagged, and to read your blog.

Friday, September 19, 2008

Message box on vb.net

This is just sample messagebox code using vb.net language. I place this in the onclick button and prompt it during save. the code looks like this one.

Dim rstResult As DialogResult

rstResult = MessageBox.Show("Are you sure want to update?", _
"Business Card", _
MessageBoxButtons.YesNo, _

If rstResult = DialogResult.Yes Then
// do some action here. is the user selected Yes and nothing is no.
End If

How to validate textbox to numeric values only vb.net

This will validate inputed value on the textbox is not a numeric and set it to empty textbox.

If Not (IsNumeric(Me.txtY.Text)) Then
Me.txtY.Text = String.Empty
End If

Hope this will help you to validate you textbox control.

How to get the available fonts on the server - vb.net

This is my first time to get the available fonts on the server using vb.net language.
anyways i create a method that loads up the fonts on the dropdownlist. the code look like this

Private Sub LoadFonts()
Dim installed_fonts As New InstalledFontCollection
Dim font_families() As FontFamily = installed_fonts.Families()

' Display the font families.
For Each font_family As FontFamily In font_families
' font_family.Name & ", "
Next font_family
End Sub

Hope this help you.

Monday, September 1, 2008

How to find what is the current page C#

How to get the Url page you are currently browsing. On the page load you can put one line there as like this.

string url = Page.Request.Path;

Now you can get the url page. hope this help.