问题描述
usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Drawing;usingSystem.Data;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Security.Cryptography;namespace波形显示{publicpartialclassUserControl1:UserControl{publicUserControl1(){InitializeComponent();for(inti=0;;i++){RNGCryptoServiceProvidercsp=newRNGCryptoServiceProvider();byte[]byteCsp=newbyte[1];csp.GetBytes(byteCsp);statusChart1.Value=Convert.ToInt32(BitConverter.ToString(byteCsp),16);}}privatevoidstatusChart1_Load(objectsender,EventArgse){}}}
解决方案
时间: 2024-11-08 19:25:38