No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
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 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... |
|
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 DataGridViewComboBoxColumn blank. How can … |
|
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... [CODE] iIndex = dgvRecipe.Rows.GetNextRow(-1, DataGridViewElementStates.Selected) While … |
|
I have the folloing code using OleDB to manipulate an Access database: [CODE] Dim adpMasterRecipe As OleDb.OleDbDataAdapter Dim dsMasterRecipe As New System.Data.DataSet adpMasterRecipe = New OleDb.OleDbDataAdapter("SELECT * FROM tblMasterRecipe WHERE MasterID = @MasterID", My.Settings.RecipesConnectionString) adpMasterRecipe.SelectCommand.Parameters.AddWithValue("@MasterID", iRecipeNumber) adpMasterRecipe.Fill(dsMasterRecipe) If dsMasterRecipe.Tables(0).Rows.Count > 0 Then dsMasterRecipe.Tables(0).Rows(0).Delete() dsMasterRecipe.AcceptChanges() adpMasterRecipe.Update(dsMasterRecipe) End If [/CODE] The problem … |
|
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 … |
|
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 … |
|
I have the following three tables: ClassHeader ClassID Major TeacherClasses TeacherID ClassID StudentClasses TeacherID Major I want to select all TeacherClasses where the a given Major = ClassHeader.Major |
|
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? |