able to achieve it. Now I am describing question in simple language. In my
Dot net Application, I have Declared one object as below.
In my one proc I am having following code. which will open a DOC file. and
On the above statement if I places break point. and opens Quick watch
in treeview. similar Interface I want to build where in I wanted to Hard
code object.
in tree format. even if I know population of Tree.
2 whatever I will select I wanted to strore it in to database.
previously. (here your answer is suitable.)
So Please Help me.
"Kumar Gaurav Khanna [.NET MVP]" <gaurav@wintoolzone.com> wrote in message
news:Oh87#JBhDHA.1200@TK2MSFTNGP09.phx.gbl...
> Hi!
>
> I dont see how answer to this is going to any different from the one I
told
> you before. Once you have persisted the method/type names in the database
> and later read from the same, you got to loop thru the type list to get to
> the right type, following by locating the correct method (the one which
you
> persisted in the database), and then using reflection, instantiate the
type,
> followed by invocation of the method using the Invoke call.
>
> What issues are you facing?
>
> --------------------------------------------------
> Kumar Gaurav Khanna
> Microsoft MVP - .NET, MCSE Windows 2000/NT4, MCP+I
> WinToolZone - Spelunking Microsoft Technologies
>
http://www.wintoolzone.com/ > OpSupport - Spelunking Rotor
>
http://opsupport.sscli.net/ >
> "Kishor" <kpise@hotmail.com> wrote in message
> news:%23QMGPG2gDHA.2344@TK2MSFTNGP10.phx.gbl...
> > Hi Kumar Gaurav Khanna,
> > At some extent it is true, I have to use Reflection but with
> reflection
> > I have one problem probably you will be right person to answer this.
> >
> > I am having one assembly which I am loading it dynamically. I am getting
> > proper Tree structure of that assembly which includes list of properties
> and
> > methods. Now My problem is
> > 1 I want to store the selected property/method in to database
> > 2 and after receiving it from database I want to execute this
> >
> > So How do I achieve this?. Is there any mechanism where can I get the
> > information about the same. If you dont understand question Please mail
me
> I
> > wiil explain it more clearly to you.
> >
> > Regards
> > Kishor
> >
> >
> >
> >
> > "Kumar Gaurav Khanna [.NET MVP]" <gaurav@wintoolzone.com> wrote in
message
> > news:euG6$b0gDHA.2248@TK2MSFTNGP09.phx.gbl...
> > > Hi!
> > >
> > > Reflection is the answer to your query. You should prompt the user for
> the
> > > assembly contain the method implementation, dynamically load it,
> enumerate
> > > the types and get to the type (read class) that implements the method
in
> > > question and then use the Invoke method to execute it and get the
result
> > > back.
> > >
> > > Have a look at this URI:
> > >
> > >
http://www.developerfusion.com/show/1914/2/ > > >
> > > Regards,
> > > Kumar Gaurav Khanna
> > > --
> >
>
> --------------------------------------------------------------------------
> > --
> > > -------
> > > I can't be garbage collected; I am pinned to .NET
> >
>
> --------------------------------------------------------------------------
> > --
> > > -------
> > > Microsoft MVP - .NET
> > > WinToolZone -
http://www.wintoolzone.com/ > > > Spelunking Microsoft Technologies and my home on the web :-)
> > > OpSupport - Spelunking Rotor
> > >
http://opsupport.sscli.net/ > > >
> > >
http://dot-net.blogspot.com/ > > >
http://kgk.blogspot.com/ > >
>
> --------------------------------------------------------------------------
> > --
> > > -------
> > >
> > > "Kishor" <kpise@hotmail.com> wrote in message
> > > news:%230Nt7ymgDHA.988@TK2MSFTNGP10.phx.gbl...
> > > > Hi all,
> > > >
> > > > I am Using VB.Net for developing my application. I am now needed
help.
> > In
> > > > this project I have to execute some function, but I cannot call them
> > > > directly using function name, I wanted to execute this function
> > > dynamically.
> > > > So I have a function list in database written as a string. I am now
> > > looking
> > > > for function or mechanism which will execute function dynamically.
> > > >
> > > > I am here Giving a example.
> > > >
> > > >
> > > >
> > > > Private Sub btnShow_Click(..)
> > > >
> > > > Dim t as boolean
> > > >
> > > > T = FunctionOne
> > > >
> > > > End Sub
> > > >
> > > >
> > > >
> > > > This btnShow_Click will call FunctionOne and the result will be
> > assigned
> > > to
> > > > t but I wanted Function Like This
> > > >
> > > > Private Sub btnShow_Click(..)
> > > >
> > > > Dim t as boolean
> > > >
> > > > T = ?????? "FunctionOne"
> > > >
> > > >
> > > >
> > > > End Sub
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Is This Possible in any language VB or C#??
> > > >
> > > > Regards
> > > > --
> > > > Kishor Pise
> > > > Maharashtra, INDIA.
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>