Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Recent content by Nojj

  1. Nojj

    How do I focus on a cell in a scrolling FlexGrid ?

    Thanks a lot JohnWM. That does the trick!
  2. Nojj

    How do I focus on a cell in a scrolling FlexGrid ?

    I have an MSFlexGrid with lots of rows so it has a vertical scroll-bar. How do I set the focus on a cell which is off the screen (i.e. force the flexgrid to scroll down until it shows)?
  3. Nojj

    Greying-out contents of frames

    The error occurs if the SysInfo control is inside or outside the frame. I added this line to avoid it. If TypeOf objCtl Is SysInfo Then . . Everything works fine now. Thanks for your help.
  4. Nojj

    Greying-out contents of frames

    Here's the code I tried which works OK for most controls but it fails when I put a SysInfo control on the form. Why? Dim objCtl As Object For Each objCtl In Controls If objCtl.Container.Name = MyFrame Then objCtl.Enabled = False End If Next
  5. Nojj

    Greying-out contents of frames

    Thanks CajunCenturion. That sounds like a great idea. I'll give it a try.
  6. Nojj

    Greying-out contents of frames

    When you disable a frame by setting its enable property to false, the contents of the frame are disabled but not greyed out. Is there a way to grey them out without writing code to individually enable/disable every control in the frame?
  7. Nojj

    How do you pass the name of a type member to a function?

    Choice of ByRef or ByVal won't help here. I want the item to the right of the dot, which I have called "whatever" to be determined by a variable that is passed to the function. I don't want to change the value of the user-defined type that called the function. YourData(5).whatever =...
  8. Nojj

    How do you pass the name of a type member to a function?

    I suspect this is a real tough one - it's driving me mad. I'm trying to write a function which receives a user-defined type member name (not its value). How do you pass the name of a type member to a function? Obviously you can pass it as a string but then how do you use it? This should make...
  9. Nojj

    How do you pass the name of a type member to a function?

    Oops : Just realised the example I gave has an easy solution. What I really need to do is something like this: x = MyFunction("x2") Public Function MyFunction (whatever) Dim Yourdata as MyType YourData.whatever = 1.23 ' must do the same as YourData.x2 = 1.23 . . Believe me, I have...
  10. Nojj

    How do you pass the name of a type member to a function?

    Hi Guys. This one is driving me mad. I'm trying to write a function which receives a user-defined type member name (not its value). How do you pass the name of a type member to a function? Obviously you can pass it as a string but then how do you use it? This should make things clear: Private...

Part and Inventory Search