• 大小: 66KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-09
  • 语言: C#
  • 标签: c#  二维码  条码  

资源简介

c# 生成二维码, 实例,源代码提供,供新人学习

资源截图

代码片段和文件信息

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


namespace bartest
{
    public partial class Form1 : Form
    {
        public DotNetBarcode BarCode;
        public Form1()
        {
            InitializeComponent();
        }

        private void panel1_Paint(object sender PaintEventArgs e)
        {
            BarCode.WriteBar(this.textBox1.Text 0 0 this.panel1.Size.Width this.panel1.Size.Height e.Graphics);
        }

        private void Form1_Load(object sender EventArgs e)
        {
            BarCode = new DotNetBarcode();
            BarCode.Type = DotNetBarcode.Types.QRCode;
        }

        private void textBox1_TextChanged(object sender EventArgs e)
        {
            //this.panel1.Refresh();
        }

        private void button1_Click(object sender EventArgs e)
        {
            this.panel1.Refresh();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       5369  2011-09-27 17:41  bartest-ok\bartest\bartest.csproj

     文件        496  2011-09-27 17:36  bartest-ok\bartest\bartest.csproj.user

     文件       9216  2014-04-22 22:16  bartest-ok\bartest\bin\Debug\bartest.exe

     文件      32256  2014-04-22 22:16  bartest-ok\bartest\bin\Debug\bartest.pdb

     文件      11608  2014-04-22 22:18  bartest-ok\bartest\bin\Debug\bartest.vshost.exe

     文件        490  2010-03-17 22:39  bartest-ok\bartest\bin\Debug\bartest.vshost.exe.manifest

     文件      62464  2011-09-28 10:14  bartest-ok\bartest\bin\Debug\DotNetBarcode.dll

     文件       1028  2014-04-22 22:16  bartest-ok\bartest\Form1.cs

     文件       3250  2014-04-22 22:16  bartest-ok\bartest\Form1.Designer.cs

     文件       5814  2014-04-22 22:16  bartest-ok\bartest\Form1.resx

     文件        864  2009-09-01 17:32  bartest-ok\bartest\obj\bartest.csproj.FileListAbsolute.txt

     文件       2059  2014-04-22 22:18  bartest-ok\bartest\obj\Debug\bartest.csproj.FileListAbsolute.txt

     文件        774  2009-09-01 17:34  bartest-ok\bartest\obj\Debug\bartest.csproj.GenerateResource.Cache

     文件       9216  2014-04-22 22:16  bartest-ok\bartest\obj\Debug\bartest.exe

     文件        180  2014-04-22 22:16  bartest-ok\bartest\obj\Debug\bartest.Form1.resources

     文件      32256  2014-04-22 22:16  bartest-ok\bartest\obj\Debug\bartest.pdb

     文件        180  2014-04-22 22:16  bartest-ok\bartest\obj\Debug\bartest.Properties.Resources.resources

     文件       5480  2014-04-22 22:16  bartest-ok\bartest\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        390  2014-04-22 22:16  bartest-ok\bartest\obj\Debug\GenerateResource-ResGen.read.1.tlog

     文件        546  2014-04-22 22:16  bartest-ok\bartest\obj\Debug\GenerateResource-ResGen.write.1.tlog

     文件       9554  2014-04-22 22:10  bartest-ok\bartest\obj\Debug\ResolveAssemblyReference.cache

     文件       4608  2011-09-27 17:18  bartest-ok\bartest\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件        466  2009-09-01 17:18  bartest-ok\bartest\Program.cs

     文件       1186  2009-09-01 17:18  bartest-ok\bartest\Properties\AssemblyInfo.cs

     文件       2852  2011-09-27 17:18  bartest-ok\bartest\Properties\Resources.Designer.cs

     文件       5612  2009-09-01 17:18  bartest-ok\bartest\Properties\Resources.resx

     文件       1105  2011-09-27 17:18  bartest-ok\bartest\Properties\Settings.Designer.cs

     文件        249  2009-09-01 17:18  bartest-ok\bartest\Properties\Settings.settings

     文件        911  2011-09-27 17:18  bartest-ok\bartest.sln

    ..A..H.     16896  2014-04-22 22:18  bartest-ok\bartest.suo

............此处省略12个文件信息

评论

共有 条评论