Search results for query: *

  1. M

    Created screensaver, runs manually but not via Group Policy?

    Resolved Thought I'd update that I resolved this very simply. Turned our it was the old Microsoft 8 character limit restriction problem! :err: Server 2003's Group Policy didn't like it that the screensaver executable had a file name of more than 8 characters. I renamed it and it worked!
  2. M

    Created screensaver, runs manually but not via Group Policy?

    Hi All, I've created a basic screensaver in .Net that displays a slideshow of images full screen and exits on mouse movement/key press. Nothing fancy. It also blanks out any extra monitors the user might have attached. Problem is, although it runs fine if run manually on any PC via Explorer...
  3. M

    GetWindows - How to get all child windows at all levels from an application?

    Never mind, I've just created nested 'Do While' loops which run up and down an array. e.g: lHwndArray(3) = GetWindow(lHwndArray(2), GW_CHILD)
  4. M

    GetWindows - How to get all child windows at all levels from an application?

    Hi, I'm trying to get all the child windows for an application (inc. child of child) but I'm getting really confused using GetWindows and loops as it's only returning the first level of child windows. I'm sure I'm just been a total dunce :drunk: there must be a simply solution. Current code...
  5. M

    API DLL confusion

    Hi Herman, I contacted the developer and it turns out the API can't do what I wanted, plus it was written over 10 years ago and no one seems to know how it works. I'm going to try to use Windows APIs instead to grab text from within application. Cheers, M.
  6. M

    API DLL confusion

    Hi All, As a novice programmer I have only a little knowledge of using APIs so I hope someone can help. I've been given, what the developer called, a "very basic" API which is in the form of a COM DLL file without documentation. I need to use this API to get customer names from a third-party...
  7. M

    Why use 'Protected Overrides Sub OnPaint'?

    Very sorry, I didn't realise your first reply was a link! I'll read it now, Thanks! :)
  8. M

    Why use 'Protected Overrides Sub OnPaint'?

    Ok... but I realise this all relates to inheritance but what is the advantage of overriding the OnPaint handle if an object already has Paint functions (e.g. PictureBoxes, Forms and Labels)? :ambivalence: Thanks, M.
  9. M

    Why use 'Protected Overrides Sub OnPaint'?

    Hi All, A real noob question here that hopefully has a simple answer! Why, when drawing graphics, do most online guides recommend using Protected Overrides Sub OnPaint (ByVal e As PaintEventArgs) rather then the standard paint call an object? :uncomfortableness: I'm drawing graphics...
  10. M

    Question Why do app shortcuts have a number? 'Application Name - 1'

    Updates are deployed via My.Application.Deployment.Update(). When the application loads, a thread checks for updates and installs them if found. Strangely the old shortcut (without the '-1') also points to the new updated application. So the user gets two shortcuts both pointing to the same app.
  11. M

    Question Why do app shortcuts have a number? 'Application Name - 1'

    I've just released a minor update to an application which a client has been using for several months and for some reason the desktop shortcut now has a number at the end. E.g. Application Name - 1 :confused: I've searched Google and this forum but couldn't find an answer as to what would have...
  12. M

    Get network printer’s shared name, not UNC?

    Oh after posting the above I stumbled across this: Printer Information Example - VB.Net 2005 | Wade's Word The example code provided by Wade returns all manor of printer details including server and share names. :cool: Problem, hopefully, solved!
  13. M

    Get network printer’s shared name, not UNC?

    Hi All, I’m using code provided by someone clever than me to print to our networked Zebra printers. This is fine but it requires the shared path of the network printer (not the UNC as returned by PrintDialog.PrinterSettings.PrinterName). Is there a way to get PrinterDialog to return the...
  14. M

    Published updates no longer downloading - problem with signing?

    Thanks JohnH, since my post I had come across the site you linked to but I wanted to be sure this was the cause of my problems. I didn't receive a cert expired warning; just a warning that the cert was "different". Oh well, at least reinstalling the application seems to resolve the problem. M.
  15. M

    Published updates no longer downloading - problem with signing?

    Hi All, I'm completely lost with signing and publishing, I feel like giving up. :( My hard drive crashed recently and I had to reinstall everything. Thankfully I'd backed up my work but something's gone wrong with the project signing/certificates - I had to create a new certificate. Also...
  16. M

    Character size/font via RAW dot matrix printing

    Think I've answered my own question. To find the escape codes, I redirecting RAW print data from a third-party application to a text file. I noted the code characters in text file (shown below) and added them into my application code. Not ideal as I don't know exactly what these codes are...
  17. M

    Character size/font via RAW dot matrix printing

    Hi All, I'm using the code below to successfully print to a dot matrix printer. Only problem is, the character size is too big. I know it can be changed because I have third-party applications that print at a much smaller font. I've searched this forum & the net for clues and I think I need...
  18. M

    feed problem in Receipt Printing

    Result, solved it! Actually it was simple - the default printing commands in .Net just aren't compatible with my client's printer. I followed the code here: How to send raw data to a printer by using Visual Basic .NET to print direct to the printer and it works perfectly! :)
  19. M

    feed problem in Receipt Printing

    I too am having great difficulty stopping a receipt printer from feeding out an extra 7 inches of paper before stopping. The reason, I think, is that a Form Feed code (hex 0c) is automatically added by VB to the print file. This seems to cause some printers to get confused. Any one got any...
  20. M

    Print output adds lots of carriage returns! Why?

    :D OK, so I solved the problem myself! I had screwed up my page size code (and various other parts). The following works fine... Public Class MyPrinter Dim TextToBePrinted As String = "" Public Sub prt(ByVal sText As String, ByVal sPrinter As String) Dim PrntDoc As New...
Back
Top