|
Maybe you find this[^] of some interest.
SkyWalker
|
|
|
|
|
I want to know how can i write a code to use (ping) from win 2000 to win200 or another operating system .
in c# or any scripting language .
Thanks for yr attention
my mail: syitonet@yahoo.com
|
|
|
|
|
i dont know about asp.net 1.0/1.1
but u can do this in... asp.net 2.0
under
System.Net.NetworkInformation.Ping
|
|
|
|
|
If you have NET 2.0 use the Ping class,
otherwise you will need a rather long piece of code (if so, let me know, I developed
a ping method for NET 1.x)
Luc Pattyn
|
|
|
|
|
hi,
In my solution contains five projects.
In one project i have progress bar.I want to increase progress bar value from other project.
help me out ,it's arrgent
Thanks
|
|
|
|
|
Hello,
There are a lot of ways to do that (actually it's a very often asked question).
You will olso find articles here on CP about that.
But I think fastest solution is using a static method for example.
public static void IncreaseProgressBar()
{
mystaticinstanceofmyform.myprogressbar.Value = ...;
}
All the best,
Martin
|
|
|
|
|
Thanks
But where i have to call this method.
one project is main from there i m calling other project class method.
the project in presentation layer.
another project in bussiness layer.
if u give information in detail some example or site address.
thanks.
|
|
|
|
|
I have a Windows Form application with a simple GUI that contains a progress bar. Pushing the button 'Start' on my form invokes some other project[ in same solution] classes that carry out a lot of calculations and database access. I want to show the user the progress of the program. The program is actually a loop of database migration that are handled.
My solution contains more the one project.
we have different layer.
Presentation layer.
bussines layer.
My question is: How do I make the progress bar update itself from other layer, when we dont have reference in bussines layer?
Thanks in advance for your help
|
|
|
|
|
I installed Multi SQL(sql 2000 and sql 2005) at home.
I want to get everyone of sql instance's name.
ex:in sql server manager,has a ServerName list
ServerName list:
vs\sql2k
vs\sql05
VS\SQLEXPRESS
"vs" is my computer's name.
I want to get ServerName list.
Thanks for anybody who give me help.
|
|
|
|
|
Please help me anybody!Thanks.
|
|
|
|
|
|
Thanks.
otherwise, I ain't intentional for it that post multiple messages for the same question.
|
|
|
|
|
You waited a whole 36 minutes between initial posting and repeat plea for help. If you need help that fast then I suggest you phone Microsoft support. for a fee they will answer any question on their products.
If you don't want to pay then you are at the whim of people who are giving up their time to help because they like to help, not because they are paid to help.
|
|
|
|
|
oh,sorry. I ain't intentional.
thanks remind.
|
|
|
|
|
Hi,
I have a problem with a datagrid.
I want to add an extra row to it, this works fine by building tablecells and add them to the grid for each entry in the grid.
The extra rows can be edited by the user, but I don't know how I can bind this extra rows to my datagrid, so the changes of the user are recognized by the webform.
can you please help me with my Problem, or is it impossible to add extra rows, that can be edited by a user?
thank you for your help
Peggy
|
|
|
|
|
You do not need to do anything extra. You create a datatable and bind it to datagrid. Allow user to add a row to datagrid. When user says update then you just use SqlCommanBuilder object to perform the insert operation. You can also refer my article http://www.codeproject.com/useritems/DataGridView_manipulation.asp[^]
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
Hello Friends,
I want to know how to use assembly which is registered in GAC(Global Assembly Cache).
I have Created an assembly name dellMe.dll and i have registered it with same name but different
version 1.0.0.0 abd 1.0.0.1. Can i load the any one of the assembly at runtime.
Basically, i want to know how to do this refering of assembly in our C#.Net application.
Any Example will be helpfull.
Thanks In Advance.
Rahul Kulkarni
|
|
|
|
|
You can do it using reflection.
Assembly asm = Assembly.Load("System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
For this i have to copy the assembly. Right?
how can i keep different versions of assembly of same name?
Thanks.
Rahul Kulkarni
|
|
|
|
|
If you check the code carefully then you will come to know that System.Data is from GAC only. Now I have .NET 1.1 and .NET 2.0 installed on my machine. Both contains System.Data but with different versions. That is the speciality of GAC. You need to create a strong name and change the version. Then you can copy your assembly in GAC. You do not need to copy it to your application.
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
Thanks ....It works nice.
Thank You Very much
Rahul Kulkarni
|
|
|
|
|
As per you said all working fine.
even we can create instatance of the class of the assembly.
How can we call function of that class. It is not giving intellisense.
what is the solution.?
Rahul Kulkarni.
|
|
|
|
|
Can do like this.
Assembly asm = Assembly.Load("System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
Type[] tps = asm.GetTypes();
foreach (Type tp in tps)
{
if (tp.IsClass)
{
MethodInfo[] methods = tp.GetMethods();
object abc = Activator.CreateInstance(tp);
if (!methods[0].IsStatic)
{
methods[0].Invoke(tp, new object[] { });
}
}
}
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
Here is a sample code that will open a connection to sql server using reflection.
string connString = "Server = localhost; Database = EmployeePortal; User ID = abc; Password = abc; Trusted_Connection = False;";
Assembly asm = Assembly.Load("System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
Type[] tps = asm.GetTypes();
foreach (Type tp in tps)
{
if (tp.IsClass)
{
if (tp.Name == "SqlConnection")
{
Console.WriteLine("Sql connection found...");
}
MethodInfo[] methods = tp.GetMethods();
object abc = null;
try
{
abc = Activator.CreateInstance(tp, connString);
}
catch (Exception ex)
{
}
foreach (MethodInfo method in methods)
{
if (tp.Name == "SqlConnection" && method.Name == "Open")
{
Console.WriteLine(method.Name);
method.Invoke(abc, null);
}
}
}
}
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
Firstly, Thanks.
You helped me alot.
I got the concept you are telling.
On the basis of your example, i tried for messagebox function.
But it is giving me exception "Parameter Missmatch".
I am not getting were do i can function returned value
Rahul Kulkarni
|
|
|
|