Add this code to your form:
protected override bool ProcessDialogKey(Keys keyData)
{
switch (keyData)
{
case Keys.Enter:
case Keys.Space:
return base.ProcessDialogKey(Keys.Tab);
}
return base.ProcessDialogKey(keyData);
}
16 กรกฎาคม 2008
Add this code to your form:
protected override bool ProcessDialogKey(Keys keyData)
{
switch (keyData)
{
case Keys.Enter:
case Keys.Space:
return base.ProcessDialogKey(Keys.Tab);
}
return base.ProcessDialogKey(keyData);
}
17 มิถุนายน 2008
This problem occur to me when install custom build windows xp sp3 slipstream include ie7.
by default ie7 set local intranet security to automatic to solve this problem by uncheck automatic and check all checkbox under automatic detect intranet network.
31 พฤษภาคม 2008
1. Install Windows Virtual Server 2005 R2 SP1 แต่ต้องมี IIS ด้วย
2. เปิด command prompt แล้วพิมพ์
>C: <enter>
>CD “\Program Files\Microsoft Virtual Server\Vhdmount” <enter>
>vhdmount /m “…path to your vhd file…\MyVhd.vhd” M <enter>
{m=”" คือ=”" drive=”" ที่ต้องการจะให้=”" mount}
3. เสร็จเรียบร้อย
ข้อควรจำ: เมื่อ restart drive ที่ mount ไว้ก็จะหายไป
ที่มา: Offline VHD file mounting on the host operating system with Virtual Server 2005 R2 SP1 Beta 2
25 พฤษภาคม 2008
$ sudo dpkg-reconfigure fontconfig-config
แล้วจะมีหน้าให้เลือก จะมี font hinting (ในหน้าแรก) ให้เลือกเป็น None แล้วที่เหลือไม่ต้องเปลี่ยนแปลงอะไร
เสร็จแล้วก็ restart เพื่อความชัวร์ หรือจะ logout แล้ว login อีกครั้งก็ได้
12 พฤษภาคม 2008
example:
<form name="myform" action="handle-data.php">
Search: <input type='text' name='query'>
<A
href="javascript:
submitform()">Search</A>
</form>
<SCRIPT language="JavaScript">
function
submitform()
{
document.myform.submit();
}
</SCRIPT
10 พฤษภาคม 2008
ให้ใช้เครื่องหมาย <!– และ –> แทรกเข้าไปส่วนที่เป็นโค้ด javascript ไว้ ซึ่ง Browser ที่ไม่รู้จักภาษา javascript จะเข้าใจว่าเป็นหมายเหตุ (Comment) และจะอ่านข้ามส่วนนี้ไปโดยไม่เกิดข้อผิดพลาด ส่วน Browser ที่เข้าใจภาษา javascript ก็จะอ่านและแปลความหมายได้ปกติ
เช่น
<!–
<script type=”text/javascript”>
window.location = “http://www.mysite.com/javascript-enabled.html”;
</script>
–>
ส่วนการแจ้งออกหน้าเว็บเพจเพื่อบอกว่า Browser ของผู้ใช้งานไม่รองรับ javascript ให้ใช้แท็ก <noscript></noscript>
คร่อมตรงส่วนของข้อความที่จะแสดงเมื่อ Browser ไม่รองรับ javascript เมื่อเปิด Browser มาก็จะเห็นข้อความนี้
เช่น
<noscript>
Your browser doesn’t support javascript.
</noscript>
2 พฤษภาคม 2008
1. Click Start, Click Run, Type GPEDIT.MSC, Press Enter
2. On the Left Column Expand Administrative Templates under User Configuration, Click on Desktop
3. On the Right Column Find Remove Recycle Bin Icon from Desktop
4. Double click on it, A property Window will Appear
5. Select Enable option, Press OK.
6. Refresh Desktop, That’s it.
To Show Recycle Bin Icon on Desktop, Do the same steps but instead of Enable select Not Configured.
Ref: http://digi-soft.blogspot.com/2008/01/how-to-hideun-hide-recycle-bin-icon-on.html
19 เมษายน 2008
หลังจากกด link เข้าเว็บ easy-share เพื่อทำการ download แต่ปรากฎว่ามันให้รอ 500 วิ ซึ่งมันนานไปเนอะ ก็ต้องพิมพ์โค๊ดข้างล่างนี้ลงที่ address bar เลย
javascript:void(w=2);
มันก็จะเหลือ 2 วินาที ไม่ต้องรอนานอีกต่อไป
18 กุมภาพันธ์ 2008
ถ้าหากต้องการสร้าง Input field โดยไม่ต้องมี label ทำได้โดย
echo $form->input( ‘Field1′, array( ‘label’ => false ) );
18 กุมภาพันธ์ 2008
ปัญหาคือว่า สร้างฟอร์มรับข้อมูลเป็นภาษาไทย แล้วเปิดใน phpmyadmin มันเป็นอักษรยึกยือ คิดว่าน่าจะเป็นที่ mysql ตามที่เคยเจอมา ก็เลยแก้ไขไฟล์ my.cnf ตามนี้
…
[mysqld]
init-connect = ‘SET NAMES utf8′
…
หากไม่สามารถแก้ไขไฟล์ my.cnf ได้ อาจจะต้องสร้าง AppModel ขึ้นใหม่ ตามนี้
class AppModel extends Model
{
function __contruct()
{
parent::__construct();
if( !defined( ‘GLOBAL_UTF8′ ) )
{
$this->query( ‘SET NAMES “utf8″‘ );
define( ‘GLOBAL_UTF8′, TRUE );
}
}
}
เหตุการณ์ก็สงบลง
ที่มา: http://cakebaker.wordpress.com/2006/01/16/trouble-with-utf-8/