|
Try the VNC web site for details.
Use the best guess
|
|
|
|
|
See here[^].
That's a library that implements VNC, and you can use it in .NET; you'd still have to write a client to use it.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
You could use DotNetVNC/[^].
A similar question has been posted in here before[^]. You might want to use the search function before next time.
Or you use VNC#[^], as Eddy mentioned before.
|
|
|
|
|
Hello
here is a little difficulty:-
there is a program:- (source:pg 750: C# 4 Complete Reference by Herbert Schildt , McGrawHill )
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;
namespace scratchpad3
{
class Program
{
public static void Main()
{
int[] a = { 1, 2, 3, 4, 5 };
MyThread mt1 = new MyThread("Child #1", a);
MyThread mt2 = new MyThread("Child #2", a);
mt1.Thrd.Join();
mt2.Thrd.Join();
}
}
class SumArray
{
int sum;
object lockOn = new object();
public int SumIt(int[] nums)
{
lock (lockOn)
{
sum = 0;
for (int i = 0; i < nums.Length; i++)
{
sum += nums[i];
Console.WriteLine("Running total for " + Thread.CurrentThread.Name + " is " + sum);
Console.Read();
Thread.Sleep(10);
}
return sum;
}
}
}
class MyThread {
public Thread Thrd;
int[] a;
int answer;
static SumArray sa = new SumArray();
public MyThread(string name, int[] nums)
{
a = nums;
Thrd = new Thread(this.Run);
Thrd.Name = name;
Thrd.Start();
}
void Run()
{
Console.WriteLine(Thrd.Name + " starting.");
answer = sa.SumIt(a);
Console.WriteLine("Sum for " + Thrd.Name + " is " + answer);
Console.WriteLine(Thrd.Name + " terminating.");
Console.Read();
}
}
}
the o/p is given as;-
Child #1 starting.
Running total for Child #1 is 1
Child #2 starting.
Running total for Child #1 is 3
Running total for Child #1 is 6
Running total for Child #1 is 10
Running total for Child #1 is 15
Running total for Child #2 is 1
Sum for Child #1 is 15
Child #1 terminating.
Running total for Child #2 is 3
Running total for Child #2 is 6
Running total for Child #2 is 10
Running total for Child #2 is 15
Sum for Child #2 is 15
Child #2 terminating.
My difficulty is at line that is starred
that line shows a delegate but you see in the form: Thrd = new Thread(this.Run);
shouldn't this be: Thrd = new Thread(this.Run()); ---- Is this a paradigm shift or ----????????????????????
|
|
|
|
|
As is explained here[^], the argument to the Thread class is A ThreadStart delegate that represents the methods to be invoked when this thread begins executing.
So long as you are pointing to a method that exists and is visible to this class, you don't need to worry about () .
|
|
|
|
|
Hello Abhinab
If you may put it in length slightly, it will help me
---------------
Yea another aspect
How to award points for a good answer
|
|
|
|
|
You're not calling the function at that point, so no parentheses.
|
|
|
|
|
Calling a method is one thing. Getting the method "pointer" is another thing.
When you create a thread, you want the Thread to execute a method. You should not execute the method yourself. So, you give a method name, not a call, to the thread.
|
|
|
|
|
I want to use this code
TextBox1.DataBindings.Add("Text",DataTable,"FName");
in web application project but it does,t have the library.in web form the library is in the system.windows.forms.controlbindingscoll… but I can,t handle it in web application.what is the solution?
|
|
|
|
|
Ask your question here[^].
|
|
|
|
|
behrad kiani wrote: I want to use this code You can, if you write Windows-applications.
behrad kiani wrote: but I can,t handle it in web application. Try the knowledgebase[^]
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
my project name:webcam based credit card reader with face recognition
i search on library in c# to read bar code by using cam but i don't found
so if anybody can help me i need this library coz i don't have time plz help me?? confused:
|
|
|
|
|
What the heck does "library in c# to read bar code by using cam" have to do with "webcam based credit card reader with face recognition"?
I have never seen a credit card with a barcode on it, and strangely, I've never seen a face with a (readable) barcode on it.
Perhaps if you started by searching for relevant information it might speed your project along...
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)
|
|
|
|
|
|
|
|
i have a table which has attributes such as fname,lname and address.i can show the details of all these attributes togheter with tablegridview and other data objects but I cant access to specific attribute.for example I want to show just the fname in the texbox1.what is the command
|
|
|
|
|
Assuming the UI is WPF/Silverlight (View) in the subject.
Bind the view to a datacontext, this datacontext should have the collection, bind the grid to the collection, bind the column to the fieldin the collection.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Those are called "columns", not "attributes". Attributes have a very different meaning in .NET.
|
|
|
|
|
so what is the solution please help
|
|
|
|
|
Mycroft already gave you the solution.
|
|
|
|
|
i found it but it doesn,t work in web application(asp.net) it just works in windows form mode.the code is:
TextBox1.DataBindings.Add("Text",DataTable,"FName");
|
|
|
|
|
Go back to your original question and find the part where you specified you were working in ASP.NET. Oh, that's right, you didn't do that!
There's an ASP.NET forum to ask yor question in.
|
|
|
|
|
|
when i update in parent table i want automatic change in child table.
what will code for this questions
|
|
|
|