看板
[ C_Sharp ]
討論串[問題]用C#寫筆記本的問題
共 6 篇文章
內容預覽:
歹勢我剛發現.NET2.0(vs2005)後就有提供了 囧. int line = textBox1.GetLineFromCharIndex(textBox1.SelectionStart);. int col = textBox1.GetFirstCharIndexOfCurrentLine()
(還有5個字)
內容預覽:
用 string openFile = null;. 來記錄現在開啟的檔案路徑,. new file 時 => openFile = null;. save或open file時 => openFile = 存檔或開檔的路徑. 按下save時, openFile==null => 跳出另存. els
(還有782個字)
內容預覽:
寫檔的時候還是用Create的方式去寫檔就可以了 通常整個文字內容有發生過changed的event之後都算變過。 開啟檔案的dialog可以查一下他的class詳細內容。 可以自己去算出來才對,畢竟你拿的到整份的文章內容了。 沒看到詳細情形不好猜,不過簡單的解決方式可以把你的文章內文跟捲軸. 放在
(還有69個字)