custom-controls

    1熱度

    1回答

    爲我的自定義ASP.net服務器控件生成的HTML代碼爲子控件生成name屬性,而不是id屬性。類似這樣的: <span id="GridView2_ctl02_editdis"> <input type="text" name="GridView2$ctl02$editdis$ctl00"/> </span> 自定義控件本身的ID顯然是正確的。 什麼是更奇怪的是,這個ID確實產生

    12熱度

    2回答

    在Visual Studio中,當你創建一個自定義的控制,你得到這個醜陋的小紫齒輪事情你無法控制的,而不是一個自定義的控制的圖標。 那麼,怎樣才能更改我的控制圖標?

    2熱度

    5回答

    我創建了一個自定義控件(從Control繼承的類)。當我把它放在窗體上時,我可以在Visual Studio IDE上使用它。它顯示我一個錯誤,我沒有看到該表單。 錯誤信息是這樣的:La variable'ctrlImagen'noestádeclarada o no seasignónunca。 這是一個Compact Framework應用程序的winform。 我該如何解決這個問題? (它繼

    0熱度

    1回答

    我正在開發和C#應用程序Windows Mobile。我有一個自定義控件,用OnPaint覆蓋來繪製用戶隨指針移動的圖像。我自己的OnPaint方法是這樣的: protected override void OnPaint(PaintEventArgs e) { Graphics gxOff; //Offscreen graphics Brush backBrush;

    1熱度

    1回答

    對於WinForms控件,我想將某些設置移動到子對象中。其中之一是一個包含所有UI字符串外,其他的OpenFileDialog的自定義類: class MyControl: Control { // ... private OpenFileDialog m_dlgOpen = new OpenFileDialog(); public OpenFileDialog D

    0熱度

    2回答

    問題要問你的所有,我一直在負責開發一個應用程序來查看有關測試周期,我們對環境的篩選做數據自定義的WPF控件,產品放置在環境控制,在進行各種自檢時凍結和加熱產品。我的經理希望看到一個隨時間變化的溫度圖作爲x/y圖,但他還想指出測試目前在哪裏有一個小方框,給出更多信息(測試狀態,目前的測試,運行時間等) 所以我在想什麼是我需要做一個自定義的控制能夠顯示該散點圖中,也可以包含我的其他信息框另一個內容控制

    0熱度

    1回答

    如果我有以下的控制: public partial class MyControl : UserControl{ public string MyControlText{ get { return MyTextBox.Text; } set { MyTextBox.Text = value; } } public MyControl(){ .

    1熱度

    1回答

    我希望能夠做一些事情,如: <ui:Tab Title="A nice title"> <TabTemplate> <asp:Literal runat="server" ID="SetMe">With Text or Something</asp:Literal> </TabTemplate> </ui:Tab> 而且還能夠做到: <ui:Tab Title=

    1熱度

    1回答

    我試圖表現出的費用清單,並有在我的列表的底部總: mysql> select title_name, rental_transaction, renter_lname,renter_fname, rental_cost -> from rentals -> where rental_date between '161201' and '161219' -> and D

    9熱度

    5回答

    爲什麼下面的代碼打印「Main」? public class Main { public static void method() { System.out.println("Main"); } public static void main(String[] args) { Main m = new SubMain()