2/05/2013

VB 2008 : DateTimePicker = Null ได้ไหม

Set by :
DateTimePicker.Format = System.Windows.Forms.DateTimePickerFormat.Custom
DateTimePicker.CustomFormat = " "

กลับมาเหมือนเดิม
DateTimePicker.Format = System.Windows.Forms.DateTimePickerFormat.Long
OR
DateTimePicker.Format = System.Windows.Forms.DateTimePickerFormat.Custom

http://greatfriends.biz/webboards/msg.asp?id=59566

1/08/2013

Windows services


Starting and stopping

On the command line (cmd.exe)

A Windows service can be started and stopped on the command line (if it is not disabled):
net start name-of-service
net stop  name-of-service

Opening the services panel

Type services.msc in the Start-->run box.

Listing services

There are at least three ways to determine what services are: the registry,sc and services.msc. available.

Using the registry

The installed services can be found in the registry under
\\HKEY_LOCAL_MACHNINE\SYSTEM\CurrentControlSet\Services

Using sc

It's also possible to list the services with the command line utility sc:
C:\> sc query state= all | findstr SERVICE_NAME
Note: the space after state= is important. If omitted, sc tries to find a service named state=all which will, most probably, not exist.
If the state= all is omitted altogether, only running services will be returned.

services.msc

Typing services.msc into Run->Start, or into a cmd console, opens the Service panel which displays all installed services on the system.

Deleting a service

A service can either be deleted by removing all entries belonging to a service from the registry (see above). Or by using sc:
C:\> sc delete service-name
Thank For Web http://www.adp-gmbh.ch/win/misc/services.html

12/14/2012

How to set ICS Proxy


How to set ICS Proxy

How to set ICS Proxy?

Not that difficult if you know where to click :)

 Click on Wi-Fi
 Click on your selected WIFI and hold. Select Modify network config.

 Check [Show advanced options]
Tadaaaaaa.... put in your proxy server here.... you dont have to root to do this :)

Thank ! for web http://jjpda.blogspot.com/2012/05/how-to-set-ics-proxy.html

9/24/2012

PHP fopen(),fwrite() เป็น Function ใช้ในการเขียนไฟล์ (Write File)

mode
- r อ่านอย่างเดียว
- w สร้างไฟล์โดยถ้ามีไฟล์เดิมอยู่แล้วจะทำการลบทิ้งและสร้างไฟล์ขึ้นมาใหม่
- a กรณีที่มีไฟล์อยู่แล้วจะทำการเขียนไฟล์ต่อจากที่มีอยู่


<html>
<head>
<title>Test PHP & writefile</title>
</head>
<body>
<?
$strFileName = "Test.txt";
$objFopen = fopen($strFileName, 'w');
$strText1 = "123 Line1\r\n";
fwrite($objFopen, $strText1);
$strText2 = "234 Line2\r\n";
fwrite($objFopen, $strText2);
$strText3 = "345 Line3\r\n";
fwrite($objFopen, $strText3);

if($objFopen)
{
 echo "File writed.";
}
else
{
 echo "File can not write";
}

fclose($objFopen);
?>
</body>
</html>

8/29/2012

I mobile Q2 ปรับเสียงลำโพงให้ดังมากกว่าเดิม

**ใครจะปรับเพิ่มตัว เลือกอื่นก็ได้นะ แต่ย้ำว่าให้จดของเดิมไว้ก่อน 
เข้า  engineermode
กดเบอร์ แล้วโทรออก
*#*#2584560#*#*
เลือก Audio
Normal Mode
type เลือก Media
Level เลือก level 6
value is 160 กด set -->  OK
max vol 160 กด set -->  OK

LoudSpeaker Mode
type เลือก ring
Level เลือก level 6
value is 255 กด set -->  OK
max vol 160 กด set -->  OK

type เลือก Media
Level เลือก level 6
value is 255 กด set -->  OK
max vol 160 กด set   -->  OK

ค่าเดิมเผื่อต้องการทำกลับมาให้เหมือนเดิม
เข้า
engineermode
*#*#2584560#*#*
เลือก Audio
Normal Mode
type เลือก Media
Level เลือก level 1
value is 128 กด set --> ok
max vol 96 กด set --> ok

LoudSpeaker Mode
type เลือก ring
Level เลือก level 0
value is 0 กด set --> ok
max vol 160 กด set --> ok

type เลือก Media
Level เลือก level 0
value is 0 กด set --> ok
max vol 160 กด set --> ok

** ไม่รับรองในความเสียงหายที่จะเกิดขึ้นน่ะครับ เปิดดังมากเสียงลำโพงแตก หรือลำโพงอาจจะขาดได้น่ะครับ


ขอบคุณ luxdee แห่ง pdamobiz ครับ
http://pdamobiz.com/forum/forum_posts.asp?TID=572903&PN=0&TPN=18