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...
OK, I figured out the data binding issue. I bind the subreport to the parent report as a subreport. (Duh!)
However, the satellite report has it's own report header and page header, so just putting it in the footer of the tower report is not quite what I wanted. The tower report is several...
Thanks lupins46.
I followed your directions, and inserted it as a subreport in the footer of the parent report.
Now I need to figure out how to bind the data to the subreport in my Visual Basic code.
Do I instantiate a report object for the second report? Or do I use .OpenSubreport (or...
What is the easiest/best way to combine two reports?
They are independent reports with different formats and pulling data from different tables.
I am assuming there's a way to combine them.
I'd like to either append the second report to the end of the first report or have them in different...
Max & Bob,
Thanks very much for your help.
Your two answers were what I suspected was possible, either passing a value that told the name of the parent or passing an actual reference to the parent.
Max, I still don't see though what we would do with the name of the parent once we knew it...
I have a menu system that drills down by showing a "lower" menu form and hiding the "upper" menu form when the lower menu form opens.
I usually execute a Form.show in the lower menu form's unload method to make the upper menu form reappear when the lower menu form is closed.
Here's my...
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.