![]() |
| Bilgisayar İşletim sistemleri, bilgisayar hakkında herşey.. |
| Konu Bilgileri | ||
![]() | ||
| Konu Bilgileri : Bilgisayar | |
| | |
| |
| | LinkBack | Seçenekler | Görüntüleme stilleri |
| | |
![]() Profil ayrıntılarını görüntüleyebilmek için kayıtlı kullanıcı olmanız ve üye hesabınızla oturum açmanız gerekmektedir. | Karakterlerin Program Üzerindeki Yer Bilgisi
Karakterlerin Program Üzerindeki Yer Bilgisi ListBox içerisinde fareyle üzerine geldiğiniz karakterin x-y koordinatlarını veren kod Kod: using System; using System.Windows.Forms; namespace ListBoxMouse1 { public class MainForm : System.Windows.Forms.Form { private System.Windows.Forms.Label label1; private System.Windows.Forms.ListBox listBox1; public MainForm() { InitializeComponent(); // now set this particular event handler to function ButtonDown() this.listBox1.MouseDown += new System.Windows.Forms.MouseEventHandler( this.ButtonDown ); } // program entry point public static void Main(string[] args) { Application.Run(new MainForm()); } #region Windows Forms Designer generated code private void InitializeComponent() { this.listBox1 = new System.Windows.Forms.ListBox(); this.label1 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // listBox1 // this.listBox1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)) , ((System.Byte)(224)), ((System.Byte)(192))); this.listBox1.ItemHeight = 16; this.listBox1.Location = new System.Drawing.Point(8, 16); this.listBox1.Name = "listBox1"; this.listBox1.Size = new System.Drawing.Size(240, 196); this.listBox1.TabIndex = 0; // // label1 // this.label1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)) , ((System.Byte)(255)), ((System.Byte)(192))); this.label1.Location = new System.Drawing.Point(16, 224); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(232, 112); this.label1.TabIndex = 1; this.label1.Text = "label1"; // // MainForm // this.AutoScaleBaseSize = new System.Drawing.Size(6, 15); this.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(192)) , ((System.Byte)(192)), ((System.Byte)(0))); this.ClientSize = new System.Drawing.Size(320, 344); this.Controls.Add(this.label1); this.Controls.Add(this.listBox1); this.Name = "MainForm"; this.Text = "MouseDown in a ListBox"; this.Load += new System.EventHandler(this.MainFormLoad); this.ResumeLayout(false); }
__________________ [Foruma üye olmadığınız sürece forum içeriğindeki bağlantıları görüntüleyemezsiniz. Foruma üye olmak için TIKLAYIN!] |
| İçeriği Sosyalleştir |
| Etiketler |
| bilgisi, karakterlerin, program, yer, Üzerindeki |
| Şu anda bu konuyu görüntüleyen etkin kullanıcılar: 1 (0 üye ve 1 konuk) | |
| |
| Forum | Yasal Uyarı |
|
Powered by vBulletin® Version 3.8.11 Copyright ©2000 - 2026, vBulletin Solutions Inc. Site Sahibi: Arthur & Leydihan Root: SOLİDWORKS Grafiker: Jayus Developer: OmerAti Tema Tasarımı: Leydihan | ForumKalbi.Com; 5651 sayılı kanun uyarınca yer sağlayıcı niteliğini haiz bir genel forum sitesidir.
Sitemizde yapılan paylaşımlar, moderasyon ekibimizin onayına dahil olmadan direkt yayınlanmaktadır.
5237 sayılı TCK ve 5651 Sayılı Kanun kapsamında gerekli işlemler yapılır.
Hukuka aykırı bir içerik için [email protected] adresine e-posta gönderebilirsiniz. |
ForumKalbi cebinde, tek dokunuş uzağında