Click here to Skip to main content
15,892,697 members
Home / Discussions / C#
   

C#

 
AnswerRe: Read HTML file and replace relative path of images with absolute Pin
Eslam Afifi6-Oct-08 0:45
Eslam Afifi6-Oct-08 0:45 
GeneralRe: Read HTML file and replace relative path of images with absolute Pin
DJ2456-Oct-08 20:37
DJ2456-Oct-08 20:37 
GeneralRe: Read HTML file and replace relative path of images with absolute Pin
Eslam Afifi7-Oct-08 3:09
Eslam Afifi7-Oct-08 3:09 
Questionconvert access forms to C# Pin
sachinss19865-Oct-08 23:26
sachinss19865-Oct-08 23:26 
AnswerRe: convert access forms to C# Pin
x0lubi6-Oct-08 0:35
x0lubi6-Oct-08 0:35 
AnswerRe: convert access forms to C# Pin
Dave Kreskowiak6-Oct-08 2:10
mveDave Kreskowiak6-Oct-08 2:10 
AnswerRe: convert access forms to C# Pin
Dave Doknjas6-Oct-08 14:56
Dave Doknjas6-Oct-08 14:56 
QuestionReflection- trying to use reflection in my project, with the code given on codeproject.com itself, however it is not working.. Plz help!! Pin
Puneet Bhatnagar5-Oct-08 22:52
Puneet Bhatnagar5-Oct-08 22:52 
Here is the code snippet, with Reflection code. I have taken the code for Reflection from below link
"http://www.codeproject.com/KB/cs/C__Reflection_Tutorial.aspx"

public bool SaveLoginInfo(string UserName, string Password)
{
if (objForDBTransactions == null)
{
objForDBTransactions = new RegMgr();
}
try
{
bool bSaveDone = false;
object[] ArrayParam = new object[] { UserName, Password, objForDBTransactions };
//=================================================================================================== <b>//Way 1: It is throwing an error - Object reference not set to the instance of the object</b> //Type Objtype = Type.GetType("Login");
//MethodInfo myMethodInfo = Objtype.GetMethod("Save<string>");
//myMethodInfo.Invoke(Objtype, ArrayParam);
//===================================================================================
<b>//Way 2: It is throwing an error - AddressBook.Login.Save does not exist</b>
Type ObjType = typeof(Login);
Object obj = Activator.CreateInstance(ObjType);
bSaveDone = (bool)ObjType.InvokeMember("Save <T>", BindingFlags.InvokeMethod, null, obj, ArrayParam);
// Tried with Save, Save<string>, Save<T> however none is working.
//=================================================================================================== return bSaveDone;
}
catch (Exception e)
{
System.Windows.Forms.MessageBox.Show(e.Message);
System.Windows.Forms.MessageBox.Show(e.Source);
return false;
}


}


Here is Save function of Login class

public bool Save <T>(T UserName, T Password, RegMgr objRegmgr)
{

this.UserName = UserName.ToString();
this.Password = Password.ToString();
objRegmgr.SaveLoginInfo(this);
return true;
}

Thanks in Advance
AnswerRe: Reflection- trying to use reflection in my project, with the code given on codeproject.com itself, however it is not working.. Plz help!! Pin
N a v a n e e t h5-Oct-08 23:09
N a v a n e e t h5-Oct-08 23:09 
AnswerRe: Reflection- trying to use reflection in my project, with the code given on codeproject.com itself, however it is not working.. Plz help!! Pin
leppie5-Oct-08 23:59
leppie5-Oct-08 23:59 
AnswerRe: Reflection- trying to use reflection in my project, with the code given on codeproject.com itself, however it is not working.. Plz help!! Pin
Mark Churchill6-Oct-08 1:09
Mark Churchill6-Oct-08 1:09 
GeneralRe: Reflection- trying to use reflection in my project, with the code given on codeproject.com itself, however it is not working.. Plz help!! Pin
Puneet Bhatnagar6-Oct-08 23:36
Puneet Bhatnagar6-Oct-08 23:36 
GeneralRe: Reflection- trying to use reflection in my project, with the code given on codeproject.com itself, however it is not working.. Plz help!! Pin
Mark Churchill7-Oct-08 5:37
Mark Churchill7-Oct-08 5:37 
GeneralRe: Reflection- trying to use reflection in my project, with the code given on codeproject.com itself, however it is not working.. Plz help!! Pin
Puneet Bhatnagar10-Oct-08 0:02
Puneet Bhatnagar10-Oct-08 0:02 
QuestionUsing FFMPEG Wmv to Swf: Not Working in C#: Need Help... Pin
elango.sham5-Oct-08 22:12
elango.sham5-Oct-08 22:12 
AnswerRe: Using FFMPEG Wmv to Swf: Not Working in C#: Need Help... Pin
leppie6-Oct-08 0:01
leppie6-Oct-08 0:01 
QuestionHow to handle unhandled exceptions in Windows Forms application Pin
matixsc5-Oct-08 22:10
professionalmatixsc5-Oct-08 22:10 
AnswerRe: How to handle unhandled exceptions in Windows Forms application Pin
N a v a n e e t h5-Oct-08 22:25
N a v a n e e t h5-Oct-08 22:25 
GeneralRe: How to handle unhandled exceptions in Windows Forms application Pin
matixsc5-Oct-08 22:45
professionalmatixsc5-Oct-08 22:45 
GeneralRe: How to handle unhandled exceptions in Windows Forms application Pin
N a v a n e e t h5-Oct-08 23:07
N a v a n e e t h5-Oct-08 23:07 
GeneralRe: How to handle unhandled exceptions in Windows Forms application Pin
Vikram A Punathambekar5-Oct-08 23:30
Vikram A Punathambekar5-Oct-08 23:30 
GeneralRe: How to handle unhandled exceptions in Windows Forms application Pin
N a v a n e e t h5-Oct-08 23:33
N a v a n e e t h5-Oct-08 23:33 
AnswerRe: How to handle unhandled exceptions in Windows Forms application Pin
Daniel Grunwald6-Oct-08 2:44
Daniel Grunwald6-Oct-08 2:44 
GeneralRe: How to handle unhandled exceptions in Windows Forms application Pin
matixsc6-Oct-08 3:13
professionalmatixsc6-Oct-08 3:13 
GeneralRe: How to handle unhandled exceptions in Windows Forms application Pin
S. Senthil Kumar6-Oct-08 6:04
S. Senthil Kumar6-Oct-08 6:04 

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.