|
Hi,
Askalo wrote: Is it possible to call a java method, with parameters, from a c# program?How?I have to pass text to a java program from c#, receiving an answer.
method or program ?
if you have the source of the Java method you can build a dll using J#.NET and
call its classes/methods as if they were C#.
if you have a program, its language does not matter. You can start it with the Process class
and alter its standard input, output, error streams.
|
|
|
|
|
Hi everybody !!!
i want draw a hexagon on form of c#.net. who can help me !!please guide me step by step and the most detail!!i need urgent !!hurry up please !!!! thank so much !!!!!!!!
contact Me : father_and_son_822003@yahoo.com.
|
|
|
|
|
switch(field)
{
case "A":
break;
case "B":
break;
default:
break;
}
|
|
|
|
|
|
well, we make a custom control . its a custom date time control . it has three textbox and a DateTimePicker .
On the validating event of the control,the code checks if the date is valid or not. if the date is not valid the event sequence is cancelled so that the control doesnot loose the focus . well the control works fine .
BUT THE PROBLEM IS , when the control is used in TabedPane,it does fire validating event but doesnot retain focus.
|
|
|
|
|
well, we make a custom control . its a custom date time control . it has three textbox and a DateTimePicker .
The user can either enter date through the textbox or select a date from the DateTimePicker. On the validating event of the control,the code checks if the date entered through the textbox is valid or not. if the date is not valid the event sequence is cancelled so that the control doesnot loose the focus . well the control works fine .
BUT THE PROBLEM IS , when the control is used in TabedPane,it does fire validating event but doesnot retain focus.
|
|
|
|
|
First, find what what's stealing the focus. See if there's some way to programmatically prevent that from receiving focus. Or, manually add focus through code when you need it.
|
|
|
|
|
This is a stupid question. But I wonder how I can use MS Office PivotTable in C#.
It seem to be a solution or an answer.
|
|
|
|
|
Interops..
I used PivodTable from Excel..
but to use them you must have Office installed
life is study!!!
|
|
|
|
|
How can we add the concept of TAB Navigation in ASP.NET 2.0 using c#
Geetanjali BHATIA
|
|
|
|
|
You can't, because your C# code doesn't run on the server. Client side behaviour, if it's not supported in the ASPX tags, is done in javascript.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Can I make a report using crystal report from database Access. without the use of v.s
merwa
|
|
|
|
|
A simple google search for "crystal reports access" brings up a number of possible answers[^].
|
|
|
|
|
i use .Net 2005 Windows application
i have datagridview Control and one of its column caontain Combobox
how can i bind datasource to this combobox
thanx
|
|
|
|
|
Dear it is very simple when you used the Wizard. if you add the combobox Then Used follwing Code
DataGridViewComboBoxColumn dgCombo = new DataGridViewComboBoxColumn();
dgCombo.DataSource = "";
dgCombo.DisplayMember="";
dgCombo.ValueMember = "";
dataGridView1.Columns.Add(dgCombo);
|
|
|
|
|
I have only one c# file (there is no solution file it's just a class file),here please tell me how to add a reference for a dll during runtime
Thank In Advance
|
|
|
|
|
vamsimohan21 wrote: I have only one c# file (there is no solution file it's just a class file),
only one .cs file No solution or Project file ?
vamsimohan21 wrote: here please tell me how to add a reference for a dll during runtime
You want o add dll for a dll ?
or you want add dll to 1 .cs file ?
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
I want to add another external dll to this file for example add.dll to this file test.cs
ALL THE BEST
|
|
|
|
|
You can not add a reference in a class library project to another dll at run-time because there will never be a run time for a class library, it is not executable. Of course depending on your level, you can make a dll to run as a standalone application with Rundll or Rundll32 commands from Windows to run functions in your class library(mylib.dll). In this scenario, you can add a "reference" by calling Assembly.Load(...), Assembly.LoadFile(...) or Assembly.LoadFrom(...) methods available in System.Reflection namespace. If you want to copy a dll to your working folder and then add a reference to it, then you can use File.Copy or File.Move functions in System.IO namespace. I hope this helps you friend.
|
|
|
|
|
Thank you so much for the response guys.
Here below is the peice of code which i tried it but failed
Assembly SampleAssembly;
System.Reflection.AssemblyName objName = new AssemblyName();
objName.CodeBase = "D:\\Debug\\Utilities.EncryptParm.dll";
SampleAssembly = Assembly.Load(objName);
Type[] Types = SampleAssembly.GetTypes();
foreach (Type oType in Types)
{
Console.WriteLine(oType.Name.ToString());
if(oType.Name == "EncryptParm")
{
string[] encryptValues = {"4865","78043","GABRIELEZZ"};
string encryptKey = "CF2ASP?73ejb01";
Utilities.EncryptParm encryptor = new Utilities.EncryptParm();
string encryptedId = encryptor.Encrypt( encryptKey, encryptValues);
Console.WriteLine(encryptedId);
Console.ReadLine();
}
}
Please rectify me for any correction
Thanks In Advance
|
|
|
|
|
vamsimohan21 wrote: Utilities.EncryptParm encryptor = new Utilities.EncryptParm();
string encryptedId = encryptor.Encrypt( encryptKey, encryptValues);
You cannot execute this when you have loaded the assembly by using Assembly.Load. You have to call InvokeMember(...) instead.
Hope this helps.
|
|
|
|
|
YOU HAVE NOT READ MY PREVIOUS ANSWER TO YOUR QUESTION, BUT I SEND YOU A NEW ONE FOR THE LAST TIME
Use below code:
string assemblyFullPath = @"C:\myAssembly.dll";
Assembly workerAssembly = LoadAssembly(assemblyFullPath);
Type[] types = workerAssembly.GetTypes();
foreach (Type oType in types)
{
Console.WriteLine(oType.Name.ToString());
if(oType.Name == "EncryptParm")
{
string[] encryptValues = {"4865","78043","GABRIELEZZ"};
string encryptKey = "CF2ASP?73ejb01";
Utilities.EncryptParm encryptor = new Utilities.EncryptParm();
string encryptedId = encryptor.Encrypt( encryptKey, encryptValues);
Console.WriteLine(encryptedId);
Console.ReadLine();
}
}
|
|
|
|
|
AFSEKI wrote: there will never be a run time for a class library, it is not executable.
Yes, it is! It isn't directly executable, it requires something else to form the process for it, but a class library is as executable as any other .NET code.
|
|
|
|
|
If you read my post completely not only 1 sentence of it you could see that I tell how a dll can be run. You are a very excited young boy he? 
|
|
|
|
|
AFSEKI wrote: If you read my post completely not only 1 sentence of it you could see that I tell how a dll can be run.
I did read your entire post. The latter part of your post contradicted the former part. I clarified it.
AFSEKI wrote: You are a very excited young boy he?
I'm neither young, nor exited. I'm old and grumpy.
|
|
|
|