Search:

Type: Posts; User: sgrya1

Page 1 of 13 1 2 3 4

Search: Search took 0.38 seconds.

  1. Re: Open Windows Explorer to folder opens Documents folder instead of Folder Path

    That's great.
    Thank you both.
  2. [RESOLVED] Open Windows Explorer to folder opens Documents folder instead of Folder Path

    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...
  3. Re: ComboBox SelectionChangeCommitted + TAB key

    I think I worked it out.

    Dim ComboBoxValueChanged As Boolean = False
    Private Sub ComboBox1_SelectionChangeCommitted(sender As Object, e As EventArgs) Handles...
  4. [RESOLVED] ComboBox SelectionChangeCommitted + TAB key

    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...
  5. Replies
    7
    Views
    1,281

    Re: Disable handler until code complete.

    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.
  6. Replies
    7
    Views
    1,281

    Re: Disable handler until code complete.

    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...
  7. Replies
    7
    Views
    1,281

    Re: Disable handler until code complete.

    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...
  8. Replies
    7
    Views
    1,281

    Disable handler until code complete.

    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...
  9. Replies
    3
    Views
    1,385

    Re: Select DatagridView Row Header.

    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!
  10. Replies
    3
    Views
    1,385

    [RESOLVED] Select DatagridView Row Header.

    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...
  11. Re: [RESOLVED] DataGridView Cell value when using Timer to trigger an event.

    Will do.
  12. Re: [RESOLVED] DataGridView Cell value when using Timer to trigger an event.

    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...
  13. Re: DataGridView Cell value when using Timer to trigger an event.

    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.
  14. [RESOLVED] DataGridView Cell value when using Timer to trigger an event.

    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...
  15. Replies
    12
    Views
    2,085

    Re: [RESOLVED] Select Case Control

    Sorry.183017
  16. Replies
    12
    Views
    2,085

    Re: [RESOLVED] Select Case Control

    Hard to explain but a picture might help. I can't implement what you suggested.
    183016
  17. Replies
    12
    Views
    2,085

    Re: Select Case Control

    That's it. Thank you so much.
    Intellisense doesn't bring up .Name on either of those.
  18. Replies
    12
    Views
    2,085

    Re: Select Case Control

    I get a "Rational operator expected" error on Case Is ComboBox1
  19. Replies
    12
    Views
    2,085

    [RESOLVED] Select Case Control

    Is it possible to Select Case by the control


    Sub ComboBox_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox1.SelectedIndexChanged, ComboBox2.SelectedIndexChanged

    ...
  20. Replies
    16
    Views
    4,594

    Re: [RESOLVED] Highlight Text on TextBox Enter

    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...
  21. Replies
    16
    Views
    4,594

    Re: [RESOLVED] Highlight Text on TextBox Enter

    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...
  22. Replies
    16
    Views
    4,594

    Re: Highlight Text on TextBox Enter

    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...
  23. Replies
    16
    Views
    4,594

    Re: [RESOLVED] Highlight Text on TextBox Enter

    Dammit.
    _Enter doesn't select the text.
    _Click doesn't allow me to select part of the text.
    Is there something inbetween?
  24. Replies
    16
    Views
    4,594

    Re: Highlight Text on TextBox Enter

    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.
  25. Replies
    16
    Views
    4,594

    Re: Highlight Text on TextBox Enter

    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.
  26. Replies
    16
    Views
    4,594

    Re: Highlight Text on TextBox Enter

    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.
  27. Replies
    16
    Views
    4,594

    [RESOLVED] Highlight Text on TextBox Enter

    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,...
  28. Replies
    3
    Views
    1,408

    Re: Code Optimsation

    Ah crap.
    A simple google search. Can I delete this post?

    Dim myComboBox = CType(sender, ComboBox)
    If myComboBox.Items.Contains("Varies") Then
    ...
  29. Replies
    3
    Views
    1,408

    [RESOLVED] Code Optimsation

    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...
  30. Replies
    2
    Views
    873

    Re: ComboBox Behaviour

    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...
  31. Replies
    2
    Views
    873

    [RESOLVED] ComboBox Behaviour

    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...
  32. Replies
    3
    Views
    1,270

    Re: Modal and Modeless dialogs

    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".
  33. Replies
    3
    Views
    1,270

    [RESOLVED] Modal and Modeless dialogs

    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....
  34. Re: [RESOLVED] ComboBox Dropdown vs txt Selection

    OMG. I wish this stuff was as second nature to me as it seems to others.
  35. Re: ComboBox Dropdown vs txt Selection

    An alternative might be doubleclick, which doesn't seem to want to work.
  36. [RESOLVED] ComboBox Dropdown vs txt Selection

    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.
  37. Re: [RESOLVED] Events triggered when typing in ComboBox dropdown list

    I worked it out. I selected another control before loading the form, removing it's focus which stopped SelectedIndexChanged from being triggered again.
  38. Re: [RESOLVED] Events triggered when typing in ComboBox dropdown list

    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...
  39. Re: Events triggered when typing in ComboBox dropdown list

    That's brilliant. Thank you so much.
  40. [RESOLVED] Events triggered when typing in ComboBox dropdown list

    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...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width