Search:

Type: Posts; User: r0ach

Page 1 of 13 1 2 3 4

Search: Search took 0.25 seconds.

  1. Replies
    6
    Views
    5,354

    Re: C# lockbits.

    It's correct. By calling the ToArgb() method, you are essentially converting the 24bit color (r, g and b) to a 32 bit color and The alpha part is defaulted to 255. Converting these 4 bytes to a...
  2. Replies
    4
    Views
    2,457

    Re: Populate TreeView with File System

    I haven't touched VB6 in a long time but I remember that Dir() presents a problem. It doesn't remember where it was as you'd expect. I've found that using the Dir() function - checking for directory...
  3. Replies
    2
    Views
    658

    Re: File as Logical Drive

    Thanks Quiver, I'll check it out.
  4. Replies
    6
    Views
    750

    Re: On Error Go To Problem

    first, Lord Orwell is right, this is not the way to do it.

    Second, your error stuff should be at the bottom. AND (IMPORTANT) you should exit sub BEFORE your error stuff.

    Here's the revised...
  5. Replies
    2
    Views
    658

    File as Logical Drive

    Hi,

    I'm not sure if this is the correct place to post this;

    I am developing a filesystem within a file. This is a bit like the Structured Storage API. Is there any way I can have my file...
  6. Replies
    5
    Views
    550

    Re: i need help to send email

    if you don't want to use any "tools", you'd have to use sockets and smtp.

    SMTP RFC 821
    with Extended SMTP RFC 6321

    Additionally, you'll need a SMTP server to connect to.
  7. Replies
    4
    Views
    534

    Re: Repeat forms

    Yeah, forgot about that. You can edit the copy in notepad and just change the part that says:
    Begin VB.Form Form1
    to say:
    Begin VB.Form Form2

    or whatever, before adding it to the project
  8. Replies
    4
    Views
    534

    Re: Repeat forms

    you could make a copy of the actual file, and add it to the project.
  9. Re: deleting files with specified criteria - [RESOLVED]

    No problem
  10. Replies
    3
    Views
    2,593

    Re: A Problem with GetFileAttributes

    Seems some files are both ReadOnly and Archived (&H20)
  11. Re: Finding week of year when year starts 01/04

    Would that mean that 01/04/2008 to 07/04/2008 is week 1? This will give you the weeks that passed since whichever date (01/04/2008 in your case)

    DateDiff("ww", CDate("01/04/2008"), Now)...
  12. Re: deleting files with specified criteria

    Use the FileSystemObject. You'll have to reference "Microsoft Scripting Runtime"

    Dim fso As New FileSystemObject
    Dim oFolder As Folder
    Dim oFile As File
    Set oFolder =...
  13. Replies
    2
    Views
    451

    Re: OwnerDrawn control question

    Hi,

    No it doesn't. That's exactly what I need to do.

    The grid allows me to OwnerDraw a cell. If a cell is set to be owner drawn, it will fire a DrawItem event with the Column, Row, DC, Left,...
  14. Replies
    2
    Views
    451

    OwnerDrawn control question

    Hi,

    We have a grid, and our client wants to put controls in some of the cells. The grid allows me to OwnerDraw a cell. Is it possible to "Draw" the required controls into a cell and keep it...
  15. Replies
    5
    Views
    499

    Re: asking for a code!

    that means absolutely nothing. start what? delete what? search what?
  16. Replies
    1
    Views
    438

    Re: Computing date and time??

    use the DateDiff function
  17. Replies
    11
    Views
    3,541

    Re: max and min math function help

    You'll have to create your own


    Public Function Max(ParamArray numbers() As Variant) As Variant
    Dim I As Long
    Dim TheMax As Variant

    TheMax = numbers(0)
    For I = 1 To UBound(numbers)
    ...
  18. Thread: Need help fast!

    by r0ach
    Replies
    38
    Views
    1,176

    Re: Need help fast!

    Sorry si and timeshifter.
  19. Thread: Need help fast!

    by r0ach
    Replies
    38
    Views
    1,176

    Re: Need help fast!

    Set the visible property to true after each second. Make the pictures control arrays. Put a timer on the form and set it's interval to 1000 and Enabled to False. 1000 is 1 second. In the timer's...
  20. Replies
    6
    Views
    646

    Re: Memory Leak problem (?)

    Thanks guys. Your helped is greatly appreciated. Issue is solved. The GDI Objects column advice helped a lot. There is a DestroyIcon, but someone was passing in the icon's ID. This didn't work. Had...
  21. Replies
    6
    Views
    646

    Re: Memory Leak problem (?)

    It's a tremendous amount of ancient code that uses ExtractIconEx to extract icons from exe's to associate with files. It's drawing it into a picturebox before adding it to an imagelist. Most of the...
  22. Replies
    6
    Views
    646

    [RESOLVED] Memory Leak problem (?)

    Hi,

    Is there an app/way of seeing all the instantiated objects in a running application?

    We are running out of memory real soon, and I believe it's because some object is being created over and...
  23. Replies
    7
    Views
    722

    Re: What does Randomize exactly do?

    Wow, I didn't know any of this. I was pretty sure passing in the same seed gives the same results, as I've used it before like that. Much like specifying the Game Number in FreeCell. Using the game...
  24. Replies
    7
    Views
    722

    Re: What does Randomize exactly do?

    Randomize sets up the randomizer with a seed. If you use the same seed, the same "set" of random numbers will be returned. So,


    Randomize 1234

    will always return the same set of numbers. Using...
  25. Replies
    8
    Views
    2,085

    Re: [RESOLVED] MeasureString API

    Ooh Thanks
  26. Replies
    8
    Views
    2,085

    Re: [RESOLVED] MeasureString API

    Haha. That's almost what I need to do. I'm using a ThirdParty grid control that works a bit like a spreadsheet. Our client wants the dropdownbox to be the width of the column, unless the textwidth...
  27. Replies
    3
    Views
    1,283

    Re: Form.TextWidth alternative

    Thanks.

    The class manages a third party grid control on several different forms. I never intended to reference the parent form, so I didn't include the functionality. To update the class and then...
  28. Replies
    8
    Views
    2,085

    Re: MeasureString API

    Thanks, I'll give it a shot.
  29. Replies
    8
    Views
    2,085

    Re: MeasureString API

    Hmmmm. Not good. I've used it in .NET before. I just need to use an alternative to the Form.TextWidth() VB6 function since I'm working in a class, and don't want to create a form just for this...
  30. Replies
    3
    Views
    1,283

    [RESOLVED] Form.TextWidth alternative

    Hi,

    Anyone know of an alternative for the Form.TextWidth function? I need to use it in a class, so I cannot use the Form's function.

    Thanks
  31. Replies
    8
    Views
    2,085

    [RESOLVED] MeasureString API

    Hi,

    I just searched for about 2 hours to no avail. Can anyone give me the declaration for the MeasureString API? I need to use it in VB6

    Thanks
  32. Replies
    9
    Views
    599

    Re: How can search for history in the database

    what? I'm really sorry, but I cannot make any sense of the above.
  33. Replies
    1
    Views
    740

    Re: ADO replace value function

    Just use this

    Set rsRecordset = New ADODB.Recordset
    rsRecordset.Open "SELECT * FROM the_table WHERE FCUIPAddress = '" & Text1.Text & "'", conConnection
    If rsRecordset.BOF And rsRecordset.EOF...
  34. Replies
    5
    Views
    511

    Re: Ma code has a problem

    Woa. Didn't even see that. Hehehe.
  35. Replies
    5
    Views
    511

    Re: Ma code has a problem

    First problem is your connection string.

    cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
    App.Path & "\dbs\shalomhse.mdb"

    It's incomplete. Change to

    cn.ConnectionString =...
  36. Replies
    4
    Views
    641

    Re: Input Data from File using Input #

    Try using the Input function

    Open "C:\blah.csv" For Input As #1
    strContents = Input(LOF(1), 1)
    Close #1

    strContents will hold everything in the file (or as much as it can). Then you can work...
  37. Re: Adjusing size of components with the size of form

    You'll have to calculate and achieve that yourself. In the form's resize event, you can recalculate and resize the controls. Example of a Form with a textbox and a commandbutton:

    Private Sub...
  38. Replies
    3
    Views
    467

    Re: Trying to load latest entry from Rs

    If you know this month's date you could try

    strSQL = "SELECT EndingBalance FROM HouseFund IDTag = " & PreviousIDTag()

    Private Function PreviousIDTag() As String
    PreviousIDTag =...
  39. Replies
    11
    Views
    998

    Re: [RESOLVED] Error '480' when coloring Listview rows

    Check this article. It's about subclassing windows common controls (Listview).
  40. Replies
    11
    Views
    998

    Re: [RESOLVED] Error '480' when coloring Listview rows

    Try the actual listview's handle

    g_addProcOld = SetWindowLong(ListView1.hWnd, GWL_WNDPROC, AddressOf WinProc)
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width