Click here to Skip to main content
15,905,414 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can I prevent my control to be serialized in design-mode? Pin
Dave Kreskowiak23-Aug-05 10:00
mveDave Kreskowiak23-Aug-05 10:00 
QuestionHow can I check inside the control where I am - in design mode or run-time mode? Pin
Anonymous23-Aug-05 7:34
Anonymous23-Aug-05 7:34 
AnswerRe: How can I check inside the control where I am - in design mode or run-time mode? Pin
gnjunge23-Aug-05 7:42
gnjunge23-Aug-05 7:42 
GeneralRe: How can I check inside the control where I am - in design mode or run-time mode? Pin
Tesic Goran23-Aug-05 9:14
professionalTesic Goran23-Aug-05 9:14 
GeneralRe: How can I check inside the control where I am - in design mode or run-time mode? Pin
Dan Neely23-Aug-05 9:27
Dan Neely23-Aug-05 9:27 
GeneralRe: How can I check inside the control where I am - in design mode or run-time mode? Pin
Tesic Goran23-Aug-05 9:41
professionalTesic Goran23-Aug-05 9:41 
GeneralRe: How can I check inside the control where I am - in design mode or run-time mode? Pin
Dave Kreskowiak23-Aug-05 10:01
mveDave Kreskowiak23-Aug-05 10:01 
GeneralRe: How can I check inside the control where I am - in design mode or run-time mode? Pin
Dave Kreskowiak23-Aug-05 10:04
mveDave Kreskowiak23-Aug-05 10:04 
AnswerRe: How can I check inside the control where I am - in design mode or run-time mode? Pin
afinnell24-Aug-05 13:52
afinnell24-Aug-05 13:52 
Generalhi i have some database questions to ask you.... Pin
nidhelp23-Aug-05 6:49
nidhelp23-Aug-05 6:49 
Generalinternet connected state Pin
Mridang Agarwalla23-Aug-05 6:33
Mridang Agarwalla23-Aug-05 6:33 
GeneralRe: internet connected state Pin
gnjunge23-Aug-05 7:45
gnjunge23-Aug-05 7:45 
GeneralPassing values to methods. Pin
zaboboa23-Aug-05 6:05
zaboboa23-Aug-05 6:05 
GeneralRe: Passing values to methods. Pin
Werdna23-Aug-05 6:26
Werdna23-Aug-05 6:26 
GeneralRe: Passing values to methods. Pin
zaboboa23-Aug-05 6:39
zaboboa23-Aug-05 6:39 
GeneralRe: Passing values to methods. Pin
Guffa23-Aug-05 7:02
Guffa23-Aug-05 7:02 
GeneralRe: Passing values to methods. Pin
Matt Gerrans23-Aug-05 9:43
Matt Gerrans23-Aug-05 9:43 
GeneralNewsletter/Massemail Pin
cyonite23-Aug-05 6:04
cyonite23-Aug-05 6:04 
GeneralSystem.Diagonastics.Process.GetProcesses throws error if the user does not have admin rights. Pin
manivannan.p23-Aug-05 5:14
manivannan.p23-Aug-05 5:14 
GeneralRe: System.Diagonastics.Process.GetProcesses throws error if the user does not have admin rights. Pin
Judah Gabriel Himango23-Aug-05 5:19
sponsorJudah Gabriel Himango23-Aug-05 5:19 
GeneralRe: System.Diagonastics.Process.GetProcesses throws error if the user does not have admin rights. Pin
manivannan.p23-Aug-05 18:45
manivannan.p23-Aug-05 18:45 
GeneralDynamic Event Handler Pin
pssuresh23-Aug-05 4:52
pssuresh23-Aug-05 4:52 
Menu Item names are directly coming from the database and i want to attach menu item with the event handler names.
so i name event handler as "handle" + item.name(value from database) + "click".I want to attach it dynamically.

the code is as follows

//sample code
public class myclass
{


protected void Handle_FileMenuItem_Click(System.Object sender, System.EventArgs e)
{


}


public bindeventhandler()
{
string dynamiceventhandler="";
dynamiceventhandler="Handle_" + item.Name + "_Click";
Delegate temp=Delegate.CreateDelegate(typeof(EventHandler),this,dynamiceventhandler);
item.Click+=(EventHandler)temp;

}

}

The code is throwing error. Error binding to target method.

Can anyone pl explain how to solve this error...

i got the idea from this url

http://www.dotnet247.com/247reference/msgs/21/106638.aspx



GeneralRe: Dynamic Event Handler Pin
SeMartens23-Aug-05 5:12
SeMartens23-Aug-05 5:12 
GeneralIIS virtual Directory Pin
C0d3_P03t23-Aug-05 4:26
C0d3_P03t23-Aug-05 4:26 
GeneralRe: IIS virtual Directory Pin
BammBamm23-Aug-05 5:34
BammBamm23-Aug-05 5:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.