hi Senthil, Thanks for the help. Now i have got the perfect clue. now i am not using gelegates, i am using reflection instade. thanks, vaibhav.
d_vaibhav
Posts
-
using delegate -
using delegateI have a sample class as shown below
public class MyAirport
{
delegate void ProcessAirport(string s);
ProcessAirport pa;
public MyAirport(string sAirportName)
{
pa = new ProcessAirport(ProcessMumbai);
}
private void ProcessMumbai(string s)
{
MessageBox.Show(s);
}
public void ProcessAirport()
{
pa("Hello Mumbai");
}
}in the class above i have used created a delegate instance with statement
pa = new ProcessAirport(ProcessMumbai);
where in i am passing 'ProcessMumbai' directly as a function pointer to ProcessAirport delegate.now my question is : can i pass function pointer referance by string like,
pa = new ProcessAirport("ProcessMumbai");
if so, please guide.
thanks, vaibhav
-
Oracle schemayou can use select * from tab to get the list of all tables vaibhav.
-
no keypressed event.. uh oh!hi, if u want to avoide postback after press of enter key, you can avoide using input type as submit. u can use the following tag. this will atleast restrict the enter key behavior. regards, vaibhav.
-
Positioning web page after edit or cancel event on datagridhi there, You can set the Page's SmartNavigation property to true to maintain users state. regards, vaibhav.
-
HOW to Return to the Previous Position??hi there, :) You can set the Page's SmartNavigation property to true to maintain users state. this works only during postbacks. and includes heavy scripts in code. regards, vaibhav.
-
Linefeed in normal textHi Brendan, If you are using .net you can replace all your crlf's with Environment.NewLine or you can use \r\n as well regards vaibhav dhandarphale