Search:
Type: Posts; User: sgrya1
Search:
Search took 0.38 seconds.
-
That's great.
Thank you both.
-
Hi,
When I have spaces and/or unusual characters in a folder path the following code opens the user's Documents folder instead of the intended path.
Is there any way to fix it?
Dim...
-
I think I worked it out.
Dim ComboBoxValueChanged As Boolean = False
Private Sub ComboBox1_SelectionChangeCommitted(sender As Object, e As EventArgs) Handles...
-
Hi,
I want to handle the event only when a combox's value is committed.
Not when browsing through items using the arrow keys. (SelectedIndexChanged / SelectedValueChanged)
The problem is that...
-
I wonder if has something to do with the program I am plugging into (AutoCAD).
I'm trying to think of a way to see if it is actually aborting code a double click.
-
I've just worked out why I thought I had tried this.
My problem is now with combobox .enter or .click.
Temporarily disabling the control while code executes boots me out of it, so I can't go...
-
Disabling the control.
So I'm 100% sure I've tried that before but it seems to be working fine now. Can't think of what the problem was and why I switched to such a messy alternative. And one...
-
I don't know how to put a title to this.
I made a plugin a for a program that has a Datagridview. Lengthy code runs when selecting cells.
When I click between cells a little faster than the...
-
You are right. It does work.
For some reason I wasn't thinking CellEnter was an event triggered by clicking the row header.
In that event I had something that was taking the focus away.
Thank you!
-
I want to delete a datagridview row by selecting the header row and hitting the Delete key.
Starting with another textbox control having focus, then clicking a datagridview row header (which...
-
-
jmcilhinney,
This is extremely helpful.
It perfectly explains what EditingControlShowing is (something that I added but didn't understand), and the confusing behaviour I've struggled with.
And...
-
After quite some time of messing around, and a minute after I hit post, I realised I just needed to add DataGridView.EndEdit.
Maybe it was writing the problem down that made me think.
-
When entering text into a datagridview I am using a timer that ticks after the user stops typing.
The issue is the cell's value it is reporting as the old value. It's not being 'validated'. Not sure...
-
-
Hard to explain but a picture might help. I can't implement what you suggested.
183016
-
That's it. Thank you so much.
Intellisense doesn't bring up .Name on either of those.
-
I get a "Rational operator expected" error on Case Is ComboBox1
-
Is it possible to Select Case by the control
Sub ComboBox_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox1.SelectedIndexChanged, ComboBox2.SelectedIndexChanged
...
-
My app is a plugin to a program that is primrarily driven using a mouse.
I used a custom 'NumberBox' control that someone had created on a previous Visual Basic project.
I remember it being quite...
-
Thank you all.
I basically want the textbox to behave as a number cell. Like Excel or a datagridview.
But a textbox is designed for text.
I think I figured out a workaround.
Dim...
-
Thanks. I didn't realise I could do that.
And sorry, it's not problem related to AutoCAD. I should have tested this with a fresh VS project before suggesting that.
I want to highlight the text...
-
Dammit.
_Enter doesn't select the text.
_Click doesn't allow me to select part of the text.
Is there something inbetween?
-
I've realised that Enter is not the right event for the selection of text, for some reason.
Needs to be Click or something else.
-
Maybe it's a bug with the application I'm using it under (AutoCAD).
I created a new textbox and the same problem exists.
Wierd, it used to work.
-
I get a breakpoint on the line so it is being handled.
I commented out the .SelectAll because was that that wasn't working either.
-
I'm certain this was working at some stage. Wondering why it isn't now.
Private Sub EnterTextBox(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtNoBars.Enter,...
-
Ah crap.
A simple google search. Can I delete this post?
Dim myComboBox = CType(sender, ComboBox)
If myComboBox.Items.Contains("Varies") Then
...
-
Can someone suggest a way of optimising this code?
I have multiple cases of this and it's annoying to add or update.
I don't care what the sender is. I just want to delete "Varies" from the...
-
Hi jmcilhinney,
I use both.
Your reply made me understand that my question was about two problems that were specific to each type of combobox you mention.
Dropdown I should be simply adding...
-
I have a comboBox with items that are added or deleted at runtime.
Sometimes I need the combobox to display "Varies" where no specific selection applies.
A normal comboBox highlights the text...
-
Wow. Thank you both.
That really does explain everything. I have no more questions.
And sorry. "FormTest" was a typo and should have been "FormModal".
-
A painful set of questions but I’m hoping someone can answer them.
This is in AutoCAD so maybe it behaves differently.
I’m trying to understand if modal and modeless created forms are duplicated....
-
OMG. I wish this stuff was as second nature to me as it seems to others.
-
An alternative might be doubleclick, which doesn't seem to want to work.
-
Hi,
Are there events that distinguishing between clicking the dropdown component and clicking in the text area of a combobox?
I don't want the something triggered if the dropdown is clicked.
-
I worked it out. I selected another control before loading the form, removing it's focus which stopped SelectedIndexChanged from being triggered again.
-
Oh no, it's not quite resolved. Timer_Tick loads a modal form, which for some reason triggers SelectedIndexChanged, restarting the timer and causing it to tick again.
Is there anything I could do to...
-
That's brilliant. Thank you so much.
-
Hi,
I need code to be triggered by selecting a ComboBox entry with the mouse, or by typing the entry in.
When typing it in, the SelectedIndexChanged event gets triggered multiple times, which...
|
Click Here to Expand Forum to Full Width
|