
Nguyên bản được gửi bởi
whamy04
Admin cảm phiền viết thử 1 code ví dụ dùm mình.
Thanks!
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Paint(object sender, PaintEventArgs e)
{
Graphics g = e.Graphics;
g.DrawImage(Image.FromFile(@"C:\WINDOWS\Web\Wallpaper\bliss.bmp"), new Point(0, 0));
}
}
}