Click here to Skip to main content
15,906,296 members
Home / Discussions / C#
   

C#

 
QuestionRe: Connect to sql server 2000 remotely Pin
Pedram Behroozi6-Oct-08 1:59
Pedram Behroozi6-Oct-08 1:59 
GeneralRe: Connect to sql server 2000 remotely Pin
Hossein Afyuoni6-Oct-08 8:41
Hossein Afyuoni6-Oct-08 8:41 
AnswerRe: Connect to sql server 2000 remotely Pin
Wendelius6-Oct-08 8:59
mentorWendelius6-Oct-08 8:59 
GeneralRe: Connect to sql server 2000 remotely Pin
Hossein Afyuoni6-Oct-08 9:24
Hossein Afyuoni6-Oct-08 9:24 
GeneralRe: Connect to sql server 2000 remotely Pin
Wendelius6-Oct-08 9:42
mentorWendelius6-Oct-08 9:42 
GeneralRe: Connect to sql server 2000 remotely Pin
Hossein Afyuoni6-Oct-08 9:57
Hossein Afyuoni6-Oct-08 9:57 
GeneralRe: Connect to sql server 2000 remotely Pin
Wendelius6-Oct-08 10:13
mentorWendelius6-Oct-08 10:13 
Questionneed to make an asynchronous call to a method that accepts arguments and then modifies form Pin
x0lubi5-Oct-08 23:55
x0lubi5-Oct-08 23:55 
AnswerRe: need to make an asynchronous call to a method that accepts arguments and then modifies form Pin
Jaffer Mumtaz6-Oct-08 3:03
Jaffer Mumtaz6-Oct-08 3:03 
GeneralRe: need to make an asynchronous call to a method that accepts arguments and then modifies form Pin
x0lubi6-Oct-08 7:12
x0lubi6-Oct-08 7:12 
AnswerRe: need to make an asynchronous call to a method that accepts arguments and then modifies form Pin
Wendelius6-Oct-08 9:11
mentorWendelius6-Oct-08 9:11 
AnswerRe: need to make an asynchronous call to a method that accepts arguments and then modifies form Pin
x0lubi6-Oct-08 22:53
x0lubi6-Oct-08 22:53 
GeneralRe: need to make an asynchronous call to a method that accepts arguments and then modifies form Pin
Wendelius7-Oct-08 6:50
mentorWendelius7-Oct-08 6:50 
Question[Message Deleted] Pin
DJ2455-Oct-08 23:27
DJ2455-Oct-08 23:27 
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 

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.