Monday, September 20, 2010
Function Key "F10" in Visual Basic
F10 Key once detected on Form using KeyPreview property, will never trigger the same event unless user press F10 again. This is an amazing problem. Let say, you want to detect keys on Form_KeyUp or Form_KeyDown, and user pressed F10, than no other key will trigger this event until user re-press F10. The reason behind this behavior is that key [F10] trigger the "System Menu" on form, either you have menu or not, it does not matter. Therefore, always set Keycode to ZERO, before exiting from Form_KeyUp or Form_KeyDown events. See Below;
Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
rem
rem blah, blah...
rem
KeyCode = 0
Exit Sub
Have a nice sip of VB6.
Thursday, September 9, 2010
Simplest Charger with Load Sharing
The resistor R1 in Fig 2 emulates Venus. The Venus chip takes 28mA, or say 32mA maximum. The LM317L charger shown here is capable of delivering this power into Venus at 3.33V.
The Venus power supply range is 2.8V to 3.6V
A simplest battery charger based on LM317L. The regulator is limited to 100mA, therefore charging current and load current should not exceed 100mA OR the regulator will heat up, it might be possible that LM317L get burn. Fig 1, shows 85mA current flowing through load drawing 9.4mA from battery and 75.5mA from LM317L, while there is no power source is attached.
Comments are welcome to enhance this model.
The Venus power supply range is 2.8V to 3.6V
A simplest battery charger based on LM317L. The regulator is limited to 100mA, therefore charging current and load current should not exceed 100mA OR the regulator will heat up, it might be possible that LM317L get burn. Fig 1, shows 85mA current flowing through load drawing 9.4mA from battery and 75.5mA from LM317L, while there is no power source is attached.
Comments are welcome to enhance this model.
Simplest Charger with Load Sharing
The resistor R1 in Fig 2 emulates Venus. The Venus chip takes 28mA, or say 32mA maximum. The LM317L charger shown here is capable of delivering this power into Venus at 3.07V.
The Venus power supply range is 2.8V to 3.6V
A simplest battery charger based on LM317L. The regulator is limited to 100mA, therefore charging current and load current should not exceed 100mA OR the regulator will heat up, it might be possible that LM317L get burn. Fig 2, shows 78mA current flowing through load from battery, while there is no power source is attached.
Comments are welcome to enhance this model.
The Venus power supply range is 2.8V to 3.6V
A simplest battery charger based on LM317L. The regulator is limited to 100mA, therefore charging current and load current should not exceed 100mA OR the regulator will heat up, it might be possible that LM317L get burn. Fig 2, shows 78mA current flowing through load from battery, while there is no power source is attached.
Comments are welcome to enhance this model.
Tuesday, September 7, 2010
Date Tea, a new tradition.
Dates :-)
According to a study by Al-Shahib and Marshall, in many ways, "dates may be considered as an almost ideal food, providing a wide range of essential nutrients and potential health benefits." Dates are a very good source of dietary potassium. The sugar content of ripe dates is about 80%; the remainder consists of protein, fiber, and trace elements including boron, cobalt, copper, fluorine, magnesium, manganese, selenium, and zinc.
We all know about 'Dates', its good. Just want to share this with all my known people.
Take a sip of "Date Tea"According to a study by Al-Shahib and Marshall, in many ways, "dates may be considered as an almost ideal food, providing a wide range of essential nutrients and potential health benefits." Dates are a very good source of dietary potassium. The sugar content of ripe dates is about 80%; the remainder consists of protein, fiber, and trace elements including boron, cobalt, copper, fluorine, magnesium, manganese, selenium, and zinc.
We all know about 'Dates', its good. Just want to share this with all my known people.
Red Date Soup, with dried Longan
Before leaving for work, add the 2 ingredients: red dates and dried longan and very hot water into a vacuum flask. Secure the top. Bring the vacuum flask to work. By mid morning, you will have a nice hot flask of sweet soup.Dried longan helps blood circulation. Red dates is good for an easily irritable stomach.
Both dried longan and red dates are very sweet. It is therefore not necessary to add any sugar.What is Longan? see here http://en.wikipedia.org/wiki/Longan, it is similar to lychees.
Ingredients
1/2 tablespoon dried longan
7 red dates
Directions
[1] Wash and core the red dates
[2] Separate and flatten the dried longans
[3] Wash and soak briefly in warm water
[4] Place the longans and red dates in vacuum flask
[5] Add 500ml boiling water
[6] Close the lid tight and let everything steep for about 2-3 hours
[7] Pour into a small cup to serve
[8] Remember to bring a spoon so that you can eat the longan flesh and red dates
Subscribe to:
Posts (Atom)