16,022,205 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Ramya 2010 (Top 22 by date)
Ramya 2010
26-Nov-10 0:26am
View
Deleted
Let us consider im having an application named as AAA.
Now Im Loading an assembly named as BBB.The aseembly BBB is having the declaration of event and delegate.
The handler to the event in BBB is available in AAA.
while loading the assembly BBB, i need to add the handler for the event in AAA.
Whenever the event occur in BBB, i should execute the handler method in AAA.
How to accomplish this..........?
i coded like dis in AAA
<pre>Assembly tstComponent = Assembly.LoadFile(BBB);
Type Global = tstComponent.GetType(ClassInBBB, false, true);
if (Global != null)
{
EventInfo l_objevent = Global.GetEvent("OnGetdelInBBB");
Type l_objEveType = l_objevent.EventHandlerType;
Type Dis = Assembly.GetExecutingAssembly().GetType("AAA", false, true);
MethodInfo l_method = Dis.GetMethod("HandlerinAAA");
Delegate d = Delegate.CreateDelegate(l_objEveType, l_method);//Getting argument bind exception in this line
MethodInfo addHandler = l_objevent.GetAddMethod();
Object[] addHandlerArgs = { d };
addHandler.Invoke(Dis, addHandlerArgs);
} </pre>
please help me. Thanks in advance
Ramya 2010
26-Nov-10 0:24am
View
Deleted
Let us consider im having an application named as AAA.
Now Im Loading an assembly named as BBB.The aseembly BBB is having the declaration of event and delegate.
The handler to the event in BBB is available in AAA.
while loading the assembly BBB, i need to add the handler for the event in AAA.
Whenever the event occur in BBB, i should execute the handler method in AAA.
How to accomplish this..........?
i coded like dis in AAA
Assembly tstComponent = Assembly.LoadFile(BBB);
Type Global = tstComponent.GetType(ClassInBBB, false, true);
if (Global != null)
{
EventInfo l_objevent = Global.GetEvent("OnGetdelInBBB");
Type l_objEveType = l_objevent.EventHandlerType;
Type Dis = Assembly.GetExecutingAssembly().GetType("AAA", false, true);
MethodInfo l_method = Dis.GetMethod("HandlerinAAA");
Delegate d = Delegate.CreateDelegate(l_objEveType, l_method);//Getting argument bind exception in this line
MethodInfo addHandler = l_objevent.GetAddMethod();
Object[] addHandlerArgs = { d };
addHandler.Invoke(Dis, addHandlerArgs);
}
please help me. Thanks in advance
Ramya 2010
25-Nov-10 3:58am
View
Thank You soo much......
Ramya 2010
25-Nov-10 2:19am
View
This is not what im expecting. let us consider my application is having
struct student
{
string name;
int age;
string grade;
float average;
}
dis structure type is not available in the loaded assembly.But i have to fill in that loaded assembly. how to do this?Is it possible?
Ramya 2010
24-Sep-10 2:43am
View
I just need some nice article to know about it......
Ramya 2010
26-Aug-10 2:31am
View
wil 'Datatableavg.Select("grade='A'")' return a list of Student info(whose grade is equal to 'A')?
Ramya 2010
26-Aug-10 2:28am
View
Deleted
Thank you so much
Ramya 2010
26-Aug-10 2:01am
View
My ArrayList is a Collection of student Objects.These Objects contain a datamember called department.If i want to display science department Student details means, i have to take those student info from the array list without using 'For' loop and linq and stores those info in a list
Ramya 2010
23-Aug-10 8:11am
View
I developed an application which currently having hundreds of objects created.
Is it possible to determine (or approximate) the memory allocated by an object(class instance)?
Ramya 2010
23-Aug-10 7:56am
View
Thanks a lot for ur help.... Indexer gives an exact solution for me.....
Ramya 2010
23-Aug-10 2:27am
View
ok....... Thanks a lot for ur help.
Ramya 2010
23-Aug-10 2:16am
View
let us consider im storing collection of objects in a list.Each and every object stores persons Information.These objects wil contain a member variable called name.while searching for the specific person,i just give a Person name ,the collection has to return the corresponding persons object. And this has to be done without using for loop and without using Linq........
Ramya 2010
23-Aug-10 1:31am
View
No ya...... Let us consider im having 5 elements in a list such as {3,6,8,2,9,1}.If i want 8 means,straight a way i have to take it,without using Linq and for loop...... Which means i need a minimum coding to get a specific item from a collection.
Ramya 2010
20-Aug-10 3:16am
View
Reason for my vote of 3
Seems Helpful
Ramya 2010
28-Jul-10 1:25am
View
@Sandeep Mewara-- Thanks a lot
Ramya 2010
27-Jul-10 5:45am
View
Reason for my vote of 5
Exact Answer
Ramya 2010
26-Jul-10 2:54am
View
@Abihnav-
i declared the property in both the forms..... and in form3 load event i put a following code.
private void Form3_Load(object sender, EventArgs e)
{
textBox1.Text = Form1.one + Form2.two;
}
while executing it shows the following error........
Error 1 An object reference is required for the non-static field, method, or property 'test1.Form1.one.get'
Error 2 An object reference is required for the non-static field, method, or property 'test1.Form2.two.get'
Ramya 2010
23-Jul-10 6:56am
View
@Richard MacCutchan--- Thanks a lot... wil u plz tel me, how u did it
Ramya 2010
23-Jul-10 5:11am
View
@Sandeep Mewara--- sorry i forgot to type my question.Actually my question is "i had written a code to display the description(Name) of connected USB devices.once i removed a device,then i need to refresh the ManagementObject and have to display the connected device description. how to do this?" - Ramya 2010 7 mins ago
Ramya 2010
23-Jul-10 5:03am
View
@Alison---i had written a code to display the description(Name) of connected USB devices.once i removed a device,then i need to refresh the ManagementObject and have to display the connected device description.
Ramya 2010
23-Jul-10 5:02am
View
Deleted
@Sandeep Mewara-- sorry i forget to type my question.Actuaaly my question is "i had written a code to display the description(Name) of connected USB devices.once i removed a device,then i need to refresh the ManagementObject and have to display the connected device description. how to do this?"
Ramya 2010
3-Jul-10 8:30am
View
But i need to know the vendor id and device id of the USB, which was currently removed.
Show More