my motto (1)

"ရှေးကံကြောင့် မိုင်ပေါင်းထောင်ချီ ဝေးနေကြသူတွေ တွေ့ဆုံရင်းနှီးခွင့်
ရကြတယ်။ ကံမပါရင် ပုခုံးချင်း ရှပ်တိုက်သွားတာတောင် ရင်းနှီးခွင့် မရဘူး"
တရုတ်စကားပုံ

For my wireless keyboard problem

In Human Interface Devices appears

Double click to this or <>
and then update driver
-> Install from a list or specific location(Adcanced)
->Don't search.I will choosse the driver to install
-> Check "Show compatible hardware" and select <> then "Next"
-> system will iinstall keyboard to <> devices ...
In Device Manager -> Keyboard tab -> 2 devices will shown

Manager Project(2)


Here is Form(2) ~ This is also called Sign in From ~ In there you must input the user name, password and your professional .. It connects with SQL server and it checks that user input all are right ..


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient; //this needs for sql server connection
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Manager_project
{
public partial class Form2 : Form
{
string connString= "server=ZAYYAROO; database=manager; uid=sa; pwd=123;"; //for sqlconnection
private SqlConnection conn;
private SqlCommand cmd;
public string myusername; //variable for input username
public Form2()
{
InitializeComponent();
}
private void Form2_Load(object sender, EventArgs e) //* paw say yan
{
textBox2.Text = "**********";
}
private void button1_Click(object sender, EventArgs e) //password sit yan
{
string commandString = "SELECT * FROM userdata " + "WHERE userdata.uname='"+myusername+"'"; //for sqlcommand
conn = new SqlConnection(connString);
cmd = new SqlCommand(commandString, conn);
SqlDataReader reader; //new sql data reader
try
{
conn.Open();
reader = cmd.ExecuteReader(); //in there 3 types of command ..ExecuteReader/ExecuteScalar/ExecuteNonQuery
reader.Read();
string username = reader.GetString(1).Trim(); //Read from table column(1)
string realpass = reader.GetString(2).Trim(); //Table starts with column(0)
string prof = reader.GetString(6).Trim();
if ((textBox1.Text == username) && (textBox2.Text == realpass) && (textBox3.Text == prof)) //check
{
Form6 s = new Form6();
s.Show();
}
else if ((textBox1.Text == username) && (textBox3.Text == realpass))
{
MessageBox.Show("Incorrect password!");
}
else
{
MessageBox.Show("Loading failed!");
}
}
catch (Exception er)
{
MessageBox.Show(er.ToString());
}
finally
{
conn.Close();
}
}

private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Form3 f = new Form3();
f.Show();
}

private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Form5 g = new Form5();
g.Show();
}

private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Form4 d = new Form4();
d.Show();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
myusername = textBox1.Text;
}
}
}

Manager Project(1)

From now on I will post my project ... writing with C# programming language ... I so tried for this .. so busy so hard .. but now I know a little about C# ...Following are the codes for FORM 1


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Manager_project
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
Form2 a = new Form2(); //for calling new form(2)
a.Show();
}

private void button2_Click(object sender, EventArgs e)
{
this.Close(); //for closing form(1)
}

private void Form1_Load(object sender, EventArgs e)
{

}
}
}

အရမ်းကိုကောင်းသော Photo Viwer လေးပါ

အခု ကွန်ပြူတာမှာ အဲဒီ Photo Viwer လေး တစ်ခုတင်ထားပါတယ် အရမ်းကိုကြိုက်ပါတယ် ... effect တွေရော ပုံထွက်ပါကြည်နေတာပဲ ။ အဲဒါကတော့ Picasa 3 Photo Viwer လေးပါပဲ ..အရင်က ACD see ထက်ကိုကောင်းတယ်လို့ ညွှန်းပါရစေ ..
ဒီ link မှာ download ချလို့ ရပါတယ် .....
http://picasa.google.com/

powered by Blogger