ICode9

精准搜索请尝试: 精确搜索
  • C#的委托2022-08-17 14:01:36

    1.委托概念:委托是一个类,使用delegate关键字修饰。它定义了方法的类型,使得可以将方法当作另一个方法的参数来进行传递。 1 public delegate void xxx(xxx); 2.委托可以将多个方法绑定到同一个委托变量,当调用此变量,可以依次调用所有绑定的方法。 3.事件概念:使用event关键字,声明一

  • TaskScheduler.UnobservedTaskException event handler never being triggered2022-07-02 15:03:20

    TaskScheduler.UnobservedTaskException event handler never being triggered 问题 I'm reading through a book about the C# Task Parallel Library and have the following example but the TaskScheduler.UnobservedTaskException handler is never being triggered.

  • C# winform托盘功能实现2022-06-17 11:03:51

    [C#]winform窗口托盘   [C#]winform窗口托盘    winform托盘的使用主要用到了两个控件notifyIcon和contextMenuStrip    (一)notifyIcon的使用    1)先在工具箱中拖到主窗体中,直接在属性icon中选择一个ICO图标作为托盘图标,并把主窗口的属性ShowInTaskbar是否出现在

  • c#可视化,日期时间、计时器、计时器控制图片切换2022-05-31 21:33:08

    日期时间 获取当前时间,使用工具箱里的组件Timer属性 在加载事件中写入 //启动计时器 this.timer1.Start(); 之后在文本框Label或在菜单栏的StatusStrip菜单列列表双击进入     Timer对应的事件代码:  this.toolStripStatusLabel1.Text = DateTime.Now.ToString("yyy

  • C#-Win From开发-事件代码编写2022-05-18 10:33:37

    C#-事件代码编写 控件事件生成 事件控件生成,在双击事件的时候,VS会自动生成初始化代码。并生成以你设定控件Name属性的名称,自动生成一个方法。 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using S

  • 单例-WPF2022-04-11 14:32:41

    1.新建WPF项目,然后引用Microsoft.VisualBasic  2.删除原生的App.xaml,建立WpfApp类,并使该类继承自Application,在该类中实现WPF MainWindow 窗体的创建工作 public class WpfApp:System.Windows.Application { private Action<string> SetTime; private T

  • 62-1000 asp.net 页面回发处理和page对象2021-12-10 17:04:17

        10000太远了,还是近点的用1000,或者100的        后端C#代码  using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Asp.NetDemo2 { public partial class D

  • Winform打开文件夹、修改路径、保存数据为txt2021-11-03 14:59:27

    1、点击label控件,可以跳转到相应的文件夹 1.1 使用System.Diagnostics.Process.Start()函数,这个函数有几个重载可以直接打开exe程序、文件、图片等等,可自行操作体会。 private void labelOpenPath_Click(object sender, EventArgs e) { string p

  • 高斯分布概念学习和C#自定义控件2021-10-05 09:04:18

    正态分布(Normal distribution),也称“常态分布”,又名高斯分布(Gaussian distribution); 是一个在数学、物理及工程等领域都非常重要的概率分布, 正态曲线呈钟型,两头低,中间高,左右对称因其曲线呈钟形,因此人们又经常称之为钟形曲线; 若随机变量X服从一个数学期望为μ、方差为σ2的正态分布

  • 主动调用控件事件2021-09-22 20:03:28

    总是感觉和goto一样,有可能会出现死循环,但耐不住他方便(耦合upup 例如btGetData的一个click事件叫btGetData_Click(object sender,EvebtArg e) 这里sender是指调用事件的控件,e是参数 想要调用可以这样 btGetData_Click(this.btGetData,EventArgs.Empty); 如果出现像dev控件一样,Event

  • asp.net实现在线人数及访问量总计2021-09-20 18:34:40

    asp实现在线人数的总计,每登录一个,在线人数就加一,访问量也是,不过访问量最后要保存起来,下次登录读取且加一,就是访问量实时更新。 1.首先在项目中右键点击添加,选择新建项,找到全局应用程序类,如果你找到这个类,看看你项目里面是否已经存在了,如果存在项目里你是找不到的。 2.在全局

  • webform 页面传值的方法总结2021-09-16 20:35:34

    https://www.cnblogs.com/duanweishi/p/4802276.html   页面传值是学习asp.net初期都会面临的一个问题,总的来说有页面传值、存储对象传值、ajax、类、model、表单等。但是一般来说,常用的较简单有QueryString,Session,Cookies,Application,Server.Transfer。     一、QueryStrin

  • C#-WebForm-Request、Response、QueryString2021-09-16 20:34:37

    C#-WebForm-Request、Response、QueryString https://www.cnblogs.com/qq450867541/p/6240962.html 知识点: Request - 获取请求对象   专门用来接传递过来的值   Request["key"](李献策lxc)   1、获取地址栏传递过来的值 get   2、获取表单传递过来的参数值 post   例:Tex

  • C# 记事本 课堂练习2021-07-06 01:32:45

    using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 :

  • 五分钟自制计算器2021-06-07 18:52:39

    基于C#的自制计算器需求功能介绍步骤实现页面需求我们在生活中,或多或少都使用过计算器。那么我们是否可以自己制作一款计算器呢,答案当然是可以的。功能介绍我们需要将0~9这10个数字的按键,还需要四则运算需要的加、减、乘、除等,具体界面如下。步骤打开VS,创建Windows窗体应用选择项目

  • 计应191 西 翁余孟2021-04-11 14:32:47

              comboBox1.SelectedIndex = 0;              textBox1.Text = "这里输入第一个数";              textBox2.Text = "这里输入第二个数";              textBox3.Text = "这里显示计算结果";       

  • 计算器个人开发流程代码2021-04-11 12:32:10

    using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms; namespace jisuangqi{         public partial  class Form1 : Form     {

  • vs2015 dynamicweb4-72021-04-03 11:01:04

    webform1.aspx <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="dynamicweb4_7.WebForm1" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml">

  • 百度网盘的登陆2021-03-10 13:35:03

    登陆页面的具体细节还没有完善。 二维码移动: bool isMoveLight; public const int MOVE_STEP = 10; private void P1_MouseEnter(object sender, EventArgs e) { timer1.Enabled = true; isMoveLight = true; }

  • System.Web.UI.Page 详解(转)2020-12-21 22:04:51

    复制代码 using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partia

  • 事件 event2020-12-06 09:02:31

    1 using System; 2 3 namespace ConsoleApp1 4 { 5 class Program 6 { 7 static void Main(string[] args) 8 { 9 Stock stock = new Stock("cmp"); 10 stock.Price = 27.10M; 11

  • 登陆界面各功能设计2020-12-01 20:33:51

    private void button3_Click_1(object sender, EventArgs e) { 注册界面 mylogin = new 注册界面(); mylogin.Show(); } private void skinButton1_Click_3(object sender, EventArgs e) { System.Diagnostics.

  • Button 类2020-11-26 14:02:26

    Button 类 来源: https://docs.microsoft.com/zh-cn/dotnet/api/system.windows.forms.button?redirectedfrom=MSDN&view=net-5.0 定义 命名空间:System.Windows.Forms程序集:System.Windows.Forms.dll 表示 Windows 按钮控件。 C# public class Button : System.Windows.For

  • C#设计一个简单的计算器,实现两个数的加,减,乘,除,求幂等计算,运行效果如下图所示:2020-10-26 09:34:23

    1.题目要求如下: C#设计一个简单的计算器,实现两个数的加,减,乘,除,求幂等计算,运行效果如下图所示:    2.这边需要用到的是VS2019下的C#Windows窗体 3.来吧,展示: using System; using System.Windows.Forms; namespace Calculator { public partial class Form1 : Form {

  • C#倒计时小程序2020-10-09 09:03:59

    闲的无聊,做了一个放假下班倒计时小程序。 form1代码,主窗口。 public string time; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e)//窗体加载事件 { timer

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有