Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. JohnInDC

    How can you know which button was clicked in a dialog?

    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...
  2. JohnInDC

    How can you know which button was clicked in a dialog?

    Sweet! It work great. Thanks again! JT
  3. JohnInDC

    How can you know which button was clicked in a dialog?

    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
  4. JohnInDC

    How can you know which button was clicked in a dialog?

    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...
  5. JohnInDC

    Can you copy menus from one form to another?

    Oh, you're right. That would be great if the changes would propagate.
  6. JohnInDC

    Can you copy menus from one form to another?

    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...
  7. JohnInDC

    Can you copy menus from one form to another?

    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...
  8. JohnInDC

    MSFlexGrid horizontal scrollbar will not show up

    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...
  9. JohnInDC

    MSFlexGrid horizontal scrollbar will not show up

    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
  10. JohnInDC

    MSFlexGrid horizontal scrollbar will not show up

    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...
  11. JohnInDC

    MSFlexGrid horizontal scrollbar will not show up

    Yes, the width of the columns is greater than the width of the grid. It still does not show up. Thanks, JT
  12. JohnInDC

    MSFlexGrid horizontal scrollbar will not show up

    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...
  13. JohnInDC

    MSFlexGrid, on KeyPress go to first row that starts with that letter?

    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...
  14. JohnInDC

    MSFlexGrid, on KeyPress go to first row that starts with that letter?

    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...
  15. JohnInDC

    How do I combine two reports?

    ... Oh, I guess as a _report_ footer it doesn't appear on every page. JT
  16. JohnInDC

    How do I combine two reports?

    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...
  17. JohnInDC

    How do I combine two reports?

    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...
  18. JohnInDC

    How do I combine two reports?

    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...
  19. JohnInDC

    Can I know which form opened the current form?

    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...
  20. JohnInDC

    Can I know which form opened the current form?

    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...

Part and Inventory Search

Back
Top