1-öncelikle imagelist ekleyin (toolbox’ta components’tedir)
2-imagelist i açıp choose images e tıklayın
3-resimlerinizi ekleyin
4-button unuzu ekleyin 😀
5-gerisini anlatmama gerek var mı bilmiyorum, button properties ine girin
6-imagelist den imagelist inizi seçin
7-olay bu kadar. resimlerin boyutunu değiştirmek için
imagelist okuna tıklayın 16×16 olarak geliyor ilk başta.
Hocam kodda nasıl eklenir bunu gösterir misin?
designer kodlarını istiyorsun.
// ımageList1
//
this.ımageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject(“ımageList1.ImageStream”)));
this.ımageList1.TransparentColor = System.Drawing.Color.Transparent;
this.ımageList1.Images.SetKeyName(0, “12362677411367195232AX11_graph.svg.med.png”);
this.ımageList1.Images.SetKeyName(1, “Calendar-icon.png”);
this.ımageList1.Images.SetKeyName(2, “Chart_1.png”);
//
// button2
//
this.button2.ImageKey = “Calendar-icon.png”;
this.button2.ImageList = this.ımageList1;
//
// button3
//
this.button3.ImageKey = “Chart_1.png”;
this.button3.ImageList = this.ımageList1;
Hocam kodda nasıl eklenir bunu gösterir misin?
designer kodlarını istiyorsun.
// ımageList1
//
this.ımageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject(“ımageList1.ImageStream”)));
this.ımageList1.TransparentColor = System.Drawing.Color.Transparent;
this.ımageList1.Images.SetKeyName(0, “12362677411367195232AX11_graph.svg.med.png”);
this.ımageList1.Images.SetKeyName(1, “Calendar-icon.png”);
this.ımageList1.Images.SetKeyName(2, “Chart_1.png”);
//
// button2
//
this.button2.ImageKey = “Calendar-icon.png”;
this.button2.ImageList = this.ımageList1;
//
// button3
//
this.button3.ImageKey = “Chart_1.png”;
this.button3.ImageList = this.ımageList1;
Çok teşekkür ederim. İyi çalışmalar…
Çok teşekkür ederim. İyi çalışmalar…