Assign Index to Combobox

Posted July 17, 2008 by lemwell
Categories: Programming VB

Tags: , ,

Code to Assign Index

************************************************************

Public Class Form13
Dim id(5) As Integer

Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ComboBox1.Items.Add(“Item 1″)
ComboBox1.Items.Add(“Item 2″)
ComboBox1.Items.Add(“Item 3″)
ComboBox1.Items.Add(“Item 4″)
ComboBox1.Items.Add(“Item 5″)

id(0) = 10
id(1) = 20
id(2) = 30
id(3) = 40
id(4) = 50

end sub

******************************************************

To test the index

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox(ComboBox1.Text & ” = ” & id(ComboBox1.SelectedIndex))

End Sub

Vb Keypress

Posted July 17, 2008 by lemwell
Categories: Programming VB

Tags: , ,

This keypress will work if you want the textbox to accept numeric data only

For VB.net

Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress

If Not IsNumeric(e.KeyChar) Then
e.KeyChar = Chr(0)
End If
End Sub

For VB 5 & 6

on keypress event

Private Sub txtEndtNo_KeyPress(KeyAscii As Integer)
If Not IsNumeric(Chr(KeyAscii)) And KeyAscii <> 13 And KeyAscii <> 8 Then KeyAscii = 0
End Sub

Let’s not make life Complicated…

Posted June 11, 2008 by lemwell
Categories: Reflection

Life does not come with a little instruction book but that is simply because the rules are rather easy to follow. For me these are:

1. laugh (like there is no tomorrow)
2. help (others, the best way you can)
3. work (with dignity and pride)
4. pray (and humble yourself to God)
5. love (even when it’s difficult)

Forgive. Smile. Serve. Share. Love…

How Great is Our God – Chris Tomlin

Posted May 27, 2008 by lemwell
Categories: Music

Tags:

Psalm 104
How great is our God

Very Inspiring and worship songs…

The 3 stages Money Consciousness

Posted May 27, 2008 by lemwell
Categories: Advice

Tags: ,

The 3 stages Money Consciousness

url: http://preacherinbluejeans.com/videos/20061105/nov-5-2006-.html

Rex Mendoza

Don’t Have enough?
It’s up to you to make it enough

Man at Work
-Investment and Decision Stage

man and money at work
-Working in your office while money qrows

money at work
-no worries in income

to do things you want.

Lotto Story
Filipino are crazy about betting in a lotto
What will I do to the money if you win

Ratio to win:
1:5.3 million

instead of savings, we bet on chance

many believes in “Kapalaran” but
God’s give us the freedom to decide

do you want to live your life base on chance
or
do you want to build your building blocks
that will be the foundation of the real wealth

My ten peso in my pocket is secured than betting in a lotto

Charity

Pag natalo Charity, if you want to do charity
so the charity it self

pag nanalo investment

People in the US, buy lotto ticket as extra or change from
their grocery bills

but People in our country, bring a piece of paper
inalaagaan pa ung number for almost 3 years

imagine buying 10 or 20/ week
for 3 years and hoping for withdrawal someday

The Mindset Shift

Not just education
your life, your future is in your Hand

if your palm says you will be rich then
better sleep and wait until you become rich

Verse in the bible: It is better for a camel to go
for an eye of the needle than a rich man enter into
heaven
(analyze the first )
-Getting rich is ok as long as you have the right means
the purpose,
when I get rich, the more people  i can help
and to the church
other relatives
work with foundations

He start with 1800/month
secret: Discipline, getting grounded with  purpose

if you don’t have a purpose, you can be successful but for a while

You can also do it.

the purpose is the main reason that gives u money

don’t just seek money you will become dry physically and spiritually

dept

Good Dept – You borrow money to invest
Bad  Dept – You borrow money for own pleasure

Purpose:Make people better life

ways
discipline
purpose
relationship

valuing money with the children and wife

study mutual and bonds

Money is like a pie
if you don’t know how to handle
it will end in to waste or flat

but if you have a good baker

the result is the best pie

Punuin mo ng pag ibig ang puso mo

If you want to do great things

Posted May 27, 2008 by lemwell
Categories: Reflection

Tags:

May 19,2008

If you want to do great things
learn, study and invest

seek God and ask for wisdom
-Bo sanchez

God really change life

Posted March 27, 2008 by lemwell
Categories: Reflection

Tags:

March 27, 2008

Do you ask your self “is there really a God”, well as I continue my journey in my life, I really learn a lot and getting to know more our God.

As I taking my rest from my night shift work, I watch the story of Ninoy Aguino (Pinoy are worth dying for) interviewed by Mr. Pat Robertson and Ms. Rica Peralejo (how life change her life.) interviewed by Ms. Connie Reyes at the 700 club asia. And let me add also n inspiring story from Bo Sanchez.

Let me site some words from them…

“God allow sufferings in our do that we can recognize the reward after that.” – Ninoy

“You can’t deny, and the only way is to change and
sabihin na di ko po talaga kaya ung ganito kalaking bagay
so I need someone big to help me and that is God ” – Rica

A story of a small church

There is a small community church which is consist of 1 leader and 4 faithful members. They are all 60 and above in ages so you already know what will happen if some of them are not attending anymore…

Anyway, they ask there self, “What is happening to our community? why is it that we are the only people in this church?”

Then the leader go to the bishop to seek advice so he traveled in 2 two mountains just to reach the bishop then when he reach he ask the bishop, “Bishop, can you help our church to grow, the people, specially the youth are not joining in our community” then the bishop close his eyes and take a deep breath and say “Son, one of you is the messiah”… then the leader go home and told to his 4 members what the bishop advised him.

then after that, they change how they treat one another, with more respect and lovingly…

then people around notice what’s happening in that community, why is it that there is more joy and peace.

And people visit and attend the church….

Why because the true meaning of community is love, respect and Jesus in your life.

Thank you for your love and your life.

It’s me,

Em

searching in goolge and life

Posted March 27, 2008 by lemwell
Categories: Reflection

Tags:

I believe you’ve already try this, searching what you want using internet search engine like google or yahoo search engine. But do you really get what exactly you want to search? Maybe yes, maybe not? Why? If yes, maybe you have type the specific word of the specific question you want to search. If not, ask your self again? What do I what? What do I really want?

Until know, many people don’t know their purpose or the things they really want in life. It is simply because they don’t know specifically the thing that they want. They are just to general when asking for something like “cars” instead of
“honda civic model 2008″.

they are almost the same

The true meaning of work

Posted March 27, 2008 by lemwell
Categories: Reflection

Tags:

Well I would say that the meaning of hardwork is this “Enjoy what you are doing”

let me share a story from yahoo news…

ref: http://abcnews.go.com/GMA/story?id=4526501&page=1


Man Hits Jackpot, but Won’t Quit McDonald’s

British Man Who Won Millions Wants to Keep His Job at the Golden Arches

March 26, 2008Luke Pittard didn’t quite say “I’m lovin’ it,” but after winning a $2.7 million lottery he returned to his job flipping burgers at McDonald’s.Pittard, 25, from Wales, England, became a millionaire after winning the British lottery 18 months ago. He promptly quit his McDonald’s job.”I don’t think much will change in my life, just the fact that I got money,” Pittard said at the time.

Things changed less than Pittard expected. Today, he is back at work at the Golden Arches.

“To be honest, there’s only so much relaxing you can do,” he said.

Pittard is not alone in his behavior; believe it or not, many people sympathize with his desire to stay on the job.

In 2003 a group of cooks and caretakers in a Minnesota school waited until after their lunchtime shift to claim their $95 million winning ticket.

“Today we’re going to have hot ham and cheese sandwiches, that is the main thing,” Karen Overman, one of the lunch ladies, told “Good Morning America” when she became a millionaire.

Almost five years later some of those lunch workers are still on the job, just like Pittard.

Even though Pittard makes more money on the interest from his winnings than he does showing up for work, he’s still on the job simply because he’s lovin’ it.

Blond and Blue Eyes

Posted March 19, 2008 by lemwell
Categories: For Country

Tags: ,

(Editor’s note: This is the winning speech of Patricia Evangelista. If you are a Filipino, you must read it.)

WHEN I was little, I wanted what many Filipino children all over the country wanted. I wanted to be blond, blue-eyed, and white.

triciaI thought — if I just wished hard enough and was good enough, I’d wake up on Christmas morning with snow outside my window and freckles across my nose!

More than four centuries under western domination does that to you.

I have sixteen cousins. In a couple of years, there will just be five of us left in the Philippines, the rest will have gone abroad in search of “greener pastures.” It’s not just an anomaly; it’s a trend; the Filipino diaspora.

Today, about eight million Filipinos are scattered around the world.

There are those who disapprove of Filipinos who choose to leave. I used to. Maybe this is a natural reaction of someone who was left behind, smiling for family pictures that get emptier with each succeeding year. Desertion, I called it.

My country is a land that has perpetually fought for the freedom to be itself. Our heroes offered their lives in the struggle against the Spanish, the Japanese, the Americans. To pack up and deny that identity is tantamount to spitting on that sacrifice.

Or is it? I don’t think so, not anymore.

True, there is no denying this phenomenon, aided by the fact that what was once the other side of the world is now a twelve-hour plane ride away. But this is a borderless world, where no individual can claim to be purely from where he is now.

My mother is of Chinese descent, my father is a quarter Spanish, and I call myself a pure Filipino — a hybrid of sorts resulting from a combination of cultures.

Each square mile anywhere in the world is made up of people of different ethnicities, with national identities and individual personalities. Because of this, each square mile is already a microcosm of the world. In as much as this blessed spot that is England is the world, so is my neighborhood back home.

Seen this way, the Filipino Diaspora, or any sort of dispersal of populations, is not as ominous as so many claim. It must be understood.

I come from a Third World country, one that is still trying mightily to get back on its feet after many years of dictatorship. But we shall make it, given more time. Especially now, when we have thousands of eager young minds who graduate from college every year. They have skills. They need jobs. We cannot absorb them all.

A borderless world presents a bigger opportunity, yet one that is not so much abandonment but an extension of identity. Even as we take, we give back. We are the 40,000 skilled nurses who support the UK’s National Health Service. We are the quarter-of-a-million seafarers manning most of the world’s commercial ships.We are your software engineers in Ireland, your construction workers in the Middle East, your doctors and caregivers in North America, and, your musical artists in London’s West End.

Nationalism isn’t bound by time or place. People from other nations migrate to create new nations, yet still remain essentially who they are. British society is itself an example of a multi-cultural nation, a melting pot of races, religions, arts and cultures. We are, indeed, in a borderless world!

Leaving sometimes isn’t a matter of choice. It’s coming back that is. The Hobbits of the shire travelled all over Middle-Earth, but they chose to come home, richer in every sense of the word.

We call people like these balikbayans or the ‘returnees’ — those who followed their dream, yet choose to return and share their mature talents and good fortune.

In a few years, I may take advantage of whatever opportunities come my way. But I will come home. A borderless world doesn’t preclude the idea of a home. I’m a Filipino, and I’ll always be one. It isn’t about just geography; it isn’t about boundaries. It’s about giving back to the country that shaped me.

And that’s going to be more important to me than seeing snow outside my windows on a bright Christmas morning.

Mabuhay. And thank you.
reference : http://www.manilamail.com/features/patricia.htm