|
This is the wrong forum for this question. Please ask this here[^].
|
|
|
|
|
Hi!!
I have some problems.
Actually I do a survillance using webcam project(using c#)
I need to use my webcam to monitor activities on somewhere
recording and connect it to server .
Webcam can use more than one & client must be a windowsservice for survillance.
this is activities that I do
client:
1.Recieve a remote from server.
2.connect to webcam & capturing using Webcam_Capture.dll.
3.send it to server using RTP.
Server:
1.Setting & Remote to client.
2.Save picture for client.
3.Show Picture.
and I have a problem now because
First in Client I use Windows Form and now I need to change this code to be a windowsservice.
This service need to capture a picture from webcam by using Webcam_capture.dll
So I create a variable From Webcam_capture.dll but this class reference System.Windows.Form.usercontrol
that must add a reference to System.Windows.Form .
How can I do for this problem??? Please Help me !!!
thanks,
PZ
|
|
|
|
|
Ok, this is just a tiny bother, but I'll ask anyway. While debugging is sometimes get status messages on my console that look like this:
The thread 0x15cc has exited with code 0 (0x0).
This is nice in itself, but since I've got a whole bunch of threads running I'd like to see what thread is done running.
I could of course use a simple Debug.WriteLine("The thread " + Thread.CurrentThread.Name + " has exited") statement to see what thread has completed.
But I'm wondering if VS2005 can't be set to automatically replace the threadnumber with the thread name I assigned it?
Standards are great! Everybody should have one!
|
|
|
|
|
AFAIK it will not be possible since the Windows kernel does not hold thread names.
Have you ever seen a utility (TaskManager/SysMonitor/SystemInformation/...) show thread names?
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Well no, but since the message does mention the thread's number I figured it should be easy for VS to display the threadname that's linked to it...
Standards are great! Everybody should have one!
|
|
|
|
|
I have 2 webforms form1.aspx and form2.aspx. on form1 i have 2 buttons EDIT and NEW and on form2 i have SAVE and UPDATE .... I want to disable UPDATE button on form2 when i click NEW buttton on form1 and similarily i want to disable SAVE button when i click EDIT button in form1 . as EDIT buttton only should enable UPDATE and NEW should enable only SAVE
please ..Its Urgent !!
|
|
|
|
|
If you are opening form2 from form1, pass a value from form1 indicating which button was pressed. In the page_load event handler, enable or disable the button depending on the value received.
"You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"
|
|
|
|
|
hi , i need ur help i m doing asp.net 2005 using C# , so i want 2 send emails automatically from database at a particular time. so what can i do this program ..plz..tell me..
thanks 2 all..
|
|
|
|
|
Are you using SQL Server? If so, you can use SQL Server to do this automatically by setting a task to run at a certain time (SQL Server has a job manager), and using the sp_sendmail functionality of SQL Server.
|
|
|
|
|
Nice. Learn something new every day. Don't do much SQL Server stuff for a while now, out of touch.
|
|
|
|
|
I'm glad I can pass some of this on. There's no start to my talents.
|
|
|
|
|
plz...try 2 get solution for this i need urgent brother....
thanks 2 all..
|
|
|
|
|
hello led mike..
so tell me brother ..how can i do without sql server.. plz..tell i need some urgent.. i need code with sql server or without sql server..
thanks 2 all..
|
|
|
|
|
If you want to do this without SQL Server, you are going to have to write a Windows Service that runs all the time. Inside the service, you need to run a timer which fires periodically. When it fires, you need to check the current time and send your mail message if it's appropriate. Hint: take a look at the MailMessage or SmtpMail class to figure out how to send your message.
Rajeshwar Developer wrote: i need code with sql server or without sql server..
You're not going to get the code. We don't write software for others - if you need this then you should go to rentacoder. We are a volunteer only forum and people here don't have time to write the software for you; and please - don't say it's urgent. Every post is urgent for somebody - you are more likely to antagonize people by saying this.
|
|
|
|
|
ok thanks brother..but i m doing web application..so how could i do? we r not suppose 2 do using windows service know..
but brother do this job 4 me try 2 understand ...
thanks 2 all..
|
|
|
|
|
If something has to be triggered at a specific time, then you need a mechanism that is running permanently. This was the reason I suggested using the Sql Server job manager in the first place. If this is not possible, you either need to write a Windows Service, or you could write an application that is fired off from the scheduler running under your OS. There is no way to do this automatically from a website - it must be run from the OS (hence a Windows service or the task scheduler).
|
|
|
|
|
thanks brother ..i know using trigger we can do .. but i cant able 2 understand how can i do.... i think this task becoming 2 hard..
thanks 2 all..
|
|
|
|
|
thanks brother... i know using trigger we can do this task ..but i cant able 2 understand how 2 do .... i think this task becoming 2 hard know..
thanks 2 all..
|
|
|
|
|
how to detarmine mouse event c# row selection with key.
like shift or controls key.
so how can be find to select row according to ctrl or shift key
amit
|
|
|
|
|
Just use the normal mouse handler in combination with System.Windows.Forms.Control.ModifierKeys .
Standards are great! Everybody should have one!
|
|
|
|
|
Hello everyone
I've written a little application to load pictures and display them on a windows form at the same time. What I've done is put a group of PictureBoxes onto a scrollable panel, and let the PictureBoxes draw their contained images.
However, I find it's very unefficient. When I scroll the containing panel up and down, the already drawn PictureBoxes are redrawn again, which is quite undesirable.
So I'm wondering which event causes the PictureBoxes to be redrawn? And when will the event be raised?
Worse still, I even have no idea which one is doing the actual drawing job, the PictureBoxes or the containing panel?
Can anyone help me with this? Thank you!
|
|
|
|
|
Not exactly answering your question, but the general advice is to avoid using PictureBoxes, and do your own custom painting directly.
|
|
|
|
|
Can any body tell me the advantages and disadvantages of both kinds to get to know if a file is in a specified directory.
I have a directory in the network and a application that should work with the file took into the directory.
I try to do it with a FileSystemWatcher, but the problem is, if the network connection failed, the FileSystemWatcher did'nt react if the network directory is already available.
So i need to reinitialize the FileSystemWatcher in a while again.
But i also heard to poll the file system isn't a good idea because it slows the cpu down.
(Is it more than the FileSystemWatcher? Can anybody suggest (a good loop time for) polling?)
Thank You for your suggestions...
|
|
|
|
|
You could create a thread, spins in a loop and reinitializes the FileSystemWatcher from time to time using Thread.Sleep in between. As FileSystemWatcher uses events this would effectively create a mix of polling and signaling.
|
|
|
|
|
Yes i already do so, but i think: 'is this mix good?', isn't it better only to poll the file system instead using the file system watcher?
|
|
|
|