- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
18 Posted Topics
I have a custom combobox as below public class ListViewCombo : ComboBox { ToolStripControlHost listViewHost; ToolStripDropDown dropDown; public ListViewCombo() { ListView lstView = new ListView(); lstView.BorderStyle = BorderStyle.None; listViewHost = new ToolStripControlHost(lstView); dropDown = new ToolStripDropDown(); dropDown.Items.Add(listViewHost); } public ListView TListView { get { return listViewHost.Control as ListView; } } … | |
I have hosted my custom combobox (ComboBoxEx) on datagridview by following the steps in http://msdn.microsoft.com/en-us/library/7tas5c80.aspx. 1. I have created DataGridVIewComboExColumn derrived from DataGridViewColumn 2. Custom cell named "DataGridVIewComboExCell" is created from DataGridViewCell 3. Finally my custom edit control "ComboExEditCtrl" (derived from ComboBoxEx and implements IDataGridViewEditingControl) is created. 4. In ComboExEditCtrl, … | |
How to shrink the client area of a multiline textbox (Windows.Forms.Textbox) from the non-client area? That is I need to draw a focus line in-between verticalscrollbar and the text area of textbox (i.e line to be drawn inside textbox). So I need a space between the client area (typable area) … | |
I have my own ListView class, inheriting from Forms.ListView. When double clicking on the column divider, the columns resize to show the column items in full size. However, for me this doesnt work properly - some words are partially hidden because I am using large font size to draw items. … | |
I am using LIstView control in virtual mode with the property listView.VirtualMode=True and I have subscribed the event listView1_RetrieveVirtualItem(). But this event is being called many times for each item. What is the reason or How can I prevent RetrieveVirtualItem() from executing many times? Please check the below code. public … | |
I have skinned most controls in my winform application, except scrollbar in combobox. Any ideas? | |
In my project, I need a stand alone scroll bar for my text box. So I have created a customized scroll bar. Any idea How to use my customized scroll bar(both Horizontal and Vertical) in the text box instead of built-in scroll bar? | |
Re: You can draw a border by setting the SmoothingMode as AntiAlias. // Set the SmoothingMode property to smooth the line. e.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; | |
In my project, I have created around 12 custom controls(checkbox,radiobutton,editbox,progressbar,scrollbar,button etc...). Custom painting is done in all controls for the extended look and feel using Pen,Brushes,Graphics, GraphicPath,Images,Region and Bitmaps ect. After the use of these objects, I have disposed the objects using the Dispose() method. I am using these controls … | |
Hi All, Is there any event to catch the column visibility change of datagridview? I am using a custom datagridview. I need to update the horizontal scrollbar maximum value whenever the column visibility is changed. Please provide some idea. Thank you. | |
Hi, I have a custom combobox(say comboboxEX) derived from System.Windows.Forms.ComboBox. OnPaint() event I have some background color and styles for the combobox. Every thing works fine. My problem is, I can't set background color when DropDownStyle is "**DropDown**" and **Enabled = false**. But it workes when DropDownStyle is "DropDownList" and … | |
Hi all. I am new in C#. How can i use NETCONNECTINFOSTRUCT Structure.Wht r the related APIs. Can any one help me? Thanks in advance......... | |
Hi, all I am downloading a file using webclient class in C#. Can I calculate the downloading speed using any custom PerformanceCounter.Can any one help me. Thanks in advance.. | |
hi all, How can i zip and unzip a file using SharpZipLib. I am wrking in C#. Can any one help me? Thanks in Advance | |
Re: hi all.. how can i zip and unzip a file using SharpzipLib.Dll. Can any one help me?. Thanks in advance... | |
Re: hi all, I want to catch an error and report to a remote Database in a server.how can i do it? can any one help me.. thankz | |
Hi All I want to catch an error and report it into a Database in a remote server.(C#.NET). Can anyone help me?. thanks in advance.... | |
Re: [QUOTE=RamyMahrous;486117]You should answer with "true" or "false" to avoid exception raising...[/QUOTE] use == instead of = |
The End.