2021年3月14日 星期日

[C#]加入消失的 statusbar

 在Toolbox按滑鼠右鍵選擇 Choose items,


把status bar打勾即可......


2021年3月11日 星期四

[C#]TabControl Tab標籤背景色設定

 學起來...加油

C# TabControl Tab標籤背景色設定
https://www.itread01.com/p/614894.html

2021年3月5日 星期五

[C#]How to check the status of CAPS / NUMLOCK status


不錯的文章
How to check the status of CAPS / NUMLOCK status in C#.NET
https://dhandrohit.blogspot.com/2011/03/how-to-check-status-of-caps-numlock.html

[C#]mouse do drag drop



namespace mouse_dragdrop
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void textBox1_MouseMove(object sender, MouseEventArgs e)
        {
            if ((e.Button & MouseButtons.Left) == MouseButtons.Left)//判斷是否按下滑鼠左鍵
            {
                Cursor old_cursor = this.Cursor;
                this.Cursor = new Cursor("arrow_l.cur");
                DragDropEffects dropEffect = textBox1.DoDragDrop(textBox1.Text, DragDropEffects.Copy | DragDropEffects.Link);
                this.Cursor = old_cursor;
            }
         }

        private void textBox2_DragEnter(object sender, DragEventArgs e)
        {
            e.Effect = DragDropEffects.Copy;//設定複製操作
        }

        private void textBox2_DragDrop(object sender, DragEventArgs e)
        {
            textBox2.Text = e.Data.GetData(DataFormats.Text).ToString();
        }
    }
}


不錯的文章

C# 基礎拖拉(drag & drop practicts)處理方式
https://petereagle1.wordpress.com/2013/09/23/c-%E5%9F%BA%E7%A4%8E%E6%8B%96%E6%8B%89drag-drop-practicts%E8%99%95%E7%90%86%E6%96%B9%E5%BC%8F/

2021年3月4日 星期四

[raspberry] cross-compile 建立學習

一知半解......


[進階] 安裝 Raspberry Pi 的 Toolchain       -->試過這個可以運作,但要選 -x64版本
https://www.raspberrypi.com.tw/tag/cross-compiler/

What to install under Ubuntu to cross-compile for a Pi4 running Raspbian "buster"?https://www.raspberrypi.org/forums/viewtopic.php?f=131&t=261900&sid=e30a9d49e20c926d07e0a5eb823fa256

CODE CRAFT: CROSS COMPILING FOR THE RASPBERRY PI
https://hackaday.com/2016/02/03/code-craft-cross-compiling-for-the-raspberry-pi/

ross-compile and deploy Qt 5.12 for Raspberry Pi
https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/


Kernel building
https://www.raspberrypi.org/documentation/linux/kernel/building.md

Compiling Raspberry pi 0 W Kernel
https://www.linkedin.com/pulse/compiling-raspberry-pi-0-w-kernel-athul-pk

2021年3月3日 星期三

[raspberry]GPIO操控

 https://hackmd.io/reU-6s5XTUGacTD_5IMgmA?view

不錯的文章



GPIO Programming: Using the sysfs Interface
https://www.ics.com/blog/gpio-programming-using-sysfs-interface

中斷突進!簡單的 IRQ 程式
https://ithelp.ithome.com.tw/articles/10253026

[C#]模擬鍵盤操作SendKey()

連續 SendKeys.SendWait 比較像鍵盤輸入,會有停頓的效果....

textBox1.Focus();
SendKeys.SendWait("A");
SendKeys.SendWait("{B 10}");
SendKeys.SendWait("+C");

C# 模擬鍵盤操作SendKey(),SendKeys()
https://www.itread01.com/content/1548344359.html