Search:

Type: Posts; User: JohnTurnbull

Page 1 of 5 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: [RESOLVED] Cannot Delete or overwrite files

    If your app uses graphic files in its user interface and those graphics are shipped in a folder in its program folder and you find the app's program folder using App.path The only way to test the use...
  2. Re: Cannot Delete or overwrite files

    Thanks to those who answered. After turning off UAC and still not being able to replace these files I've decided it really isn't worth the hassle. I'll just have to live with the old versions in the...
  3. Re: Cannot Delete or overwrite files

    Sorry if I didn't make myself clear. This isn't user data. I keep that in \users\UserName\appdata\roaming where it should be. These are support files that ship with the program. I have been shipping...
  4. [RESOLVED] Cannot Delete or overwrite files

    Using VB6 installed in C:\Program Files\Microsoft Visual Studio\VB98 under Windows 10.

    My App has some data files which ship in a sub folder of the Program folder. In order to access this in the...
  5. Re: After using multiple instance form, IDE crashes

    173123
  6. Re: After using multiple instance form, IDE crashes

    I do have sp6 installed!
  7. Re: After using multiple instance form, IDE crashes

    Faulting application name: vb6.exe, version: 6.0.81.76, time stamp: 0x3592011f
    Faulting module name: VBA6.dll, version: 6.0.0.9782, time stamp: 0x403ad081
    Exception code: 0xc0000027
    Fault offset:...
  8. Re: After using multiple instance form, IDE crashes

    EditClip is a vb6 form. I have the source code. I don't use subclassing but it does have Krool's replacement Textboxes so they might. It closes with Unload EditClip. Setting each instance to nothing...
  9. Re: After using multiple instance form, IDE crashes

    Thank you for your reply and sorry I took so long to answer. It doesn't cure the problem and there is no obvious "Relevant code" to post. Before OpenTed is run (Your version or mine), the program...
  10. After using multiple instance form, IDE crashes

    Hi folks,

    Ted (EditClip) is a text editor.
    I declare it..


    Global Ted() As New EditClip
    ReDim Ted(0 To 9) As New EditClip
    Unload EditClip
    Set EditClip = Nothing
  11. Replies
    11
    Views
    36,187

    Re: Proper Case In VbScript

    Function MyPC$(Inn$)
    Dim xx&, Tr$, Txt$, Strt&, Tr2$, Bad$, Tr3$
    '--------------------
    Txt = Inn
    Txt = StrConv(Txt, vbProperCase)
    '---------------O'Neal Etc------------
    Strt = 1
    Do
    xx =...
  12. Re: [RESOLVED] VB6 file written to disk under Windows 10 OS cannot be found.

    Having just come across this problem and seeing that dilitante was kind enough to point out the solution...

    "If your program had a proper manifest marking it as non-legacy then attempting this...
  13. Re: [RESOLVED] VB6 file written to disk under Windows 10 OS cannot be found.

    Having just come across this problem and seeing that dilitante was kind enough to point out the solution...

    "If your program had a proper manifest marking it as non-legacy then attempting this...
  14. Re: [RESOLVED] Simulating Win Logo Key with Sendinput

    FAB!
    Again many thanks
    John
  15. Re: Simulating Win Logo Key with Sendinput

    Thank you very much Chris!
  16. Re: Simulating Win Logo Key with Sendinput

    Thanks Chris. I know it can be done with Keybd_event and I will probably end up going back to it. I' would still prefer to get it working with SendInput, a, because, like you, I have a whole setup to...
  17. Re: Simulating Win Logo Key with Sendinput

    I think I may have gone about this the wrong way. I will re-phrase my question....

    Could someone provide me with VB6 code to simulate pressing the left windows logo key using SendInput?
  18. Re: Simulating Win Logo Key with Sendinput

    1. My bad - I have changed it.
    2. Obviously not as the code has been in use for almost 20 years!
  19. Re: Simulating Win Logo Key with Sendinput

    There are no permissions problems. All other keystrokes work. 91 (the left windows key) is the only one that doesn't
  20. Re: Simulating Win Logo Key with Sendinput

    There are no permissions problems. All other keystrokes work. 91 (the left windows key) is the only one that doesn't.
  21. [RESOLVED] Simulating Win Logo Key with Sendinput

    Hi,

    Trying to simulate the Windows logo key using Sendinput and getting nowhere! Any help appreciated....

    Before someone suggests sending Ctrl+Esc instead, that's no good to me. I need to send...
  22. Re: CommonControls (Replacement of the MS common controls)

    Ah!

    The older I get, the dumber I get!

    Thank you both.
  23. Re: CommonControls (Replacement of the MS common controls)

    Well I downloaded the latest version and still...

    xx = SendMessage(Text1.hWnd, EM_LINESCROLL, 0, 1)

    scrolls to the end, not just one line!

    There's no panic as I got round the problem by...
  24. Re: CommonControls (Replacement of the MS common controls)

    Thank you for your quick reply.
    I will download the latest version.
    .SrollToLine doesn't seve my purpose
  25. Handling EM_LINESCROLL

    Hi Krool,

    I have your TextboxW as Text1. When I call...

    xx = SendMessage(Text1.hWnd, EM_LINESCROLL, 0, 1)

    The textbox scrolls to the end, not just one line!

    I stepped through your code...
  26. Re: Find No of first line showing in textbox

    Many thanks!
  27. [RESOLVED] Find No of first line showing in textbox

    Hi All,

    In a multi - line text box which has scrolled. (i.e. the first line is not shown) Is there a way to find the number of the first line that does show?
  28. Re: CommonControls (Replacement of the MS common controls)

    Not using LB_SETTABSTOPS (= &H192)
    Using EM_SETTABSTOPS (= 203)
  29. Re: CommonControls (Replacement of the MS common controls)

    I added this sub to your ComCtlsDemo project....


    Sub SetTabStops(TB As Object)
    Dim TabStops() As Long
    Dim xx&, yy&
    Dim Ret As Long
    Dim Stops&
    '-----------------------
    On Error GoTo Bad
  30. Re: CommonControls (Replacement of the MS common controls)

    Just wondering. Does the latest version handle WM_ Settabstops for TextboxW ?
  31. Replies
    13
    Views
    7,719

    Re: How to properly clear the clipboard

    Hi

    Bit late but if anybody has the same problem and ends up here, the answer is that neither the VB nor API clearings work if they are called when, by chance, some other program has the clipboard...
  32. Replies
    1
    Views
    1,312

    Onedrive Executable Filenames

    Not really a VB question but people are so helpful here and asking in MS forums is like banging your head on a brick wall!

    There are two versions of onedrive.
    I have the version with filename...
  33. Re: How to find executable path given Process ID

    Thank you, thank you, thank you!
  34. [RESOLVED] How to find executable path given Process ID

    Hi,

    I need to find the path to a users Onedrive executable. Microsoft being Microsoft this can either be OneDrive.exe or GROOVE.EXE. I can figure out which it is and get its PID. Then I'm stuck!
    ...
  35. Re: What differences are known between IDE and compiled behaviour

    Problem solved!
    If you use SetProcessDpiAwareness& to 2 to do your own scalling, you must do it before you call EnumDisplayMonitors.

    Either way round works in the IDE but not compiled.

    Thank...
  36. Re: What differences are known between IDE and compiled behaviour

    Admin / non admin makes no difference. The only difference is between interpreted and compiled. Code is way to extensive. Sorry.
  37. [RESOLVED] What differences are known between IDE and compiled behaviour

    I have a program which runs perfectly in the IDE but not when compiled. I am therefore asking for any known differences in behaviour.

    I know about making a window “on top” works in form load when...
  38. How Pause and restart OneDrive synchronization?

    If anybody has done this from VB6, I would really appreciate the code!
  39. Replies
    2
    Views
    1,289

    Tell if onedrive is synchronized

    Anybody know a simple way to check if onedrive is synchronized?
  40. Replies
    43
    Views
    14,869

    Re: [RESOLVED] Per-Monitor DPI Awareness & VB

    If I don't get a top left on a monitor I then go for the nearest as a second resort........



    Function GetMonNo&(Frm As Form)
    Dim xx&, yy&, RetVal&
    '---------
    RetVal = -1
    '--------Try top...
Results 1 to 40 of 161
Page 1 of 5 1 2 3 4



Click Here to Expand Forum to Full Width