Bob,
Thanks for the link to that discussion. It was very interesting.
I agree with what one person said:
If according to your logic the object should always be there, then throw an exception when it is not. If, however, there is a chance that your program is working correctly and the ID...
So when the user clicks the cancel button, it sets the filename to ""? Because I actually set a default filename, so the filename would have to be reset. Is that what happens?
Well, I'll find that out myself.
Thanks guys!!!
JT
I have a common dialog object, and I'd like to know which button was clicked when the dialog closes.
OK, here's the whole story... I don't want to generate and trap the cancel error in my save as dialog. There must be a better way to do that, and I'm on a quest to find it. No luck so far...
Wow! That is super cool! I had no idea you could do something like that!
Editing the code directly like that opens all kinds of possibilities. Though you're right, I better back everything up before I start playing around with it... I remember when I first discovered that I could manually...
I've made a help menu using Menu Editor in VB 6.0. I would like all of my forms to have the same help menu. Is there a way to copy this menu to my other forms?
I can copy the event handler code that gets executed by the help menu, but since the menu can't be highlighted on the object view of...
In another post, vbvictim wrote, "Apparently adding fixed rows to the grid [did it]. Fixed rows are not scrollable."
So, there are some things that will prevent the scrollbar from not showing up. (It's not my imagination.) However, I don't have any fixed rows in my grid, so it must be...
I've tried setting the ScrollBars value in my code too...
flxFileTextGrid.ScrollBars = 3
... but it does nothing.
I also tried setting it to 1 (flexScrollHorizontal), and the vertical scrollbar disappeared, so I know I coded that statement correctly.
It's a mystery wrapped in... somethin'...
JT
The vertical scroll bar appears and disappears the way it is supposed to when I resize, but the horizontal scrollbar will not appear no matter what size I make the window.
It seems to be acting like the ScrollBars property is set to flexScrollVertical or flexScrollNone, but it's not. It's set...
Ah, you thought this one would be an easy one (or maybe it still is), but I do have the ScrollBars property set to flexScrollBoth, and it is not changed anywhere in my code. But the horizontal scrollbar will not show up no matter how small I resize to.
Actually, I have my own resize...
Thanks guys!
I ended up with something about the same as AMA's solution...
Private Sub Form_KeyPress(intKeyAscii As Integer)
Dim intRowPointer As Integer, boolFound As Boolean
Dim intFirstLetterAscii As Integer, strFirstLetter As String
'if the backspace key is pressed
If...
I would like to know the best way to go to the first row that starts with a certain letter when the corresponding letter is pressed on the keyboard.
I have a MSFlexGrid with many rows, in alphabetical order, and I would like to give the user a "short cut" instead of having to scroll down to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.