Jump to content
Xtreme .Net Talk

Wolfsnap

Members
  • Posts

    19
  • Joined

  • Last visited

About Wolfsnap

  • Birthday 01/21/1964

Personal Information

  • Occupation
    Graphic Artist
  • Visual Studio .NET Version
    VB.NET Standard 2003
  • .NET Preferred Language
    VB.NET

Wolfsnap's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I'm getting this error in my application. My application is set up to where users navigate through different forms as a touch screen interface for a piece of machinery. ON one particular form, I'm getting this error message, but not consistently - it'll come up after an hour, sometimes two. What this particular form does is display info loaded from a database - the form that actually does the communication with the database is the main form, not this one - this form just gets the info from hidden fields from the main form. HELP!!!
  2. Try this link: http://www.vb-helper.com/howto_net_video_capture.html
  3. Another question - how do I post nice clean VB code in its own window here? (I apologize for my ignorance) Wolf
  4. BTW - I've tried all kinds of "settings" for the "ExitWindows" call. 0 logs a user off, and 4 does the same thing, 2 and 1 do nothing.
  5. I need to able to shut down Windows 2000 in VB.net. I'm developing an application that will run on an industrial PC interface controlling a piece of machinery in a truck. When a "job" is complete, I need to shut down the interface to avoid corrupting the OS and systems on the PC (as opposed to the operator just cutting the power). I've got this code so far, which allows me to restart and log off, but it won't work for a full shutdown. Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Integer, ByVal dwReserved As Integer) As Integer 'Declarations Public Enum ExitWindowsFlags EWX_LOGOFF = 0 EWX_REBOOT = 2 EWX_SHUTDOWN = 1 EWX_FORCE = 4 End Enum Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ExitWindows(0) End Sub I think that I need to set some sort of permissions or authorizations to do a full shutdown, but I am having no luck finding a working example to achieve this. Any help would me EXTREMELY appreciated! Wolf :confused::confused:
  6. Is there any way to set text kerning in VB without adding spaces? I want to be able to adjust the spacing between letters in a text display without adding spaces. Thyanks in advance.
  7. That sounds about right - Literally what I need to do is set bit in the PLC to true when the mouse is down, but only when the mouse is down - otherwise the bit is set to false. What I have tried is to set the bit in a MouseDown event, and reset the bit in the MouseUp event - but the communication lag (or something?) keeps the MouseUp event from reaching the PLC. BTW - dunno if this makes any difference, but this is a touch screen (so MouseEnter/Hover events wouldn't really work either)
  8. The problem I'm having is this. I'm developing a control panel interface for a piece of machinery. I need a momentary contact button on the interface, which sends and reads addresses from an industrial PLC. When using just the MouseDown and MouseUp events, if a user just "pokes" the button, the MouseUp event doesn't communicate with the PLC in time. If I start a timer in the MouseDown event to prevent it, then the button hangs if pushed, held, quickly released and hit again. I know, what are the chances that someone's going to do that - but this is a control for an industrial grinder - and I can't take the chance. What I need is some sort of event that checks if the mouse is down, and if so, do an instruction - and if not, stop that instruction. Would there be a way to call on the MouseDown event as a RaiseEvent to check for it's condition inside of a "while" loop? "I hope that didn't sound as silly as it did to me when I wrote it.)
  9. Anybody have any simple code to create a "While MouseDown" event? Any help would be greatly appreciated!
  10. Nevermind... Got it figured. As long as the graphic image shows up for even a split second, the "real" screen builds on top of a latent image of the graphic - the effect is what I was looking for. Before, all the buttons loading on the new form showed the previous form behind them, which looked pretty sad. Now, the image behind the buttons is a graphic of the button anyway, so the "page build" isn't noticed.
  11. OK - I know this has been beat into the ground - but I think I have a twist to it. I have several form with several controls, etc. on each form. When they load, the viewer has to sit through watching the form build itself on screen. What I want to do is display a graphic of what the completed form looks like while the controls load behind it. I'm thinking two different ways - either display a picture box with the graphic in front of the rest of the controls and then set the visible to false after the form loads, or create a new form and display it while the "real" form loads. The kicker is that I would rather not use a pre-set time for the splash screen. Is there any way to determine when a form has completely finished loading? (some sort of "LoadComplete" event...?)
  12. Nope - I've done several projects for furniture people - the most no-paying-est people you'd ever want to meet. I've been stuck for several thousands worth from those "people", to use the term lightly. This project is for an industrial grinder control panel interface (check http://www.vecoplanllc.com). The timer I need will enable customers to time, for example, how long it would take to grind a hopper full of plastic purge, or whatever (yup - sometimes it's furniture parts).
  13. Thanks for the quick responce! I'll delve into your suggestions. What I've written so far actually works fine as far as starting a timer routine based on the system clock - the problem I've got now is "pausing" the timer and picking it up where it left off. I'm guessing I need to place the time at which the timer was paused into some sort of variable and reload that variable into the routine when I restart the timer - but it's kickin my tail right now as to how to write it! It may well be a whole lot easier with your suggestions. Thanks and if you have any more suggestions - I'm more than willing to give 'em a whirl!
  14. Well, I may have come a bit closer to figuring it out. In my "start" button, I've got: ProcStart = System.DateTime.Now Timer1.Enabled = True and in the timer I've got: Dim ProcTimeSecs As Int16 Dim ProcTimeMins As Int16 Dim ProcTimeHours As Int16 ProcTimeSecs = System.DateTime.Now.Subtract(ProcStart).Seconds Label8.Text = ProcTimeSecs ProcTimeMins = System.DateTime.Now.Subtract(ProcStart).Minutes Label9.Text = ProcTimeMins ProcTimeHours = System.DateTime.Now.Subtract(ProcStart).Hours lblHours.Text = ProcTimeHours This seems to work OK - but is the code efficient? Thanks.
  15. Is there an easy way to convert a tick value (read as an integer) into a formated time display? Or, to be more precise - what would be the beat way to create a "stopwatch" comparing the stopwatch time to the system clock time. I have an application where a stopwatch-type timer would be a nice feature, but the application is fairly CPU intensive and is running on a 600MGZ Touchscreen IPC - meaning that setting up the stopwatch in a timer control is wayyyyy off. I'm not so concerned about the display (as far as the timer displaying every second that ticks by) as I am thet the timer be accurate. (These timed tests could be several hours long). I've gotten to the point where, when the timer is started, the current tick count is placed into a variable, then that variable is subtracted from the ongoing tick count - but I can't figure out how to get the resulting tick count to display as a formatted time. HELP!!
×
×
  • Create New...