Sep 19, 2010

LAST POST

Hi All,
Now I already created new blog called Hello world! and I will stop writing in this blog ..pls visit to my new blog,,,, Thank you for visiting to me
Glad to c ya ...

Sep 13, 2010

A Clock User Control for your Windows Form in C#


ဒီဟာကေတာ့ usercontrol နမူနာေလးပါ။ usercontrol အေၾကာင္းသိခ်င္လုိ႔ လုိက္ဖတ္ရင္းနဲ႔ အလြယ္ဆံုးေလးကုိ ေတြ႔လုိ႔ စမ္းၾကည့္လုိက္တာပါ။ နာရီေလး တစ္ခုပါပဲ။
Creating The Clock User Control Step By Step
အရင္ဆံုး usercontrol လုပ္ပါမယ္။ VS2008 ကုိ ဖြင့္ပီး windowApplication တစ္ခုလုပ္ပါမယ္။ ျပီးရင္ အဲဒီမွာ solution explorer ကေနျပီး project ကုိ right click လုပ္ပါ။ Add->New Items ကေနျပီး usercontrol တစ္ခုကုိ add ပါမယ္.ျပီးရင္ အဲဒီ usercontrol ထဲကုိ timer တစ္ခုနဲ႔ label တစ္ခု add ပါမယ္.
private void timer1_Tick(object sender, EventArgs e)
{
label1.Text = DateTime.Now.ToLongTimeString();
}

private void UserControl1_Load(object sender, EventArgs e)
{
timer1.Start();
}

Using the Clock Control in your Windows Form
window from ကုိ ျပန္ျပီး select လုပ္ပါ။ ဒါဆုိရင္ ေဘးက Toolbox မွာ အဲဒီ usercontrol1 ဆုိတာကုိ ေတြ႔ပါမယ္..။ အဲဒါကုိ drag ဆဲြျပီး form ထဲကုိ ထည့္လုိက္ပါ. ရပါပီ
ျပီးရင္ အဲဒီ window form ကုိ Run လုိက္ရင္ နာရီေပၚေနတာ ေတြ႔ပါလိမ့္မယ္။။

http://www.mycsharpcorner.com/Post.aspx?postID=23

Mediafire download error

ကၽြန္ေတာ္ အၾကိဳက္ဆံုး hosting ကေတာ့ Mediafire ပါပဲ. အခု ကၽြန္ေတာ္ ဘန္းေက်ာ္ျပင္ပေရာက္ေနခ်ိန္မွာ Mediafire ကေတာ့ crazy ပါပဲ။ download speed ေကာင္းသလုိ waiting time ကလည္း အရမ္းနည္းပါတယ္ ။ upload တင္မယ္ဆုိရင္လည္း unlimited ပါပဲ. ကၽြန္ေတာ္ software ေတြ ရွာပီ movie ေတြ ရွာပီဆုိရင္လည္း Google မွာ "on mediafire" လုိ႔ ရွာလုိ္က္တာနဲ႔ Mediafire link ေတြ ေပၚလာျမဲပါ။ ဘာလုိ႔လည္း ဆုိေတာ့ Mediafire ကေန upload တင္ထားတဲ့ file ေတြက သူ႔ရဲ႔ original file name ကုိ ပဲ ယူၾကတာ မိုိ႔လုိ႔ပါ။ တခ်ိဳ႔ hosting ေတြကေတာ့ ကုတ္လင့္ကုိ ေပးၾကပါတယ္. Mediafire ကေန လင့္ေတြကလည္း ကုတ္လင့္ေတြ ရွိသလုိ file link ေတြလည္း ရွိပါတယ္.။ Mediafire ကေန download ခ်တဲ့ အခါမွာ တခါတရံမွာ တုိက္ရုိက္က်သလုိ တခါတရံမွာ မလုိအပ္ဘဲ ၾကာတာေတြ ေနာက္ပီး ေဒါင္းလုတ္မက်ဘဲ error တက္တာေတြကုိ ၾကံဳရပါတယ္ ..။ အဲဒီအခါမ်ိဳးမွာ browser ထဲမွာ ရွိေနတဲ့ cookie file ေတြကုိ ဖ်က္ေပးရပါတယ္...။ ဖ်က္နည္းကေတာ့ ေအာက္ပါအတုိင္းျဖစ္ပါတယ္ ..။ အရင္ဆံုး mozilla ရဲ့ Tools->options.. ကေန၀င္ရပါတယ္ ။။ ျပီးေအာက္ပါအဆင့္တုိင္း ဆက္လက္လုပ္ေဆာင္ႏုိင္ပါပီ...။

Sep 2, 2010

Developing PHP On Your Visual Studio 2008/2005


ဒီေန႔မွ သိတယ္။ PHP ကုိ MSVS နဲ႔ ေရးလုိ႔ရတယ္ဆုိတာကုိ ။ အရင္က PHP easy တုိ႔ ဘာတုိ႔ကုိ တင္ျပီးေလ့လာဦး မလုိ႔။ အခုကေတာ့ .Net သမားေပါ့။ ဒါေပမယ့္လည္း အဲဒါကုိေတာ့ သိခ်င္ေသးတယ္။ ဒီဟာနဲ႔က ရုိးရုိးေလးပဲ။ ပံုမွန္ C# asp.net တုိ႔လုိ ေရြးလုိက္ရံုပဲ။
Jcxsoftware have developed such a Visual Studio Plugin.
It supports PHP4 and PHP5, you will also get Syntax highlighting and Intelisense for the following:

* PHP
* Smarty
* HTML
* JavaScript
* CSS
* XML
* XSLT



ေနာက္ပီး When you want to run your application and test it VS 2008/2005 will run a light weight apache server ( similar to the ASP.NET debugging) so you can test you application. ျဖစ္တဲ့ အတြက္ သူမ်ားေတြလုိ apache server ထပ္တင္စရာ မလုိေတာ့ပါဘူး။ အရင္က ျပသနာျဖစ္ေသးတယ္။ IIS server ရွိတဲ့ စက္မွာ php run လုိ႔မရဘူး။ အခုဒါနဲ႔ ဆုိ အဆင္ေျပသြားပါျပီ။ စမ္းသံုးၾကည့္တာကေတာ့ အဆင္ေျပပါတယ္။ သူ႔ရဲ့ crack ကလည္း အလုပ္လုပ္ပါတယ္။
download here for trial version

IrisSkin 3 for skinning C# window form


The lastest version : 3.62, update date: 18 Jun. 2010.

ေၾကာ္ျငာသေဘာပဲ ေျပာပါေတာ့။ အခုက ရွယ္ဖုိ႔ရာ serial က အဆင္မေျပေသးပါဘူး။ ေလာေလာဆယ္ ကၽြန္ေတာ္ကုိယ္တုိင္ ဒီ unregistered version ကုိ ပဲ သံုးေနတာပါ။

IrisSkin is the easiest-to-use .NET skin solution for Microsoft VisualStudio.NET(WinForms) and Delphi.NET. It provides you the ability to make your application in skin automatically, including all forms and dialogs. You will never spend many time on programming for skin support.

Using IrisSkin, you don't need to make any modification for your existing projects but just drop a skin engine component onto the main form and set some properties, that's all. It can skin all forms and dialogs automatically. And the skin files can be compiled into the EXE file so that you don't need to distribute the skin files with your EXE. At run-time, you can switch the skins very easily and you can switch to unskinned easily too. Let's say, just one component for one project!


သူ႔ကုိ သံုးထားရင္ ကုိယ့္ window form ကုိ design လွလွေလးနဲ႔ ျမင္ႏုိင္ပါတယ္။ သိပ္လဲမခက္ပါဘူး ။ ကုတ္တေၾကာင္းေတာင္ ေရးစရာ မလုိပါဘူး။ လုိတဲ့ skin ကုိေရြးျပီး ေပးလုိက္ရံုပါပဲ။ သံုးနည္းကုိေတာ့ ေအာက္မွာေဖာ္ျပပါမယ္၊ သူ႔မွာ ကုိယ့္ပုိင္ skin ေတြ create လုပ္ႏုိင္ဖုိ႔ skin builder Tool ပါ ပါပါတယ္။ အဲမွာ .bmp file ေလးေပၚမွာပဲ အားလံုးကုိ ေရးဆဲြထားတာျဖစ္ပါတယ္။ ကုိယ္ဟာကုိ စိတ္ၾကိဳက္ျပင္ႏုိင္ပါတယ္။ buildin skin တင္ထည့္ေပးထားတာ ေတာ္ေတာ္မ်ားပါတယ္။ ဒီ unregistered version မွာ မေကာင္းတာက program run တဲ့ အခ်ိန္မွာ စာသားၾကီး ေပၚလာတာပဲ ျဖစ္ပါတယ္။
IrisSkin is compatible with: Microsoft VisualStudio.NET 2002/2003/2005/2008/2010, Delphi 2005/2006
IrisSkin supports .NET framework 1.0/1.1/2.0/3.0/3.5/4.0


IrisSkin-Installation
၁။ အရင္ဆံုး install လုပ္ပါ။ ျပီးရင္ MSVS ကုိ ဖြင့္ပါ။
၂။ Assembly အပ္ရန္မွာ
IrisSkin.dll -- this assembly is designned for Microsoft VisualStudio 2002/2003 with .NET framework 1.0/1.1
IrisSkin2.dll -- this assembly is designned for Microsoft VisualStudio 2005/2008 with .NET framework 2.0/3.0/3.5
၃။ Tool box မွာ အပ္ရန္ right click -> Choose items..
ျပီးရင္ Browse ကေနျပီး ခုနက install လုပ္ခဲ့တဲ့ path အတုိင္းသြားပီး Bin ထဲက .dll ဖုိင္ကုိ အပ္ေပးပါ။

IrisSkin-usage
၁။ new window form project လုပ္ပါ။ ျပီးရင္ အဲဒီ Tool box ထဲက Skin Engine ကုိ ေရြးျပီး ထည့္လုိက္ပါ။
၂။ SkinEngine1 ကုိ select လုပ္ပီး Properties ထဲက Skin file မွာ လုိအပ္တဲ့ skin ကုိ Installation path ထဲကုိသြားပီး ေရြးေပးပါ။ serial number ရရင္ ျဖည့္ေပးပါမယ္။
၃။ Run လုိ႔ ရပါပီ။

MORE INFO ->http://www.sunisoft.com/irisskin/index.htm

Sep 1, 2010

Applying color to "codeview" in "Edit Html" tab


အခုေနာက္ပုိင္း ဒီ blog template ေျပာင္းလုိက္တဲ့အတြက္ အရင္လုိ code ေတြကုိ ေရးတဲ့ေနရာမွာ ေဘာက္ေလးနဲ႔ မေဖာ္ျပေတာ့ပါဘူး။ ဒီေတာ့ကာ အဲဒီကုတ္ေတြကုိ ျမင္သာေအာင္ အျပာေရာင္ နဲ႔ ေနာက္ပုိင္းကုိ ဆက္ပီးေရးသြားပါမယ္။ ေနာက္ပီး post title ေတြရဲ့ ေအာက္က ေခါင္းစဥ္ခဲြေလးေတြ ေနာက္ပီး အမ်ိဳးအစား ေတြကုိ ေဖာ္ျပတဲ့ေနရာမွာ အနီေရာင္နဲ႔ ေဖာ္ျပသြားပါမယ္။။ အဲဒီမွာ ကုတ္ေတြကုိ < နဲ႔ > ေတြပါလာရင္ ျပင္ေပးရပါမယ္။ ဒါကုိေတာ့သိျပီးျဖစ္မွာပါ။ အဲဒါေတြကုိ ျပင္ျပီးသြားရင္ New post က Compose tab ထဲကုိ ၀င္လုိ႔ မရေတာ့ပါဘူး။ Preview နဲ႔ ၾကည့္လုိ႔ေတာ့ရပါတယ္။ Compose tab ထဲကုိ ၀င္လုိက္တာနဲ႔ အဲဒီ ကုတ္ေတြက ပ်က္သြားပါပီ။ ဒါေၾကာင့္ အဲဒီကုတ္ေတြကုိ color တင္ခ်င္တဲ့အခါ ဒီ Edit Html tab ထဲမွာပဲ တင္ရပါမယ္.
၁။ အရင္ဆံုး ကုတ္ေတြကုိ select လုပ္ပါ။ ျပီးရင္ Bold တင္လုိက္ပါ။
၂။ ျပီးရင္ေပၚလာတဲ့ < span style="font-weight:bold;"> < /span> ထဲက font-weight:bold; ကုိ ဖ်က္ပီး color:red; ဆုိျပီး ျပင္လုိက္ရင္ရပါပီ။

C# window Form Resize Animation

အခု article ေလးကေတာ့ window form size change တာကုိ တျဖည္းျဖည္းနဲ႔ ေျပာင္းသြားေအာင္ လုပ္တဲ့ animation အေသးစားေလးပါပဲ ။ Programming အေျခခံလုိ႔လဲ ေျပာလုိ႔ ရပါတယ္။
Changing Form Dimensions
ဆုိၾကပါစုိ႔ ။ မူရင္း Default size ကေနျပီးပဲ change လုိက္ရေအာင္. အရင္ဆံုး button ၂ ခုကုိ ထည့္ပါမယ္။ Text property မွာ တစ္ခုကုိ big form size ဆိုျပီးေပးမယ္ ေနာက္တစ္ခုကုိ small form size ဆုိျပီးေပးမယ္။ small form size ဆုိတဲ့ button ရဲ့ click_event မွာ ေအာက္ကကုတ္ေလးထည့္ေပးလုိက္ပါ။


while (this.Width < 200)
{
this.Width--;
Application.DoEvents(); //allow the Form to display its new size before
//the next iteration
}

while (this.Height < 200)
{
this.Height--;
Application.DoEvents();
}


ေနာက္ big form size ဆုိတဲ့ button click_event မွာ ေအာက္က ကုတ္ကုိထည့္ေပးလုိက္ပါ။

while (this.Width > 400)
{
this.Width++;
Application.DoEvents(); //allow the Form to display its new size before
//the next iteration
}

while (this.Height > 400)
{
this.Height++;
Application.DoEvents();
}

ဒါဆုိရင္ သူဟာ form size ခ်ိန္းတာကုိ တျဖည္းျဖည္းနဲ႔ ခ်ိန္းသြားပါလိမ့္မယ္။ ပုိျပီးၾကည့္ေကာင္းသြားပါလိမ့္မယ္။

More info => http://www.vcskicks.com/size-transform.php