Search:

Type: Posts; User: Pteranodon

Page 1 of 4 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    9
    Views
    5,335

    Re: Scaling of forms is off

    Goshblimey. This is so embarrassing. I meant to say right and bottom. Right and bottom. Right and bottom. I always get my lefts and rights confused (drove the driving instructor crazy...). Yes,...
  2. Replies
    9
    Views
    5,335

    Re: Scaling of forms is off

    Screenshot below. See that menu has dropped to left. See that buttons on right of underneath form are cut off on right - they do not extend full width. See that one topmost form, form is cut off on...
  3. Replies
    9
    Views
    5,335

    Re: Scaling of forms is off

    I'm afraid dilettante is closest to the real answer here.

    The forms are smaller than the work area. The work area is huge, as you can imagine, at such a high resolution. And no matter where the...
  4. Replies
    9
    Views
    5,335

    [RESOLVED] Scaling of forms is off

    A client got a new computer, Windows 7 with an HP TouchSmart screen. Our VB6 app is being cut off on the left and bottom on almost all screens/forms. The screen resolution is currently set to 1600...
  5. Recommend Scanning/Image component or ActiveX

    I'm developing a simple document management system and looking for scanning and probably also an image component. It should be simple to implement and relatively inexpensive to purchase (several...
  6. Replies
    5
    Views
    1,212

    Re: Timer in loop

    Modified relevant code. This seems to be doing the right thing.

    The .Read call does not block execution, which is necessary here, so a loop is still used, but the Thread.Sleep (250) before the...
  7. Re: How to make application automatically update itsself

    You should also change the scope of the declarations and functions. I posted these out of a larger app but for your purpose you might not need this scope.
  8. Re: How to make application automatically update itsself

    You can pass any 2 filenames to this function and it will compare them, and return with a yes/no if sFile1 is newer than sFile2.

    You can also write a similar function to compare file versions.
  9. Replies
    0
    Views
    592

    Application auto-update permissions

    How is it done/standard industry practice for an application to auto-update itself or its sub-components?

    I'm encountering a problem where the end user does not have write permissions on the...
  10. Re: How to make application automatically update itsself

    Yes.

    You can use the code below to compare file times. There is also an API call GetFileVersionInfo you can use to get version/revision info.


    Public Type FILETIME
    dwLowDateTime As Long...
  11. Replies
    5
    Views
    1,212

    Re: Timer in loop

    The thing is, even if on the client end the WaitForAcknowledgment is true, the server is not necessarily going to send one. One-way messages are perfectly acceptable. So if an acknowledgement...
  12. Replies
    5
    Views
    1,212

    Timer in loop

    As per the code below, this app sends a message via TCP sockets and waits for a reply. It should timeout after 3 seconds (the interval set for tmrSend) or after the reply arrives.

    The problem...
  13. Replies
    6
    Views
    568

    Re: Choosing recordset field

    Took a third option: redefined the view to output what I wanted in the column. Thanks!
  14. Replies
    6
    Views
    568

    Re: Choosing recordset field

    Too many fields. Also, it selects from a VIEW, not a table. Using SELECT * will select all fields from the view even if the underlying view definition changes, which makes changing code easier and...
  15. Replies
    6
    Views
    568

    Re: Choosing recordset field

    The holy grail of compatibility. I'm trying to figure out a way of working with existing VB code, which is hardcoded for rs!Code. The query resides on SQL Server in a stored proc. That's the one I...
  16. Replies
    6
    Views
    568

    Choosing recordset field

    There's something interesting about the way ADO chooses a field in a recordset.

    This query:
    SELECT (CASE WHEN Code = 'BadCode' THEN NULL ELSE Code END) AS Code, T.* FROM Table1 T

    will output a...
  17. Replies
    2
    Views
    745

    Easy front-end access to SQL Server

    What's a good tool e.g. MS Access, for ad-hoc access to one particular table residing in SQL Server for updating, deleting, and inserting information on another machine?

    There's one particular...
  18. Replies
    4
    Views
    659

    Re: Tabbing (Tab key) in loop

    Thank you. In the GotFocus event of the button, I set the tabindex of the textbox to be one past the button. Then in the textbox's GotFocus event, I set it back to its original tabindex so it...
  19. Replies
    4
    Views
    659

    Re: Tabbing (Tab key) in loop

    Yes, that's the tabindex. But there are many controls on the form, and I would like to use SetFocus to move the focus back to the textbox after the user tabs on the command button. According to the...
  20. Replies
    4
    Views
    659

    [RESOLVED] Tabbing (Tab key) in loop

    I'd like to have a certain subset of controls on a form run through the tab key in a loop, beginning in a textbox and ending in a command button, which if it has focus and the user presses the tab...
  21. Replies
    4
    Views
    923

    Re: File tree storage

    The application will be doing the file retrieval by file name, not the user by using Windows Explorer. So for example, the user would only need to open the customer's file in the app, and the app...
  22. Replies
    4
    Views
    923

    File tree storage

    Hi,

    This is not strictly a VB6 question, rather more one of Windows file storage, but surely the experts here will have some smart input :)

    I'm developing a scanning application. What's a more...
  23. [RESOLVED] Err.Raise in standard module CAUSING error

    This handler

    Public Sub SaveCustomTab(frm As Form, rs As adodb.Recordset)

    On Error GoTo eh_Save

    Dim iColumn As Integer, ifield As Integer

    For iColumn = 1 To...
  24. Thread: Logevent

    by Pteranodon
    Replies
    1
    Views
    548

    Logevent

    I want to get rid of the the app.logevent calls that write to a .log file in the app folder. This is causing too many problems in installs, where the app folder does not have write permission and...
  25. Replies
    6
    Views
    716

    Re: Program on Startup

    That's overkill, no?
  26. Replies
    6
    Views
    716

    Re: Program on Startup

    Thanks for the advice, I made it run as a service using SRVANY.exe.

    The only remaining q is, is there any way to see the screen the app has. Even when I clicked "Allow service to interact with...
  27. Replies
    6
    Views
    716

    [RESOLVED] Program on Startup

    This is not a VB6 question per se, but applies to a VB6 program I have written.

    This app is a "listening" app that resides on a server and needs to start up when Windows does. To this effect, it...
  28. Replies
    2
    Views
    624

    .Exe losing icon

    Why does the .exe file "lose" its icon sometimes when compiling?

    I check the project properties and the correct .frm is selected for the app icon. Yet after compiling the app it seems to have the...
  29. Replies
    3
    Views
    626

    Re: Stream.write client not getting data

    So no stream.close, stream.dispose, or client.close? Just let the garbage collector take care of all that when the sub exits?

    Or rather, try something like Stream.Close(500)?
  30. Replies
    3
    Views
    626

    Stream.write client not getting data

    This app is trying to send messages to a client listening on the port. The client's logs show that their port is being opened and closed, but no data coming in.

    Is there a bug or something...
  31. Replies
    5
    Views
    6,353

    Re: String.format zip code

    Yup. Phone numbers and the like also seem difficult. WTH?
  32. Replies
    5
    Views
    6,353

    Re: String.format zip code

    I will have to if there's no better way, I guess.
  33. Replies
    5
    Views
    6,353

    Re: String.format zip code

    Would like, the first five digits. Or generally, the results you'd get in VB6 when you use the Format function :)
  34. Replies
    5
    Views
    6,353

    String.format zip code

    What is the right way to use a custom format string on .e.g a zip code?

    The zip code in the database might have 9 characters, but the program should only output five. Using...
  35. Replies
    10
    Views
    1,013

    Re: Creating binary file

    I've tried several decoders. They all give the same output.

    Yes, the first two characters are PK.
  36. Replies
    10
    Views
    1,013

    Re: Creating binary file

    I wouldn't want to change the output of the downloaded stream to recreate the text file(s) inside the .zip archive, outside. There may be multiple text files inside one zip, there may be folders,...
  37. Replies
    10
    Views
    1,013

    Re: Creating binary file

    sDecodedContents is a string with some "unreadable" characters. It is declared as string. I have also tried using a byte array instead of a string to read back the contents of the base64-encoded...
  38. Replies
    10
    Views
    1,013

    Re: Creating binary file

    I downloaded the raw data and the same thing happened when decoding it and outputting it to a .zip file.

    Yes, there's plenty of English in there. The body seems to be in human-readable English,...
  39. Replies
    10
    Views
    1,013

    Creating binary file

    I'm downloading a Base64 encoded string from a webservice, and using the Base64 class here http://www.vbforums.com/forumdisplay.php?f=43 for decoding, then trying to save the decoded string to a file...
  40. Replies
    19
    Views
    129,898

    Re: VB - Fast Base64 Encoding and Decoding

    I am getting a "garbage at end of zipfile" message when trying to open a .zip file created with the decoded contents of a string using this decode code. Different .zip programs, like Enzip and...
Results 1 to 40 of 127
Page 1 of 4 1 2 3 4



Click Here to Expand Forum to Full Width