Hi, I would like to perform some run-time coding such as: s1 = "testing" s2 = "s1" s3 = evaluate(s2) Then, s3 will become "testing". Is it possible to do this in VB.NET or VB6? Many thanks, Wilfred
L
LC Chan
@LC Chan
Posts
-
Variable evaluation -
Call MDI form procedure in ToolbarHi All, I created a Toolbar in the Main form and it has some buttons like Add,Change,Delete. Let's say there are 2 child forms A & B. In each form, a public procedure - add_record() - is created. Now, I'd like to call the child form - add_record() in the button.click() event. But it seems the compiler didn't accept it. Here's the code in tool bar click event.
Protected Sub toolBar_Click(ByVal sender As Object,
ByVal e As oolBarButtonClickEventArgs)Select Case tblMain.Buttons.IndexOf(e.Button) Case 1 Call Me.ActiveMdiChild.add\_recod() /\* build error occur \*/ End Select
End Sub
I think i'm using a wrong approach with Toolbar. Would anyone give me some advice. Many thanks, Wilfred:)
-
Check if PC is IdleHi All, I would like to check if the machine is idle. If yes, then the program will trigger something. Thank you, Wilfred;)