|
You could try the string's method .IndexOf
VirtualVoid.NET
|
|
|
|
|
How is your response different than the one posted two hours before you?
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: How is your response different than the one posted two hours before you?
Maybe it took him that long to come up with the solution, so he could not see someone else already answered the question
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
i didn't noticed that someone already answered... don't be silly, everyone can make mistake, or you're the god ?!
VirtualVoid.NET
|
|
|
|
|
Relax man, it was just a joke (my posting is marked as such with intend).
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Mark Nischalke wrote: How is your response different than the one posted two hours before you?
Actually, it was only one hour and 59 minutes.
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
I developed a windows-based application in C# ,there is a browse button, a textbox and a treeview control on the window, when i click on the browse button i can import managed DLL, the treeview control can display the classes, methods and methods parameter inside the DLL in a tree form, i want to call anyone of the method in a class in DLL at runtime,it is okay for static method but not okay for non-static method,
I used MethodBase.Invoke(object,params) for this.
Please help me so that i can create an object of the specified class and and also call that class method with the help of that class object at runtime in C#.
Thanks.
|
|
|
|
|
You can use Assembly.CreateInstance(typeName) to create an instance of a type in an assembly, and from there you can invoke methods on that instance.
|
|
|
|
|
Please help anyone.
I developed a GUI-based application in C#,there is a textbox, a browse button, a treeview and another button for firing any event, when i clicked on the browse button a OpenFileDialog is opened , i select a managed dll and import the dll, my application shows me all DLL classes and its methods and even its parameters in a treeview,now i want
to click on a method of a class and call that method.HOW?
I am using MethodBase.Invoke(object,Params) method but it is okay for Static methods, What about the non-static methods, in that case how to create the class object, PLEASE help me in this.
If someone find out a solution please forward me the code or any tip.
Thanks.
|
|
|
|
|
There are lots of sample for that.
Just look at :
http://de.gotdotnet.com/quickstart/util/srcview.aspx?path=/quickstart/howto/samples/reflection/invoke/invoke.src&file=CS\Invoke.aspx&font=3
|
|
|
|
|
|
|
Hi All
I want to debug stored procedure from visual studio. I tried a lot but in vain..
Can anybody let me know how can i ....
I have windows XP,sqlserver 2005 ,Dot net 2005
Atul Kumar
|
|
|
|
|
|
Thanx a lot
It helped me a lot..
One more thing
Is it possible to debug stored procedure when debugging out code from visual studio like pressing F11 while debugging code and debugger can reach on stored procedure statement .....
Regards
Atul
|
|
|
|
|
Hi All,
am having a query related to connection pooling.
Anyone of u pls suggest me where to place or write the code related to conection pooling.from the asp code behind,am able to know only one attribute of connection i.e connection.timedout.
so,pls suggest me the remaining attribs like maxpool,minpool etc.and where to place them
Have a nice day
|
|
|
|
|
Kush Bobby wrote: pls suggest me the remaining attribs like maxpool,minpool etc.and where to place them
Unless you are having performance problems I would just leave them with their default values.
|
|
|
|
|
Thanks Colin.
But where i have to place the code wheher in web.comfig or code behind.pls explain me the whole scenario.
Thanq
Have a Nice Day Dudes
|
|
|
|
|
Hi,
the connections from .Net do this automagically for you. If you open a connection and close it the underlying collection is normally not really closed. It is just returned to the pool. The next time a connection with the exact same connection string is opened the waiting connection from the pool will be reused.
Robert
|
|
|
|
|
Hello,
how can I access the system color depth with .Net? I know how it works with WinAPI.. but I'm searching a function/property in .Net. Some one an idea?
Greetings from germany
Jerry
|
|
|
|
|
System.Windows.Forms.Screen.PrimaryScreen.BitsPerPixel
|
|
|
|
|
i want to knwo a way how to release a static variable ....
|
|
|
|
|
kalyan_2416 wrote: i want to knwo a way how to release a static variable ....
I'm not exactly sure what you mean by "release". Do you mean you no longer want the object it references? If so, then just assing null to it.
|
|
|
|
|
hi angus
my requirement is like this there is a static variable which i assign a value to it at the start of the application. basing on that i will divert to other pages.....
while i close my application i need to make the static variable to die or assign some thing to else to it so that no longer the old value exits
bye
|
|
|
|
|
What type is it that it needs to be released ? If it;'s a string, it's not going to exist anymore, the app that holds it will have closed. If it's got an external handle or something, you can call Dispose on it in your main forms Close event handler.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|