RSS

Monthly Archives: December 2009

Printing Barcode on Crystal Report

http://www.azalea.com/CrystalReports/

download Crystal Reports UFL and copy Code128Wide  font to fonts

http://www.azalea.com/Code-128/Crystal-Reports/

 
Leave a comment

Posted by on December 15, 2009 in Crystal Report

 

Data truncation: Incorrect datetime value in MySQL

Message Error in MySQL:
“Data truncation: Incorrect datetime value: ‘1969-12-31 16:00:00’ for column ‘LAST_LOGIN’ at row 1”

Resolution:

Now, open the my.ini file located at c:program files/MySQL/MySQL
Server X.x/my.ini.
Add a # at the begining of the line: sql-mode=”STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION”
Type

sql_mode=” on the next line and save the file.
restart mysql

 
18 Comments

Posted by on December 15, 2009 in MySQL Server

 

Using RichTextBox in C#

Set Font size, family for a RichTextBox

http://www.java2s.com/Code/CSharp/GUI-Windows-Form/SetFontsizefamilyforaRichTextBox.htm

Word Processing with an Extended Rich Text Box Control

http://www.c-sharpcorner.com/UploadFile/scottlysle/WordProcessor02042007234628PM/WordProcessor.aspx

 
Leave a comment

Posted by on December 11, 2009 in Window Application

 

Dynamic Playlist.xml in PHP

When we want to play music in the Flash Player by dynamic playlist, we can do as below:


<?PHP
header('Content-Type: text/xml);
echo "<?xml version='1.0' encoding='UTF-8' ?>
<Playersettings autostart='yes' playall='yes' loop='yes' shuffle='no'/>
<Playlist></p>
........................";
?>

And save this file as playlist.php

.................................
flashVars-"pl1=playlist.php"
.................................
 
Leave a comment

Posted by on December 3, 2009 in ActionScript 3.0, PHP

 

Disable Close button in C# Window Forms

private const int CP_NOCLOSE_BUTTON = 0x200;
 protected override CreateParams CreateParams
 {
     get
     {
        CreateParams myCp = base.CreateParams;
        myCp.ClassStyle = myCp.ClassStyle | CP_NOCLOSE_BUTTON ;
        return myCp;
     }
 }
 
3 Comments

Posted by on December 3, 2009 in Window Application

 

Handling Close Event of Close Button in C#


private void MainForm_FormClosing(object sender, FormClosingEventArgs e)

{

if (DialogResult.Yes != MessageBox.Show(

"Recent changes have not been saved. Close the application anyway?",

"Close Application?",

MessageBoxButtons.YesNo,

MessageBoxIcon.Question,

MessageBoxDefaultButton.Button2))

{

e.Cancel = true;

}

}

 
Leave a comment

Posted by on December 3, 2009 in Window Application