Search results for query: *

  • Users: tim8w
  • Content: Threads
  • Order by date
  1. T

    Resolved Changing the FontSize of the DataGridView ErrorText

    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?
  2. T

    Resolved Excel Interop Autofilter Range

    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...
  3. T

    Question Can I call Business Objects from C# WinForms?

    My company uses BusinessObjects on top of SQL Server. Is there a way I can call BusinessObject functions from within WinForms C#.Net?
  4. T

    Resolved Defining a new class that contains another class

    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...
  5. T

    Question Autocomplete Listbox

    Is there a way to add Autocomplete like ComboBox has to the ListBox control?
  6. T

    Question Is there a way to detect when an application is being dragged over my application?

    Hi, I want to track when any application is being moved over (dragged over) the top of my application. Is this information available?
  7. T

    Resolved MouseDoubleClick not firing until I click a third time somewhere else

    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...
  8. T

    Question Background Colors of Controls

    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...
  9. T

    Question Adding data to a DataGridViewComboBoxColumn defined at design time

    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...
  10. T

    Question RichTextBox with BackgroundImage. How do I get the Text to display?

    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...
  11. T

    Question USB HID Driver problem?

    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...
  12. T

    Resolved Adding Controls to Custom Controls during Design Time

    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...
  13. T

    Resolved CustomControl Transparent BackGround

    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...
  14. T

    Question Creating a real Animated Icon for use as the WinForm's Icon

    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?
  15. T

    Resolved Converting a VB.Net Control into a C# Control

    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...
  16. T

    Question Detecting nearby program and snapping your application to it

    Is there a way as I'm dragging my WinForms program around the desktop, to detect another program within a certain amount of pixels and snap to it?
  17. T

    Resolved DataGridView SelectedCells not getting set.

    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...
  18. T

    Resolved How do you get MainMenu or ContextMenu to show up in the VS ToolBox?

    I can get this to happen in code, but how do I get it to show up in the VisualStudios Toolbox?
  19. T

    Resolved Help with DrawImage(Image image, int x, int y)

    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 -...
  20. T

    Resolved Microsoft.Office.Interop.Word setting SpellChecking Window Size and Location

    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...
Back
Top Bottom