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 ...
My Little Notebook
c#,Asp,.Net,programming,tutorial,tips,trick,code
Sep 19, 2010
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
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
Aug 26, 2010
Aug 25, 2010
The Blogger “Read More” Expandable Posts Link
ဒီဟာလည္း Read more button လုပ္တာပါပဲ။ လြယ္လဲလြယ္လုိ႔ ေနာက္ပီးေတာ့ သူ႔မွာ တျခားျဖည့္စရာ javascript ေတြလည္း မလုိဘူးေလ. Edit html မွာ copy ကူးထည့္လုိက္ရံုပဲ။ ဒီ Read more ကေတာ့ သူ႔ကုိ ႏွိပ္လုိက္တာနဲ႔ အဲဒီ ပုိစ့္ ကုိတစ္ခုတည္း သပ္သပ္ေဖာ္ျပမွာ ျဖစ္ပါတယ္။ ပုိစ္ေအာက္ေျခမွာလည္း comment box ကုိ ေတြ႔ရမွာ ျဖစ္ပါတယ္။ အရင္က ေရးခဲ့ဖူးတဲ့ Read more လုိပါပဲ ။ ဒါေပမယ့္ blogger new editor နဲ႔ လုပ္တာ မဟုတ္ပါဘူး ။
Step #1 - Update Your Template Code
အရင္ဆံုး widge ကုိ expend အရင္လုပ္ပါ။ ျပီးရင္ post-header-line-1 ဆုိတဲ့ကုတ္ကုိ ရွာပါ။ ျပီးရင္ ေအာက္က ကုတ္ေတြကုိ < class="’post-header-line-1′/"> တို႔ < class="’post-header-line’"> တုိ႔ ေနာက္ကေန ထည့္ပါ။
< b:if cond='data:blog.pageType == "item"'>
< style> .fullpost{display:inline;}</style>
< p> < data:post.body/></p>
< b:else/>
< style > .fullpost{display:none;} < /style>

ျပီးရင္ Read more ကုိ ႏွိပ္လုိက္ရင္ ေပၚေအာင္ ကုတ္ထည့္ပါမယ္။ ေအာက္ကကုတ္ပါ။
< b:if cond='data:blog.pageType != "item"'> < br />
< a expr:href='data:post.url'> Read more...< /a>
< /b:if>
< /b:if>

ဒီမွာ if ႏွစ္ခုျဖစ္ေနလုိ႔ မွားမယ္ ထင္ေနဦးမယ္။ မမွားပါဘူး။ ကုတ္ေတြ အားလံုးထည့္ပီးရင္ final ပံုက ဒီမွာပါ။ အ၀ါနဲ႔ ျပထားတာက အဲဒါ ျဖည့္လုိက္တဲ့ကုတ္ေတြပါ။

Step #2 - Add a Class Tag in Your Default Post Template
ျပီးရင္ post template ကုိ ျပင္ပါမယ္။ settings က formatting ကို သြားပီးေတာ့ ေအာက္ဆံုးအကြက္မွာ
< class="fullpost">
< /span>
အတုိင္းျဖည့္လုိက္ပါ ။ save setting လုပ္ပါ။ ဒါဆုိရင္ New post လုပ္မယ္ ၾကံတုိင္း အဲဒီ span ကုိ ေတြ႔ရမွာ ျဖစ္ပါတယ္။

Step #3 - Create a New Post
ပုိစ္ အသစ္ကုိတင္ႏုိင္ပါပီ။ အဲဒါ တင္တဲ့ အခါမွာ span tab ႏွစ္ခုၾကားထဲမွာ ထည့္ရမယ့္ အေၾကာင္းေတြက ေတာ့ Read more ကုိ ႏွိပ္လုိက္ရင္ ေပၚေစခ်င္တဲ့ အရာေတြ ျဖစ္ပါတယ္။ ေအာက္က ပံုမွာၾကည့္ပါ။
MORE info -> http://bloggingforbread.blogspot.com/2008/02/add-blogger-read-more-expandable-posts.html
Step #1 - Update Your Template Code
အရင္ဆံုး widge ကုိ expend အရင္လုပ္ပါ။ ျပီးရင္ post-header-line-1 ဆုိတဲ့ကုတ္ကုိ ရွာပါ။ ျပီးရင္ ေအာက္က ကုတ္ေတြကုိ < class="’post-header-line-1′/"> တို႔ < class="’post-header-line’"> တုိ႔ ေနာက္ကေန ထည့္ပါ။
< b:if cond='data:blog.pageType == "item"'>
< style> .fullpost{display:inline;}</style>
< p> < data:post.body/></p>
< b:else/>
< style > .fullpost{display:none;} < /style>

ျပီးရင္ Read more ကုိ ႏွိပ္လုိက္ရင္ ေပၚေအာင္ ကုတ္ထည့္ပါမယ္။ ေအာက္ကကုတ္ပါ။
< b:if cond='data:blog.pageType != "item"'> < br />
< a expr:href='data:post.url'> Read more...< /a>
< /b:if>
< /b:if>

ဒီမွာ if ႏွစ္ခုျဖစ္ေနလုိ႔ မွားမယ္ ထင္ေနဦးမယ္။ မမွားပါဘူး။ ကုတ္ေတြ အားလံုးထည့္ပီးရင္ final ပံုက ဒီမွာပါ။ အ၀ါနဲ႔ ျပထားတာက အဲဒါ ျဖည့္လုိက္တဲ့ကုတ္ေတြပါ။

Step #2 - Add a Class Tag in Your Default Post Template
ျပီးရင္ post template ကုိ ျပင္ပါမယ္။ settings က formatting ကို သြားပီးေတာ့ ေအာက္ဆံုးအကြက္မွာ
< class="fullpost">
< /span>
အတုိင္းျဖည့္လုိက္ပါ ။ save setting လုပ္ပါ။ ဒါဆုိရင္ New post လုပ္မယ္ ၾကံတုိင္း အဲဒီ span ကုိ ေတြ႔ရမွာ ျဖစ္ပါတယ္။

Step #3 - Create a New Post
ပုိစ္ အသစ္ကုိတင္ႏုိင္ပါပီ။ အဲဒါ တင္တဲ့ အခါမွာ span tab ႏွစ္ခုၾကားထဲမွာ ထည့္ရမယ့္ အေၾကာင္းေတြက ေတာ့ Read more ကုိ ႏွိပ္လုိက္ရင္ ေပၚေစခ်င္တဲ့ အရာေတြ ျဖစ္ပါတယ္။ ေအာက္က ပံုမွာၾကည့္ပါ။

MORE info -> http://bloggingforbread.blogspot.com/2008/02/add-blogger-read-more-expandable-posts.html
Subscribe to:
Posts (Atom)