Is there a way to change the FontSize of the ErrorText displayed in DataGridView or a way to override the default behavior and draw it yourself?
I assume that it is using the FontSize of the Row or Cell?
I need the following filter to work in C#.
Here is the working Macro in Excel VBA:
ActiveSheet.Range("$A$1:$XFC$13214").AutoFilter Field:=6, Criteria1:= ">=1/1/2024", Operator:=xlAnd, Criteria2:="<=1/31/2024"
Here is what I thought was the C# equivalent:
excelRange.AutoFilter(Field: 6...
I have a class defined that I am going to be assigning to a PropertyGrid. The class is defined as a normal class with properties, but one of the properties is another class. This worked just fine in Visual Basic, but in C# I get an error on the line that has the inclusion of the other class...
Hi,
I have a standard ListBox where I am trying to implement the MouseDoubleClick event. The event doesn't fire until I have DoubleClicked and then click either on another item or empty space. (Clicking on another item selects the other item, of course). I am also implementing the following...
I have a simple "Lock/UnLock" button. I would like to bring attention to the fact that the DataGridView I am displaying is in one of those two states. The two colors I am thinking of using are either Transparent/Red or Transparent/Green or maybe even Red/Green. Are there any opinions out there...
Hi,
I have a DataGridView where I have designed in the designer at design time. One of my columns is defined as a DataGridViewComboBoxColumn . At run time, I m trying to fill this ComboBox and not having much luck. Below is my latest attempt at doing so, but when I run the code, the ComboBox is...
Hi,
I am trying to get my custom WinForms RichTextBox to be able to use Transparent Background and a BackgroundImage. I got both of those to work from the many examples out there, but when I do, the RichTextBox Text doesn't display correctly at all, even for simple non-rich type of text. Below...
I built a program in VS 2012 (Windows 10 64-bit machine) that detects and reads data from a USB RFID Badge scanner. It worked without installing any additional USB drivers other than what comes with Windows 10. The problem is that it only works on Windows 10 64-bit machines. If I compile and...
I have a Custom WinForms UserControl. I would like to be able to drop other controls, like a CheckBox, on top of it during Design Time so that the dropped Control is now the child of my Custom Control. Any ideas on how to make this happen?
My simple Custom Control is defined as follows:
using...
I am writing a CustomControl. It is inherited from Control. I would like the user to be able to set the background of the control to ANY color including Transparent. When I try and set it "as a user", I get the error: "Control does not support transparent background colors.". Any ideas on how...
Is there a way to create an animated icon to use as the Forms Icon? I thought Icons could be animated, but I have not been able to find an app or way to create one that can be assigned to the WinForms Icon. Has anyone done something like this before?
Hi,
I have this VB.Net Control that I has used in a couple of old projects and would like to use it in my current C#.Net project. I got it all converted and running except for one function. It has a Timer that runs to make it flash. In VB.Net it calls the Timer_Tick in C# it does not. I suspect...
Hi,
I have a DataGrdiView that has rows that are multi-line. I have Wrap turned ON and that works fine. The problem is that when I click on a cell, SelectedCells is not getting set and the SeelctedBaclColor and SelectedForeColor are not being set. I've been all over the settings for the...
I have a Rectangle which is defined as (0,40,475,244) into which I want to draw a 128x128 Image. I am calling DrawImage as follows:
Point pImage = new Point();
pImage.X = (rPanel.Right - rPanel.Left) / 2 - this.BackgroundImage.Size.Width / 2;
pImage.Y = (rPanel.Bottom - rPanel.Top) / 2 -...
I am using Microsoft.Office.Interop.Word to SpellCheck a TextEdit box in my C# application. Works great except that I would like to center the SpellCheck Dialog on the Parent Form that called it. Is there a way to do this?
Here is the C# code that calls it:
public void fSpellCheck(TextBox...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.