Search results for query: *

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

    Question Parsing/Interpreting a small defined set of user commands

    Not sure really how to explain what I'm looking for help on. But here goes: I have a small set of commands that I want to let my user select and then I will create a function to implement it. For instance, in our software, we have three main loops. One for the Channel being tested, One for...
  2. T

    Question Checking in/out code on two different PCs

    Is there a way to check in/out code in two locations and keep the code base the same in both locations? Thanks, Tim
  3. T

    Question How do I add a multi-line TextBox to a PropertyGrid?

    I have a standard PropertyGrid and I want to add a filed that will handle a multi-line TextBox. Any ideas? Thanks, Tim
  4. T

    Question CollectionForm Add/Remove Buttons

    I have subclassed the CollectionEditor to gain access to the CollectionForm and want to be able to know when the Add or Remove button has been clicked. Here's my subclass: Imports System.ComponentModel.Design Public Class MyCollectionEditor Inherits CollectionEditor...
  5. T

    Question PropertyGrid Item Collection changed?

    Is there anyway to determine when an item in a Collection that is part of a PropertyGrid has changed? For a normal item in a PropertyGrid, PropertyValueChanged is triggered. But Nothing seems to be triggered when the PropertyGrid item is a collection. I want to know when something...
  6. T

    Question PropertyGrid PropertyValueChanged SetValue not working in .NET 4.0

    I have seen great examples here and had great hopes that it would work for our application. I need to catch a change in the GridItem and revert it under certain conditions. We are using VB.Net 2012 with .NET Framework 4.0. All the examples I have been able to find use the following code: Dim...
  7. T

    Relax or turn off constraints in your dataset

    I have created a DataSet in VB.Net. The Table it is connected to has a PrimaryKey. All works fine as long as my SQL Query is a Standard one like SELECT * from.... I want to use a GROUP BY but when I do I get "ConstraintException was unhandled" with the suggestion that I relax or turn off...
  8. T

    Question Getting the outline of a region...

    I have a custom-shaped form created by setting the Region to an image. I want to be able to highlight the edge of the form when it has focus. To do this I believe I need to get the outline of the form and convert it to a path so I can draw a two-pixel highlight around the edge of the form. (1)...
  9. T

    Question RegularExpression to convert from Fraction to decimal

    I need a RegularExpression that can convert a string from a fraction or decimal like "1/2" or "0.5" to a decimal "0.5". It needs to handle both cases. Input can be either fractional or decimal, output must be decimal...
  10. T

    Question DataGridViewComboBoxColumn setting SelectedIndex

    I have a DataGridViewComboBoxColumn that I allow the user to add new items to by typing in the ComboBox and hitting the 'Enter' key. That triggers CellValidating and I do the adding there by the following: cmbColumn.Items.Add(e.FormattedValue) All this works well, except that it leaves the...
  11. T

    Question DataGridView Deleting Selected rows...

    This is such a basic question, I'm almost embarassed to ask it. How do I loop through seleted rows in a DataGridView and remove the rows? I've tried this, but it doesn't work. After one row is removed, the index is all screwed up... iIndex = dgvRecipe.Rows.GetNextRow(-1...
  12. T

    Question Physically deleting row in OleDB

    I have the folloing code using OleDB to manipulate an Access database: Dim adpMasterRecipe As OleDb.OleDbDataAdapter Dim dsMasterRecipe As New System.Data.DataSet adpMasterRecipe = New OleDb.OleDbDataAdapter("SELECT * FROM tblMasterRecipe WHERE MasterID = @MasterID"...
  13. T

    Question RichTextBox Formatting

    I have a RichTextBox. I process all the formatting and everything works fine. There is an exception. When I have selected text that have two states of formatting in it, the SelectionFont member is set to Nothing. I notice that WordPad recognizes this condition and kindof greys out the affected...
  14. T

    RichTextBox.SelectAll() SelectionFont not set?

    I have a RichTextBox where part of the RichTextBox is Bold and the rest is not. If I do a SelectAll, the SelectionFont member doesn't get set. Anyone know why? In WordPad, with the identical Font and bolding set on part of the text, the SelectionFont appears to get set to the first font it...
  15. T

    Question Modeless Dialog Active when Modal Dialog Displayed

    Is there a way to launch a Modeless Dialog that stays active even when a Modal Dialog is launched? Can I put the Modeless Dialog in a seperate Thread or something like that?
  16. T

    Question Updating Database from DataGridView

    I have a DataGridView that was created using the wizard. I made a change to one of the column's data and I want to save the changes back to the database. Here's the simple code: Me.WHVMastersUniverseTableAdapter.MastersOnHold(Me.PreManfDataSet.WHVMastersUniverse) dgvMasters.AutoResizeColumns()...
Back
Top