0
A
回答
1
只需將Microsoft Forms文本框控件添加到您的工具箱即可。
alt text http://img262.imageshack.us/img262/2989/28550946.png
0
您需要從您的Program.cs文件中刪除Application.EnableVisualStyles()
電話。
+0
似乎不工作...我需要做額外的事情嗎? '編輯':現在工作....更改是可見的,直到你運行你的應用程序。 – Luiscencio 2010-03-17 21:34:56
1
不尋常的要求。但是,您可以通過選擇性地禁用控制主題來實現。爲您的項目添加一個新類並粘貼下面顯示的代碼。編譯。將新的控件從工具箱的頂部拖放到表單上。
using System;
using System.Windows.Forms;
class SunkenTextBox : TextBox {
protected override void CreateHandle() {
base.CreateHandle();
SetWindowTheme(this.Handle, "", "");
}
[System.Runtime.InteropServices.DllImport("uxtheme.dll")]
private static extern void SetWindowTheme(IntPtr hWnd, string appname, string idlist);
}
相關問題
- 1. 帶有圓邊的邊框塌陷?
- 2. 帶邊框的下拉框
- 3. 更改c#winforms中的文本框的邊框顏色 - 新手
- 4. 帶文本按鈕的WinForms消息框
- 5. Mozilla的CSS錯誤:帶下邊框+邊框塌陷的表格:導致隨機邊框出現和消失
- 6. 文本框下方的HTML邊框
- 7. 帶有邊框的色帶
- 8. 帶邊框的css下拉框
- 9. WinForms文本框更改邊距?
- 10. 讓邊框控制有凹陷的邊框
- 11. React-Native帶邊框的文本輸入?
- 12. 帶漸變和邊框的文本
- 13. 帶邊框的文字
- 14. WinForms的HTML文本框
- 15. WinForms幻影邊框
- 16. 將文本對齊到多邊形的中間,並在SVG中邊框塌陷
- 17. CSS邊框 - 不帶邊角的框
- 18. Internet Explorer邊框缺陷
- 19. stop帶邊框重疊的輸入文本框包含div
- 20. 帶下拉箭頭的GWT文本框
- 21. WinForms文本框中的按鈕
- 22. WinForms文本框中的換行符
- 23. 文本框驗證邊框
- 24. WPF文本框邊框
- 25. 在css中插入文本框的上邊框的文本
- 26. 帶有文本框值的Jquery文本框驗證
- 27. Silverlight帶有黑色邊框的白色文本?
- 28. 在winforms中獲取文本框的自動完成下拉框的句柄
- 29. 帶邊框的圖像邊框1px:0;沒有js
- 30. MVP Winforms和文本框組合框值
是不是默認的?你希望它看起來像這個鏈接中的示例'Form3':http://www.startvbdotnet.com/controls/textbox.aspx – northpole 2010-03-17 21:25:54