dcsimg

Search:

Type: Posts; User: gilman

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Re: [RESOLVED] (String search algorithm) Skip the contents of the quotes to find a su

    This code has a problem, and I don't konw if has a solution, you can try

    Debug.Print MyInstr(1, "Mark O'Brian, Tim O'Sullivan", "Tim")

    Returns 0 but I think the correct answer is 15
  2. Re: Dynamically added usercontrol, how to remove added control from Form?

    I try

    Option Explicit

    Dim WithEvents My_UserControl As VBControlExtender 'Form level declaration
    'Form subroutines
    Sub AddControl()
    Set My_UserControl =...
  3. Re: Dynamically added usercontrol, how to remove added control from Form?

    if you go through the collection through a loop for next you can not modify the collection in the loop.
    Try

    Sub RemoveControl()
    MyForm.Controls.Remove "My_UserControl"
    End Sub
  4. Re: vb6 - qprinter (qbd software) - where i can find/download lastest version??

    1)I think there's no more versions, but you can try to mail the author.
    2)The project is an ActiveX dll, you can compile it and and add a reference in your program, you, also can add al the archives...
  5. Replies
    3
    Views
    240

    Re: Original Size

    The second method works fine, thanks
  6. Replies
    3
    Views
    240

    [RESOLVED] Original Size

    I would like to know what is the original size of a maximized window, that is, the size it will have when we restore it.
    Thank you
  7. Re: VBA EXCEL: How to sort an ArrayList that contains a class object?

    I try this code

    Private Sub Macro()
    Dim x As Object
    Set x = CreateObject("System.Collections.ArrayList")
    x.Add "c"
    x.Add "b"
    x.Add "a"
    Dim r As Variant
    x.Sort
  8. Replies
    5
    Views
    343

    Re: How to Calculate total Time in listview?

    Declare a new Date variable TotalTime
    Now you can add the intervals in TotalTime

    ListView1.ListItems(ListView1.ListItems.Count).SubItems(7) = Format(((newLunchOut - newTimeIn) + (newTimeOut -...
  9. Re: Code to convert BCD to Decimal and vice versa

    I think that your problem is:
    1.- you have a decimal value in the range 0 to 99999999 and you want to code to BCD in a long type variable.
    2.- you have a BCD coded value in a long type variable and...
  10. Replies
    41
    Views
    10,647

    Re: [vb6]Common Dialog Class (Yet Another One)

    I have the same issue, but only in IDE, when I compile and run the exe program runs OK and the major version in exe version is 6.
    I'm used Win7 64b
  11. Replies
    20
    Views
    827

    Re: Incorrect Interpretation of file names.

    I have try this and the result is te same


    I don't know what is happend, but fafalone and eduardo- says that see the correct file name and, you and I, I supose that you too, are using Spanish, so...
  12. Replies
    20
    Views
    827

    Re: Incorrect Interpretation of file names.

    I don't think that the problem is with the library, I have used the microsft scripting library to see the file name, and the name was the same.
    Too I have try using a ListBoxW, and the result is the...
  13. Re: How to disallow non-numeric letters in WinForms TextBox?

    You can use this code for the textbox

    Private Sub txtNumeric_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtNumeric.KeyDown
    Select Case...
  14. Replies
    7
    Views
    850

    Re: MenuExtended (subclassing)

    Yes, the file is too large to attach here as a zip file, but if you change the extension from zip to docx, or add extension docx to the file, see the link (CommonControls (Replacement of the MS...
  15. Replies
    7
    Views
    850

    Re: MenuExtended (subclassing)

    I Want to report a bug:
    In the Extended Mode the runtime added separator gets the caption of the first SubMenu element:
    166185
    I'm using Windows 7
  16. Replies
    7
    Views
    850

    Re: MenuExtended (subclassing)

    The link is wrong.
    If you want to attach the project here, you can change the extension to docx
  17. Replies
    4
    Views
    343

    Re: Running VB Project with WebBrowser control

    See:
    Visual Basic y el error ieframe.dll/1
    It is written in Spanish
  18. Re: Unable to set the version compatible component

    The post was duplicated
  19. Re: Unable to set the version compatible component

    The first error occurs because the ocx, with which it has to be compatible, is not in the folder that is indicated in the properties of the project.
    Locate it and change the property to point to the...
  20. Replies
    2
    Views
    255

    Re: kill application (process) in Vb6

    Te without te Unload Me, the form is unloading
  21. Re: How to get long file name from short file name

    See that thread:
    http://www.vbforums.com/showthread.php?870205-Short-to-Long-File-Names
  22. Re: How to get long file name from short file name

    See that thread:
    http://www.vbforums.com/showthread.php?870205-Short-to-Long-File-Names
  23. Re: A Little Resizing Anyone for a good dip in my troubles

    Try it
    http://www.vbforums.com/showthread.php?870133-VB6-Control-Anchoring-and-Docking-made-Easy
  24. Replies
    2
    Views
    274

    Re: how to treeview this reordset

    Try this:

    Private Sub LoadTreeView()
    Dim REG As String
    Dim BIG_AG As String
    Dim RS As ADODB.Recordset
    Set RS = New ADODB.Recordset

    RS.Open "SELECT DISTINCT REG,...
  25. Replies
    2
    Views
    274

    Re: how to treeview this reordset

    Try this:

    Private Sub LoadTreeView()
    Dim REG As String
    Dim BIG_AG As String
    Dim RS As ADODB.Recordset
    Set RS = New ADODB.Recordset

    RS.Open "SELECT DISTINCT REG,...
  26. Replies
    20
    Views
    846

    Re: Short to Long File Names

    I try GetLongPathName/GetShortPathName in Win10 and it works fine, but only in the system drive, I have try

    Dim ofs As New Scripting.FileSystemObject
    Dim f As String
    Dim of As File
    Debug.Print...
  27. Re: Creating Excel file without Excel

    Doing several tests I saw that there was not a problem with my code, it was just a behavior, for me unknown, of Excel, when a cell starts with an apostrophe, Excel simply ignores it and treats the...
  28. Re: Creating Excel file without Excel

    I try with this connection string

    ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & FileName & ";Extended Properties=Excel 8.0"

    I have get from your link
    But with non numeric...
  29. [RESOLVED] Creating Excel file without Excel

    I want to create an excel file, but can't use excel references, now I trying using ADODB and SQL sentences.
    The code (see atached file) works, and create the excel file, but with non numeric data...
  30. Re: How can I include my database ext mdb to my VB.6.0 project

    If you want protect data or the trial period of your application, you would not hold yours passwords in plain text in your application.
    If you compile your project, you can inspect your exe and you...
  31. Re: How can I include my database ext mdb to my VB.6.0 project

    You can't include the database file in your exe file
  32. Re: Please help for remove duplicate string array and display remaining array.

    String comparison is slow in VB, you can use the code of the link to obtain better results:
    http://www.xbeat.net/vbspeed/c_IsSameString.htm
    And also you may use Long variables for the loops control
  33. Replies
    4
    Views
    556

    Re: Attached Template

    First, I working with *.doc, not *.docx, with *.docx, don't know if the behavior is the same, but with *.doc, if I open the document with the template in the original place and run the macro, the...
  34. Replies
    4
    Views
    556

    Re: Attached Template

    I don't know if it is an something undocumented, but yes docs, have his AttachedTemplate.
    You can try in VB6:


    Dim oWord As Word.Application
    Dim oDoc As Word.Document

    Set...
  35. Replies
    4
    Views
    556

    Attached Template

    ¿Is possible to know, what's the attached template in a *.doc, without open the file?
    thanks
  36. Re: Copy all contents of a Tab in SStab into another

    If the control is in the current tab, the left property is positive, if the control is not in the current tab the left property is OriginalLeft -75000
  37. Re: Copy all contents of a Tab in SStab into another

    A posible solution is to clon the Frame, but it force the contained controls to be an array of controls, and the cloning function must be recursive, another aproach is create a user control to...
  38. Re: Copy all contents of a Tab in SStab into another

    Here is a simply way to copy the contents o a Tab is creating the controls as a control array.
    Now a control, in a SSTab, is in the current tab is if the left property is postive else left is...
  39. Replies
    7
    Views
    659

    Re: find in array

    It has one problem, it finds ACP, to solve this problem:


    Option Explicit

    Private ARRAY_RUOLI(3) As String

    Private Sub Command1_Click()
    Dim mystring As String
    mystring =...
  40. Replies
    2,288
    Views
    525,743

    Re: CommonControls (Replacement of the MS common controls)

    Add this code to the MainForm:
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    ' Copyright ©1996-2011 VBnet/Randy Birch, All Rights Reserved.
    ' Some pages may also contain other...
Results 1 to 40 of 43
Page 1 of 2 1 2



Featured


Click Here to Expand Forum to Full Width