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)?
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.
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
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?
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 =...
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...
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...
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...