Similar Threads
1. passing a textbox control in parameter list
Hi, I have an application that has about 3 subroutines that I'd like to use in another application so I decided to move them out into a DLL. Anyway, I moved them out and I call them from the two applications and they all work fine. When I moved them out, I temporarily commented out anything to do with the user interface - basically the routines do some processing of files that sometimes takes a long time so in the original application, the routines would update a little status form
What I'd like to do is popup the status form in each of the two applications and then call the subroutines in the DLL and then have the subroutine update the form. So I decided to add a simple textbox control in the subroutines' parameter list. When I go to compile the DLL I get
Compile error
Private object modules cannot be used in public object modules as parameters or return types for public procedures, as public data members, or as fields of public user defined type
This is the test subroutine that gives me the compile error
Public Sub test(t As Control
t.Text = "foobar
End Su
Am I stuck, am I doing something wrong? Is there a way around it? Any other suggestion of how to do what I'd like? Thanks
2. How to add a button control in the list view list item in VB
3. value list in parameter
Hi, i'm using a sql-select command (commandtyp:text) and the sql-query is
build with commands:
sql="... and PROD in ( :PRDCT_NAME )"
Cmd.Parameters.Add(":PRDCT_NAME", OracleType.VarChar, 0, "PRDCT_NAME")
Cmd.Parameters.Item(":PRDCT_NAME").Value = _Product
_Product contains a value list like "'a','b','c'"
an error occurs during executing the command.
where is the failure?
Thanks
jens
4. Why a data after the parameter list? - VB.Net
5. "Type" in parameter list
Hi,
Is there a way for me to vary the Type of a parameter in a method in a
class? Ideally I'd like to have a variable that I can use, such as:
Public Sub MyMethod (ByVal mParm as mType)
where mType can vary.
Art
6. passing a list as a parameter to a TableAdapter Fill method - VB.Net
7. subroutine with fixed list of parameter
hi friend,
I have a function which can accept 2 parameters ,
one as any double value
second as "Y" or "N"
public sub abc(byval dblvalue as double,byval strvalue as string)
end sub
I want the subroutine to accept only "Y" or "N" as parameter else should
give error at design time when the subroutine is been used by other
programmers
how is this possible ?
I would also like to give description of the parameters when the user try to
enter the
parameters as we see in intellisence.
do we have to use reflection package ??
please give me the soln..
waiting !!
thanks
vipul
8. Obtain List of Parameters from a Crystal Report? - VB.Net