C 實現簡單文字編輯器

2022-09-26 03:03:07 字數 1199 閱讀 7362

建立乙個窗體檔案,實現對檔案的編輯儲存和對txt檔案的開啟

介面設計:

程式源**:

using system;

using system.collections.generic;

using system.componentmodel;

using system.data;

using system.drawing;

using system.linq;

using system.text;

using system.threading.tasks;

using system.windows.forms;

namespace txt_editapp

//open file 選單選項

private void openfiletoolstripmenuitem_click(object sender, eventargs e)

}//s**e file 選單選項

private void s**efiletoolstripmenuitem_click(object sender, eventargs e)

}//exit file 選單選項

private void exittoolstripmenuitem_click(object sender, eventargs e)

//about 選單選項

private void about程式設計客棧toolstripmenuitem_click(object sender, eventargs e)}}

using system;

using system.collec程式設計客棧tions.generic;

using systewww.cppcns.comm.componentmodel;

using system.data;

using system.drawing;

using system程式設計客棧.linq;

using system.text;

using system.threading.tasks;

using system.windows.forms;

namespace txt_editapp

private void label2_click(object sender, eventargs e)}}

執行截圖

本文位址:

文字編輯器

include stdio.h include string.h include stdlib.h define len sizeof struct linetable struct linetable main 輸出並加入行號 display struct linetable head else ...

文字編輯器

text editer文字編輯器 data ref container tec type ref to cl gui custom container.data ref edit type ref to cl gui textedit.data text line 85 work area it t...

文字編輯器

uedit notepad mybase 筆記類工具 sublime 列模式操作很牛叉 sublime 快捷鍵 常用類操作模式 1.選擇編輯的行,ctrl l,就可以操作了。2.按住shiftr 鍵盤,滑鼠右鍵選擇欲選擇內容。ctrl l 選擇整行 按住 繼續選擇下行 ctrl kk 從游標處刪除至...