ÈçÏÂVB´úÂ룺
Public Class Form1
Dim DyLikeDrawLib As New DYD.DYD
Dim PngPath As String
Dim PNG As Bitmap
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
PngPath = "y:\ͼƬ¿â\0.png" 'PNGͼƬµØÖ·
PNG = New Bitmap(PngPath)
DyLikeDrawLib.UserKey = "D" 'ÊÚȨÂë
DyLikeDrawLib.DrawBP(Me, PNG, 255) 'DrawBP(ÒªÏÔʾµÄÄ¿±ê´°Ìå,PNGͼ,͸Ã÷¶È)
End Sub
Protected Overloads Overrides ReadOnly Property CreateParams() As CreateParams
Get
Dim cp As CreateParams = MyBase.CreateParams
cp.ExStyle = cp.ExStyle Or &H80000
Return cp
End Get
End Property
End Class
Òò±¾ÈËûÓÐѧ¹ýVBËùÒÔÒ²²»ÖªVBÓï·¨ËùÒÔÇëÎÊ·Òë³ÉC#Ó¦¸ÃÊÇʲôÄØ£¿
ÐÅÊÖдµÄ,¿´²»¶®Ò²±ðÌ«½ÏÕæ¶ù~
public class Form1 : Form
{
DYD.DYD DyLikeDrawLib =new DYD.DYD();
string PngPath ;
Bitmap PNG ;
private Form1_Load(object sender,EventArgse){
PngPath = "y:\ͼƬ¿â\0.png" 'PNGͼƬµØÖ·;
PNG = New Bitmap(PngPath);
DyLikeDrawLib.UserKey = "D" //ÊÚȨÂë;
DyLikeDrawLib.DrawBP(Me, PNG, 255) //DrawBP(ÒªÏÔʾµÄÄ¿±ê´°Ìå,PNGͼ,͸Ã÷¶È);
}
...
ÓÐÒ»10*10¾ØÕ󣬳ýÈ¥µÚÒ»¸öµã£¨0£¬0£©ºÍ×îºóÒ»µã£¨9£¬9£©£¬»¹Óа˸öµãΪ1£¬ÆäËû¶¼Îª0£¬ÒªÇóÓöþάÊý×é±íʾ¡£°Ë¸öµãÊÇËæ»úÉú³ÉµÄ£¬±àдÏà¹Ø³ÌÐò±íʾ¾ØÕóËùÓпÉÄÜÇé¿ö¡£
ÕæÐÄÇó½Ì¸÷λ¸ßÊÖ£¬°¥£¡±¾ÈËÌ«²ËÁË£¡ºÇºÇ£¡
......
ÏÖÔÚÎÒÏë¸ù¾ÝtreeviewÉÏÿ¸ö½ÚµãµÄȨÏÞ£¬Ã»ÓÐȨÏ޵Ľڵ㲻Äܱ»Ñ¡ÖУ¬¶øÇҳɻÒÉ«£¬ÔõôʵÏÖ£¬ÔÚÏߵȡ£¡£¡£
Õâ¸ö£¿¡£¡£¡£
òËÆû·¨¡£
ÊÔÊÔÄܲ»ÄܸÄijЩnodeµÄÑÕÉ«£¬¼Ç¼ÏÂÉϴεÄnodeclickÀïµÄnode¡£
Ï´εã»÷µÄÈç¹ ......