|
You're first move should be to find out if the manufacturer has an SDK for the webcam. If so, then it'll come with documentation on using the SDK to talk to the cam and get images.
If there isn't one, you've options are very limited. You're either going to have to setup the cam to automatically post the image to an FTP server or you've going to have to download a webpage from the camera that's got the image in it, parse the page and get the URL of the image, then download that image using the HttpWebRequest/Response classes.
|
|
|
|
|
Try Video.ocx, it may solve your problem, do a search on google write just video.ocx and you will find the website.
Be a part of solution, rather then be a part of problem
|
|
|
|
|
Video.OCX only works with Video For Windows compatible cameras. Unless he's got VFW drivers for an IP-based camera (highly doubtful!), it won't work with this camera.
|
|
|
|
|
I was following the example in code project
"Calling a DLL C++ function from a VC++ application" posted by Hans Dietrich
I am using Visual Studio 2005 for this example. It works fine.
Now I want the same application to run on different machines which DOES NOT have Visual Studio 2005 installed on them.
I copied all the dll files and vb application's .EXE files on all machine2 but its not working. It gives me an error saying the dll's are not synchronized properly.
What exactly is the procedure of making an application run independently on all machines.
Can someone PLEASE HELP ME in solving this problem.
Thanks
Jyothi
|
|
|
|
|
jyothim wrote: It gives me an error saying the dll's are not synchronized properly.
This isn't the error message. It would help if you posted the EXACT error being shown.
Because you're using a VB.NET app, any machine running this app MUST have the .NET Framework 2.0 installed on it.
|
|
|
|
|
Thank you very much it solved my problem
Jyothi
|
|
|
|
|
hi everyone.
I am quite new to vb.net 2005 and I have been trying to connect my database programmatically to my sql server database. I have moved from one error to the next and I have followed the steps highlighted in the msdn walk through on crystal reports. Every time I run my code, I am getting an error message that states that the load report event has failed. and the object reference has not been set to an instance of the object.
I have tried this several times and I don't know what to do. If anyone can help me I would be most greatful. The code I have been trying to use is as follows.
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Public Class Form1
Private Sub ConfigureCrystalReports()
Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo()
myConnectionInfo.DatabaseName = "Northwind"
myConnectionInfo.UserID = "user"
myConnectionInfo.Password = "bob123"
myConnectionInfo.ServerName = "chiko-shumba"
Dim reportPath As String = Application.StartupPath & "\" & "NorthwindCustomers.rpt"
myCrystalReportViewer.ReportSource = reportPath
SetDBLogonForReport(myConnectionInfo)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ConfigureCrystalReports()
End Sub
Private Sub SetDBLogonForReport(ByVal myConnectionInfo As ConnectionInfo)
Dim myTableLogOnInfos As TableLogOnInfos = myCrystalReportViewer.LogOnInfo
For Each myTableLogOnInfo As TableLogOnInfo In myTableLogOnInfos
myTableLogOnInfo.ConnectionInfo = myConnectionInfo
Next
End Sub
Private Sub myCrystalReportViewer_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles myCrystalReportViewer.Load
End Sub
End Class
|
|
|
|
|
Hi there,
I just want to ask if is it possible to put calculations in a datagridview? in such a way that the column2 = column1 * 30% ...
if it is possible, can you help on how to work on it?
I'm realy new in vb.net eh..
thanks in advance!
ange(",)8
|
|
|
|
|
Nope. You cannot put expressions in the DGV. Putting them into a strongly typed dataset/datatable on the other hand, yes. Then you bind the DGV to that dataset/datatable.
|
|
|
|
|
Thank you sir for replying..
the DGV is already binded with the dataset/datatable.
What shall I do now?
|
|
|
|
|
You don't have a choice. You either rework your strongly typed dataset or you add support code for going through each record in the table and doing the calculation and putting the result in a column in the table.
|
|
|
|
|
Thanks. You gave me an idea for my work.
|
|
|
|
|
I have a dotnet control that i load into a page in the browser. It uses tcp and system.diagnostics(for launching) to communicate with an exe on the PC. The exe can be started up via browser(hidden mode) or a shortcut(visible mode) on the user's pc. If the exe is already started in hidden mode and the user clicks on the shortcut (which would obviously try and start a new instance of the exe), I want the new exe to check if the first exe is running and if running tell the first one to change it's mode and then the new one will just shutdown.
What's the best course of action to get the exes to talk to each other (tcp/api/etc)?
Thanks,
Nathan
|
|
|
|
|
This was just covered a couple of days ago. You're looking for the Mutex class. Search the articles for "single instance" and you'll find examples.
|
|
|
|
|
thanks dave...must of missed it.
|
|
|
|
|
newbie to programming here... I have an Access database that I am binding a TextBox text property to. I would like to have data that is coming in from the database post to the textbox in the (###) ###-#### phone format (in access it is saved as a text type without formatting). I created an event handler for the format and parse event to handle the binding (a copy of which is below). The data is now posting to the textbox as (###) ### - #### without the data (every phone record is filled with the pound sign).
Private Sub PhoneNumberFormat(ByVal sender As Object, ByVal cevent As ConvertEventArgs)
cevent.Value = Format(cevent.Value, "(###) ### - ####")
End Sub
|
|
|
|
|
sabr49 wrote: The data is now posting to the textbox as (###) ### - #### without the data (every phone record is filled with the pound sign).
That's because the format string you've come up with only works with numbers. Since you're storing the phone number as a string, you've going to have to parse that string and insert the characters in the correct place to make a whole new formatted string.
A regular expression might help you in this case.
|
|
|
|
|
Greatly appreciate. Had never used a regular expression b/4 and got it with this regular expression in a jiffy.. Powerful stuff!
Private Sub PhoneNumberFormat(ByVal sender As Object, ByVal cevent As ConvertEventArgs)
Dim strFormatted As String
strFormatted = Regex.Replace(cevent.Value, "(\d{3})(\d{3})(\d{4})", "($1) $2-$3")
cevent.Value = strFormatted
|
|
|
|
|
I want to make a project which is called image editor in vb.net. Its functions are
1. File Menu:
Open an image
Save an image after work on that image
MDI-Multiple Document Interface Support
2. Edit Menu:
Where we can cut, copy and paste the image.
3. Windows Menu.
Where we can arrange multiple windows.
4. Other functions
5. Resize an image
6. Transforms an image
7. Rotate an image.
8. Lighting on images
9. Zooming of images
10. Texturing of images.
Aamir Mustafa
|
|
|
|
|
Would mind terribly asking a question we could actually answer! Right now, the response would be "Permission granted!"
What part of this are you having a problem with??
|
|
|
|
|
If you are looking for help in implementing these features in your application, I would suggest you to search for each topic one by one using Google.
Such as if you search for string ‘Resize an Image+Vb.net” it will give you link to many tutorials, articles and newsgroup replies which explains us the process of resizing an image.
I hope in this way you will be able to get basic information about implementing these functionalities. However if you face any specific problem while creating this application, let us know.
-Dave.
Dave Traister,
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
I am currently trying to build some code which handles response times. I have a start time, an end time and a response time. Obviously enough the end time is the start time plus the response time. For example
Start time
12:00
Response time 6 hours
End time
18:00.
My issue is finding out if the two times went over no working hours. Mainly lunchtime 13:00 - 14:00. If I have the start time and end time whats the best way to find out if they ran over a single lunch time or in some cases several lunchtimes?
Any suggestions as to how to code this or any tools in .net that would make this easier to do would be appreciated. Thanks
|
|
|
|
|
i think u should check to see if the timespan between the start time and the no work start time in question is positive, as in the start time is definitely before the no work start time. then if it is positive, check to see if the time span between the end time and the no work start time is also positive, depending on wat u subtracted from the other, then take it from there. if u dont understand this please say so and i can give u more structured pseudo code.
|
|
|
|
|
I think what you have mentioned here is pretty much what I have described but consider the following. If the start time was 09:00. And the response time was 8 hours, the time to respond by would be 17:00.
The thing is this calculation would have gone over lunch time. At which point I need to add 1 additional hour as lunch time is not counted.
DO you understand my problem here?
|
|
|
|
|
Hi Sam,
My confusion is wat the input is and wat the output should be. Could you please clarify wat you are inputting into the system (whether its start or end time, duration or lunch start and end time), also clarify wat the output u want is and we can take it from there.
Sheers
|
|
|
|