一般點擊 Window的標題列,接著滑鼠移動,視窗自然而然就會跟著動,但是在 Window的 WindowStyle設為 None時,Window的標題列不見囉。
這時該怎麼移動 Window呢?
作法是添加 MouseLeftButtonDown再加 MouseMove 這兩個事件去處理滑鼠移動數及改變 Window的 Top和 Left的值。

膩撐 發表在 痞客邦 留言(1) 人氣()

於WPF視窗程式內加入報表(ReportViewer),再將資料庫的資料輸出成報表顯示出來

最近正在寫WPF的程式,老實說這是我第一次次接觸C#及SQL SERVER,也第一次寫WPF視窗程式
雖然先前有FORM的經驗,但是我也只有點皮毛而已,所以寫這個程式時找了好多資料,跟GOOGLE每天一起抗戰

膩撐 發表在 痞客邦 留言(0) 人氣()

reference: https://www.linuxtopia.org/online_books/centos_linux_guides/centos_linux_step_by_step_guide/s1-q-and-a-root-passwd.html
Forgotten root Password

At the boot loader menu, use the arrow keys to highlight the installation you want to edit and type [A] to enter into append mode.


You are presented with a prompt that looks similar to the following:









grub append> ro root=LABEL=/


Press the Spacebar once to add a blank space, then add the word single to tell GRUB to boot into single-user Linux mode. The result should look like the following:









ro root=LABEL=/ single


Press [Enter] and GRUB will boot single-user Linux mode. After it finishes loading, you will be presented with a shell prompt similar to the following:









sh-2.05b#


You can now change the root password by typing









passwd root


You will be asked to re-type the password for verification. Once you are finished, the password will be changed. You can then reboot by typing reboot at the prompt; then you can log in to root as you normally would.


膩撐 發表在 痞客邦 留言(0) 人氣()

load() Function for PHP - Fetch URL Content
reference: https://www.bin-co.com/php/scripts/load/
* usage:

膩撐 發表在 痞客邦 留言(0) 人氣()

reference:https://www.codingforums.com/showthread.php?t=20922
https://ant4js.blogspot.com/2008/12/function.html
function dispatcher()

膩撐 發表在 痞客邦 留言(0) 人氣()

螞蟻的 JAVASCRIPT
https://ant4js.blogspot.com/
W3schools 各式各樣教學網站 (網路上有山寨中文版,請自行蒐尋)

膩撐 發表在 痞客邦 留言(0) 人氣()

javascript:
String to JSON/MAP (reference:https://jessewth.blogspot.com/2008/10/javascript-string-to-json.html)
string myJSONText = "{ /"name/", /"jessewang/", /"age/", /"18/"}";
var myObject = eval('(' + myJSONtext + ')');

膩撐 發表在 痞客邦 留言(0) 人氣()

隨意寫了一個跟jquery及javascript有關的網頁程式碼
他是一個模擬表單發送及獲取回傳結果的程式
例如:
google.com搜尋引擎

膩撐 發表在 痞客邦 留言(0) 人氣()

As title.
[color]
blue: shell bash instruction

膩撐 發表在 痞客邦 留言(0) 人氣()

Requirement files:
dotProject 2.1.3 https://ge.tt/66hA5oo (updated:12/2, 30days)
 

膩撐 發表在 痞客邦 留言(0) 人氣()

skip installed steps...
[change YUM's mirror to 義守's ftp]
reference: https://apt.nc.hcc.edu.tw/web/student_server_centos/student_server_centos.html#update

膩撐 發表在 痞客邦 留言(0) 人氣()

1
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。