using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;namespace WindowsFormsApplication15
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
} private void listBox1_DrawItem(object sender, DrawItemEventArgs e)
{
MessageBox.Show("hello");
}
}
}
运行后没有显示信息框,不知道是哪里写错了?ListBox
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;namespace WindowsFormsApplication15
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
} private void listBox1_DrawItem(object sender, DrawItemEventArgs e)
{
MessageBox.Show("hello");
}
}
}
运行后没有显示信息框,不知道是哪里写错了?ListBox
解决方案 »
- 在三层架构的DAL层,如何向ui层弹出出错信息窗口?
- 如何将winform中 DateTimePicker 控件中的日期部分屏蔽掉?就是不允许日期操作了。谢谢
- 100分问题
- C#绘制WAV波形图
- C# 中类和类之间当一个类的实例是另外一个类的属性的时候算类的嵌套吗
- 问关于数据库的一点小问题
- 有谁能提供Arcgis sever gps例子供研究一下。
- 请问用C#去操作word文档, 怎么能删除word文档中 某一个书签 代表的一段内容呢? 找了几天了,还没找到好的方法,我粘些代码,向大家请教
- 两个字段相减语句怎么写?
- 有没有从Delphi转到c#的朋友?感觉起步好难,请谈谈你们的看法
- 初学者做form不知道如何做查询
- 问大侠看看这样的编码结构数据库怎么设计呢?打算用C#的TREEVIEW来调用
不是每个事件你注册了 就会调用你的事件处理程序 有些事件需要你设置是否激发