• 大小: 0.04M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: winform  ComboBox  

资源简介

ComboBox 显示图片

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.IO;
using System.Net;
using System.Text;
using System.Windows.Forms;

namespace ComboBox_Image
{
    public partial class Form1 : Form
    {
        public Form1()
        {

            InitializeComponent();
            //添加项
            comboBox1.Items.Add(new MyItem(“1111111“ this.GetImage(“http://www.baidu.com/img/bdlogo.gif“)));
            comboBox1.Items.Add(new MyItem(“2222222“ this.GetImage(“http://www.baidu.com/img/bdlogo.gif“)));
            comboBox1.Items.Add(new MyItem(“3333333“ this.GetImage(“http://www.baidu.com/img/bdlogo.gif“)));
            comboBox1.Items.Add(new MyItem(“4444444“ th

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-06-23 12:03  ComboBox_Image\
     目录           0  2013-06-23 12:03  ComboBox_Image\bin\
     目录           0  2013-06-23 12:47  ComboBox_Image\bin\Debug\
     文件       10752  2013-06-23 12:47  ComboBox_Image\bin\Debug\ComboBox_Image.exe
     文件       22016  2013-06-23 12:47  ComboBox_Image\bin\Debug\ComboBox_Image.pdb
     文件       21464  2013-06-23 12:03  ComboBox_Image\bin\Debug\ComboBox_Image.vshost.exe
     文件         490  2012-06-02 22:34  ComboBox_Image\bin\Debug\ComboBox_Image.vshost.exe.manifest
     文件        3550  2013-06-23 12:03  ComboBox_Image\ComboBox_Image.csproj
     文件        4530  2013-06-23 12:48  ComboBox_Image\Form1.cs
     文件        2616  2013-06-23 12:40  ComboBox_Image\Form1.Designer.cs
     文件        6015  2013-06-23 12:40  ComboBox_Image\Form1.resx
     目录           0  2013-06-23 12:03  ComboBox_Image\obj\
     目录           0  2013-06-23 12:47  ComboBox_Image\obj\Debug\
     文件         597  2013-06-23 12:47  ComboBox_Image\obj\Debug\ComboBox_Image.csproj.FileListAbsolute.txt
     文件         847  2013-06-23 12:47  ComboBox_Image\obj\Debug\ComboBox_Image.csproj.GenerateResource.Cache
     文件       10752  2013-06-23 12:47  ComboBox_Image\obj\Debug\ComboBox_Image.exe
     文件         180  2013-06-23 12:47  ComboBox_Image\obj\Debug\ComboBox_Image.Form1.resources
     文件       22016  2013-06-23 12:47  ComboBox_Image\obj\Debug\ComboBox_Image.pdb
     文件         180  2013-06-23 12:47  ComboBox_Image\obj\Debug\ComboBox_Image.Properties.Resources.resources
     文件        6052  2013-06-23 12:03  ComboBox_Image\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2013-06-23 12:03  ComboBox_Image\obj\Debug\TempPE\
     文件         475  2013-06-23 12:03  ComboBox_Image\Program.cs
     目录           0  2013-06-23 12:03  ComboBox_Image\Properties\
     文件        1348  2013-06-23 12:03  ComboBox_Image\Properties\AssemblyInfo.cs
     文件        2880  2013-06-23 12:03  ComboBox_Image\Properties\Resources.Designer.cs
     文件        5612  2013-06-23 12:03  ComboBox_Image\Properties\Resources.resx
     文件        1101  2013-06-23 12:03  ComboBox_Image\Properties\Settings.Designer.cs
     文件         249  2013-06-23 12:03  ComboBox_Image\Properties\Settings.settings
     文件         932  2013-06-23 12:03  ComboBox_Image_Demo.sln

评论

共有 条评论