Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. LauDse

    Create-Access-Modified FileDate NTFS4/NTFS5

    Hi bashless, put the code in a form: Public Enum EFileAttributes faArchive = &H20& faCompressed = &H800& faDirectory = &H10& faHidden = &H2& faNormal = &H80& faReadOnly = &H1& faSystem = &H4& faTemporary = &H100& End Enum Public Enum EFileAccessModes famQuery = 0&...
  2. LauDse

    Attaching IE Browser Obj to C# App - How?

    Hi chronobyte, take a look at http://www.codeproject.com/csharp/webbrowser.asp bye LauDse
  3. LauDse

    LogonUser

    My last idea ... Try to set the LOGON32_LOGON_NETWORK_CLEARTEXT flag: LogonUser wUser, wDomain, wPassword, _ LOGON32_LOGON_NETWORK or LOGON32_LOGON_NETWORK_CLEARTEXT, _ LOGON32_PROVIDER_WINNT50, hToken Look at...
  4. LauDse

    LogonUser

    These are the steps to do it: 1) Get the process handle with "GetCurrentProcess" 2) Open the current process with "OpenProcess" 3) Get an access token with "OpenProcessToken" 4) Now you can call "AdjustTokenPrivileges" to set the required privilegs...
  5. LauDse

    Tree View background color

    The API function you need is "TreeView_SetBkColor"! But i can't get the dll where it's declared, so you need to search ...
  6. LauDse

    Project Load Error

    Replace VERSION 5# Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX" with VERSION 5.00 Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
  7. LauDse

    LogonUser

    I think you don't have the privileges to logon! You have to set the SE_TCB_NAME and SE_CHANGE_NOTIFY_NAME privileges under win2k. Under winxp these privileges are no longer required!
  8. LauDse

    delete an excel sheet from vb app??

    Hi Bastien, Yes. Try this: Dim ExcelApp As New Excel.Application ' ... ' disable warnings ExcelApp.DisplayAlerts = False ' ... do something ' enable warnings ExcelApp.DisplayAlerts = True Bye LauDse
  9. LauDse

    FileTree/List Box/Explorer Drag & Drop interactivity.

    Hi JunkGuy, here is a link to a drag&drop demo: http://www.mvps.org/vbvision/_samples/DragDrop_Files_Demo.zip Bye LauDse
  10. LauDse

    API to get excel file information

    Hi nimrod44, Try this: Dim Excel As Excel.Application Dim i As Long On Error Resume Next Set Excel = New Excel.Application With Excel.Workbooks.Open("C:\test.xls") ' File Properties For i = 1 To .BuiltinDocumentProperties.Count Debug.Print...
  11. LauDse

    Clsid/guid from .dll or .ocx not registered

    Hi gonzoaz, this is easy! Make a reference to "TypeLib Information" (tlbinf32.dll). Dim tlb As TLI.TypeLibInfo Set tlb = TLI.TypeLibInfoFromFile("MSVBVM60.DLL") Msgbox tlb.Guid ' GUID as string That's all bye LauDse
  12. LauDse

    Naming a .dll

    Try this: Create a unique GUID with uuidgen. Compile your dll with the name of the GUID. Example: {12340001-4980-1920-6788-123456789012}.dll Does anybody tried this? Bye LauDse
  13. LauDse

    Map Network Drive Dialog Box

    Hi torturedmind, There is a api function to open the dialog: Declare Function WNetConnectionDialog Lib "mpr.dll" Alias "WNetConnectionDialog" (ByVal hwnd As Long, ByVal dwType As Long) As Long Bye LauDse
  14. LauDse

    Notify when form is created

    Hi javierbalk, Try sublclassing the WM_NCCREATE message. "The WM_NCCREATE message is sent prior to the WM_CREATE message when a window is first created." Bye LauDse
  15. LauDse

    API graphics beginner

    Hi GPerk, ok i've got it. Replace your "SelectObject" statement with: Result = SelectObject(hCC, Picture1.Picture.Handle) You tried to select a DC into a DC, that's not possible;) Picture1.Picture.Handle is the handle to the bitmap, this can be selected into a decice context! Bye...
  16. LauDse

    function that stop the program???

    Have a look at your task-manager. Running your code takes 99% of cpu time ;) Just try sleep and look at the cpu time!
  17. LauDse

    Version Compatibility

    Hi, if you select 'no compatibility' then you must recompile the application using the dll ;) Bye LauDse
  18. LauDse

    What a time to see this - Out Of Memory - Runtime error 7

    Hi, i think that's not a memory problem ;) If you get a 'out of memory', sometimes this means: out of handles I think you have loaded too much icons ;) Test it without icons! Bye LauDse
  19. LauDse

    API graphics beginner

    Hi, to copy a part of the bitmap, you don't need to do so much work ;) Option Explicit Private Sub cmdLoadPic_Click() Picture1.Picture = LoadPicture("midcity.bmp") End Sub Private Sub cmdBitBlt_Click() BitBlt Picture2.hDC, 0, 0, 40, 40, _ Picture1.hDC, 10, 10, SRCCOPY...
  20. LauDse

    function that stop the program???

    Hi, you can use a api function: Private Declare Sub APISleep Lib "kernel32" Alias "Sleep" (ByVal dwMilliseconds As Long) Bye LauDse

Part and Inventory Search

Back
Top