Jump to content
Xtreme .Net Talk

hercemer

Members
  • Posts

    12
  • Joined

  • Last visited

hercemer's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Was this meant as a reply to my question?
  2. I have written a touch screen overlay program. It is essentially a full screen application with a transparent background, and buttons. Here is the code I use to set the form to be transparent - Me.TransparencyKey = Color.FromArgb("-9999999") Me.BackColor = Color.FromArgb("-9999999") Me.TopMost = True The problem is that the application that runs behind the form is noticeably slower than if the overlay were not running. It redraws slower, menus pull up slower etc� On fast machines (p4, 1gb RAM, �gaming� video card), it is not as noticeable. But, on an 800mhz, on-board video, 256 mb ram for eg, it is very bad. Turning video acceleration off makes a big difference, but not enough. Any others tips/tricks/better ways to do this? Thanks!
  3. Found the solution For anyone interested... Private Const WS_EX_NOACTIVATE = &H8000000 Protected Overrides ReadOnly Property CreateParams() As System.Windows.Forms.CreateParams Get Dim cp As CreateParams = MyBase.CreateParams cp.ExStyle = cp.ExStyle Or WS_EX_NOACTIVATE Return cp End Get End Property
  4. I am writing a virtual keyboard as on overlay for 3rd party apps. I am trying to find a way to keep the .NET keyboard from ever taking the focus from the 3rd part app (started by the .NET App) to prevent the title bar flickering etc... I have tried this link http://www.xtremedotnettalk.com/showthread.php?t=81013&highlight=prevent+focus But it appears to be for 2 windows in the same .NET app, not 1 .NET app and other programs. I am using VB.NET and sendkeys/sendmessage (depending on the user options). Thanks in advance!
  5. I have been trying this code for quite a while, but it always seems to return - "Title as opposed to Title (All the fields do this). It displays OK on a msgbox, but the Quote really messes it up when I try to add it to a listbox or database. Any help would be great, thanks.
  6. I don't suppose you would be willing to share your solution? I am having the same problem - Instead of returning TAG, it is returning "TAG I can get rid of the quote on TAG, but not the other fields. Thanks...
  7. I tried: ------------------------------------------------------------------------ Dim b As Bitmap = New Bitmap("lookout.jpg") Dim newBitmap As Bitmap = b.Clone() b.Dispose() PictureBox1.Image = newBitmap ------------------------------------------------------------------------ But file is still in use when picture is displayed. Thanks for the idea tho'
  8. Looks VERY promising!!! I will give it a shot and let you know (will be sometime tonight). Thanks!!!
  9. I hope I am posting this in the right place. I am making a PictureBox that shows a file called 'lookoout.jpg' The 'lookout.jpg' is generated by a motion camera (everytime there is motion). What I would like, is for the PictureBox to Display Lookout.JPG, and then delete the 'lookout.jpg' (and then display it again while the other image is still showing). Form2 just has a picture box on it, with a close button. ------------------------------------------- Dim form2settings As New Form2() form2settings.Show() ------------------------------------------- Close Button - ------------------------------------------- System.IO.File.Delete("lookout.jpg") -------------------------------------------- Proble: lookoout.jpg is in use by the PictureBox, and cannot be deleted. Is there a way to load the picture into memory so I can delete the original file? Thanks in advance!!
  10. Squirm - that worked perfectly!!! Thanks :) jfackler - Will look into that, looks mike maybe a better solution (possibly less resource intensive...) Thanks ALOT for your help!!!!
  11. I am writing a program to interface with a Motion Cam. I want the form to just sit there and wait until a file exists in the webcam directory (lookout.jpg). I also want to be able to interact with the form while waiting for the file (to change options etc). This is the best I have come up with: ---------------------------------------------------------------------- Sub CheckForFile() Application.DoEvents() If System.IO.File.Exists(strLookoutPath) Then PictureIsPresent() End If System.Threading.Thread.Sleep(500) CheckForFile() End Sub ----------------------------------------------------------------------- This works, but- 1) I would like to get rid of the 500ms delay 2) After a few hours, the program exits (did I read somewhere that a Loop can only run a limited number of times?) Thanks in advance... p.s. This forum is incredible!!!!
×
×
  • Create New...