|
-
Oct 19th, 2000, 07:14 PM
#1
Thread Starter
Addicted Member
I'm using a activex dll. Is there anyway to edit controls in my exe with a sub inside the dll's class? Like setting a textboxes text value?
-
Oct 19th, 2000, 07:31 PM
#2
transcendental analytic
You could pass the textbox as an object or textbox to that sub.
Code:
Sub yoursub(tb As TextBox)
With tb
.text = "this textbox is being edited by the Dll"
.BackColor = vbRed
...
End With
End Sub
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Oct 19th, 2000, 07:33 PM
#3
Thread Starter
Addicted Member
Thanks Kedaman
Actually i figured that out by trial and error about 10 min aog =)
-
Oct 20th, 2000, 12:20 PM
#4
Thread Starter
Addicted Member
Gotta Check
Will that work with whatever object I send it, as in if I
Code:
clsClass.Test txtBox
Sub Test(tb as Textbox)
Dim StrText as string
strText = inputbox("Enter the String")
tb.text = strText
End Sub
So the following would ask for the string and set the txtBox value on my form to the string value? Would that work?
-
Oct 20th, 2000, 06:13 PM
#5
transcendental analytic
That will only work for textboxes, although all of them I'm not sure that was what you wanted, anyway if you want to pass otheritems with text property you could change as Textbox to As Object
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Oct 20th, 2000, 07:29 PM
#6
Thread Starter
Addicted Member
Thanks Kedaman, id thank you in icq but im at work =)
-
Oct 23rd, 2000, 10:55 AM
#7
Thread Starter
Addicted Member
hmm how about in Public?
Unfortunately Kedaman, that doesn't work in a Public statement, as in the only statements my program can call. Is there a work around for this???
-
Oct 23rd, 2000, 12:02 PM
#8
transcendental analytic
public statement? What do you mean by that?
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Oct 23rd, 2000, 12:30 PM
#9
Thread Starter
Addicted Member
hi Kedaman
I meant for example:
Code:
Public sub Test(txt as textbox)
end sub
unfortunately you cannot do something like txt as textbox in a public sub of the DLL's Class. Any ideas??
-
Oct 23rd, 2000, 03:05 PM
#10
Code:
Public Sub Test(txt As Object)
If TypeOf txt Is TextBox Then 'Do code here
End Sub
-
Oct 23rd, 2000, 04:54 PM
#11
transcendental analytic
hey!! HEhe this happens usually when you post same qwestion at multiple threads, well just check out your other one, should solve your probs
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|