Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~5K People Reached
Favorite Forums
Member Avatar for NidhiSree

I have created a custom control like below. public partial class TextBoxEx : TextBox { public TextBoxEx() { InitializeComponent(); Font = Utility.normalFont; } protected override void OnPaint(PaintEventArgs pe) { base.OnPaint(pe); } } //A utility class to initialize font. class Utility { internal static Font normalFont = new Font("Arial", 18); } …

Member Avatar for Ketsuekiame
0
1K
Member Avatar for NidhiSree

According to MSDN: Control.Disposing Property Gets a value indicating whether the base Control class is in the process of disposing. But when I checked, Disposing property of the control is always false (inside the Dispose() method itself). When will this Disposing property become true?

Member Avatar for NidhiSree
0
136
Member Avatar for NidhiSree

What is the difference between try { //Some code } catch { } and try { //Some code } catch(Exception) { }

Member Avatar for Ketsuekiame
0
244
Member Avatar for NidhiSree

Hi All, I have a TextBox in my Form and I am drawing a string into it as below. Font myFont = new Font("Arial",18F,FontStyle.Regular,GraphicsUnit.Point,128); Graphics g = myTextBox.CreateGraphics(); Brush b = new SolidBrush(Color.Red); g.DrawString("Item Drawn with DrawString",myFont ,b,new PointF(1,1)); The string displayed in the TextBox. Then I tried below code …

Member Avatar for Momerath
0
234
Member Avatar for NidhiSree

I have created a custom combo box(Text box, button and List View). While typing in the text box, cursor disappears. How can I disable "Hiding cursor while typing" in my application. I goggled and found that it is the system behavior called SPI_SETMOUSEVANISH. It can be turned off but it …

Member Avatar for NidhiSree
0
1K
Member Avatar for NidhiSree

Hi All, Can I show input cursor in a non-focused RichTextBox? In my project, I have a RichTextBox and a ListView control. The focus should be on ListView control. I could handle the KeyPress and KeyDown events of ListView and re-directed to RichTextBox to enable typing. But how can I …

Member Avatar for Ketsuekiame
0
153
Member Avatar for NidhiSree

Hi, I am trying to customize default windows scrollbar in combobox like below. public partial class ComboEx : ComboBox { internal ScrollbarEx vScrollBar; NativeListWindow listControl; public ComboEx() { InitializeComponent(); DropDownHeight = 100; vScrollBar = new ScrollbarEx(); } protected override void OnPaint(PaintEventArgs pe) { base.OnPaint(pe); } protected override void OnHandleCreated(EventArgs e) …

Member Avatar for NidhiSree
0
1K
Member Avatar for NidhiSree

Hi, I have a custom combobox (say ComboExt). I need to host this control in datagridview. In MSDN (http://msdn.microsoft.com/en-us/library/7tas5c80.aspx), they are saying, to host custom controls, my own column types with cells should be created. That is, I need to create a custom ComboExtColumn derived from DataGridViewColumn and all properties …

Member Avatar for NidhiSree
0
375
Member Avatar for NidhiSree

I have a custom ObjectCollection class in my custom control and a public property to access this collection. //My custom Property [Editor("System.Windows.Forms.Design.StringCollectionEditor",typeof(UITypeEditor))] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public ObjectCollection Items { get { return itemCollection; } } //My custom collection class [ListBindable(false)] public class ObjectCollection : IList, ICollection, IEnumerable { //code } However, the …

Member Avatar for TnTinMN
0
283