Thanks for the link, but I had already found that and it like many others use the clipboard for capturing still shots. For example, that articles code for the function to capture an image uses... '---copy the image to the clipboard--- SendMessage(hWnd, WM_CAP_EDIT_COPY, 0, 0) '---retrieve the image from clipboard and convert it ' to the bitmap format data = Clipboard.GetDataObject() I have found an alternative to that scheme but now I am having problems forcing that window to paint it self or atleast think it is painted when it is hidded, as sometimes i get a black capture image. -Jason
jasonpb
Posts
-
AviCap -
How can make an entry into WAB with VB.net? -
I need helpThe code I posted should work for your databinding. If not, the only other thing I can think of is it dont like the Characters التاريخ . Try replacing them characters with the actual integer index of the column if you know what that would be. -Jason
-
Transferring Application Log to a fileFor example.. lets say you wanted to back up the System event log.. C:\WINDOWS\system32\config\SysEvent.Evt Good luck trying to read it though, the evt files are encoded Then there is C:\WINDOWS\system32\config\System.Log But you probably wont be able to open because Windows will have a tight grip on it. My suggestion is this... Open up your server explorer in Visual Studio and find the log you want to use. Click and drag that log over to your form or component. It will have an event that gets fired whenever something writes to it, and will send that message to that event. So you could start achiving that way, or you could just periodically read the logs. -Jason
-
ConversionI dont think that Vb has a built in conversion method for that, although I may be wrong. But you can use the Convert function in SQL to do it. CONVERT(varbinary(Length), @TheVarChar)) In your case, the length parameter would be optional -Jason -- modified at 4:07 Thursday 2nd February, 2006
-
Black ScreenshotI have a chat app that use a webcam. I am taking a screenshot of the preview window in order to get the image. Only problem is, if the window is hidden or say minimized, my images come back as big Black square..ughh Anyone know how to get the window to keep painting itself when its hidden or minimized? Any help would be appreciated. Thanks -Jason
-
Black ScreenshotI have a chat app that use a webcam. I am taking a screenshot of the preview window in order to get the image. Only problem is, if the window is hidden or say minimized, my images come back as big Black square..ughh Anyone know how to get the window to keep painting itself when its hidden or minimized? Any help would be appreciated. Thanks -Jason
-
replaceI agree. What does it matter where the string came from? He simply wanted to know how to fix the string by replacing the double backslashes with singles. Problem was solved. -Jason
-
I need helpAssaf82 wrote:
TextBox5.DataBindings.Add("text", ds, "Mouch.")
Try this... TextBox5.Text = ds.Tables(0).Rows(0).Item("التاريخ").ToString TextBox5.DataBindings.Add("Text", ds.Tables("Mouch"), "التاريخ") I am assuming that "التاريخ" is an Item of the Table "Mouch" -Jason
-
AviCapMy whole post was about avoiding the clipboard, when reading the documentation, it says there are alternatives to the clipboard, but i have yet to make any of them work. Since my app should allow for text editing in other areas of the app, I do not want to use the clipboard, for this reason... I was using the clipboard to start, but then when testing, i realized that I was losing some stuff that I had copied and had been replaced with an image. So then I decided as a workaround to right before I save the image to clipboard, I would copy the contents in the clipboard to memory, then send the image to it, retrieve the image back, then reset the contents of the clipboard back to its original contents. Most of the testing I did like this worked ok, but every now and then, the contents would get mixed up and where it should be saving an image it was saving text that was copied into the clipboard and vice versa. The documentation states that you can save it to some sort of an independant bitmap, but I do know how to go about doing that. Any suggestions? -Jason
-
Urgent - - systray & messageYou would need to use the NotifyIcon to get your app to show in the system tray. As far as the notification, just use a new form for a popup. -Jason
-
AviCapDoes anyone know how to capture webcam images using avicap32.dll and not save the images to the clipboard. I would like to be able to actually stream the images 'into' the a picture box or any other control capable of holding an image, and then retrieve an image at any given time by way of the Image property. I do not want to use the clipboard because in my app a user may be using it for other things such as text editing, etc.. I have used DirectShow but avicap32.dll in my case would be better suited. Any help at all would be appreciated. -Jason
-
Want to start Windows service after user loginOne thing you might consider, since it sounds like your not concerned about it running if nobody is logged on, is change the account that the service runs under. So instead of having it run under the local system account, have it run in a user account. If that is not an option because you want to continue monitoring certain events even if nobody is logged on, then (I dont know of any Loggedon or off events) I would start a new thread and start an infinite loop to check what user is logged on. When you get a different name or you dont get a valid name then raise an event. -Jason
-
I need helpIs your code running in a separate thread? -Jason
-
How to image from image boxIn a Picturebox for .Net...
'save file path Dim Path as String = "C:\SavedImages\Image.bmp" ' Save to file Picturebox.Image.Save(Path)
Picturebox being the name of your control. -Jason