Search Results - VBForums

Search:

Type: Posts; User: gibra

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    17
    Views
    365

    Re: Need help taking a screenshot

    In Command1_Click() event, after :


    Picture1.AutoRedraw = True

    add:



    Picture1.Width = Screen.Width
  2. Re: Can I copy all properties from one control to another in s single statement?

    In Design Mode you can use MZTools 3.0 (free) or CodeSMART 2013 (not free) add-in.
    Both have the appropriate commands:

    - Copy control with code
    - Paste control with code

    all events are...
  3. Re: [RESOLVED] Changing file (Open with) programmatically

    My code is working good but is the Windows 8.x system that work differently:


    This appear on my Windows 8.1 (Italian language)
    ...
  4. Re: Changing file (Open with) programmatically

    To show the OpenWith system dialog:



    Shell "Rundll32.exe shell32.dll, OpenAs_RunDLL " & sPath, vbNormalFocus


    where sPath contains the complete path of the file you want change
  5. Replies
    2
    Views
    282

    Re: Export Report in PDF from VB 6.0

    What is ReportViewer?
  6. Re: VB4 controls have moved from all but first SSTab control. How do I move then back

    Are you sure to use SSTab control?
    Looks more like the behavior of the TabStrip control...
  7. Re: SQL query to link tables with same structures using vb6 and ADODB connection?

    You may use UNION :



    SELECT field1, field2, ...
    FROM TA

    UNION

    SELECT field1, field2, ...
  8. Replies
    14
    Views
    549

    Re: VB6 Project Not Loading.

    The registration of an ActiveX component 'must' increment a counter (in Registry) that keeps precisely NUMBER applications that use it.
    Then, when you uninstall an application from the system, the...
  9. Replies
    3
    Views
    288

    Re: Mask a TextBox in KeyPress Event

    I suggest to use a Microsoft Masked Edit control (MSMASK32.OCX).
  10. Replies
    14
    Views
    549

    Re: VB6 Project Not Loading.

    I think you made some trouble, compromising the integrity of the components in your system.
    What you did not do it, you should not do. Never .
    Maybe it's better that rerun setup VB6 and choose the...
  11. Re: How To open MDF LDF SQL files AND Convert Them To Access Table

    Maybe you should post this question in Database forum...
  12. Replies
    22
    Views
    530

    Re: Creating pdfs from Word 2010 using vb6

    Then you can use a PDF Printer (like PDF Creator, Adobe PDF, ...)

    1. Set the PDF Printer As Default printer
    2. use ShellExecute using the 'print' verb for lpOperation parameter
    3. ReSet the...
  13. Replies
    6
    Views
    237

    Re: VB6: Error 13 - Type Mismatch

    I tried this:



    Const gFbaSalesRankTier2 = 10000
    Const strSalesRank As String = "17472"

    If CLng(strSalesRank) <= CLng(gFbaSalesRankTier2) Then
    'bFBAQtyExceeded =...
  14. Re: Make .exe error "you don't have permission to save in this location ...

    And the location is ?
  15. Replies
    27
    Views
    653

    Re: Call Query in Access from VB6

    Query or Function?
  16. Re: using CDate dosnt work proper why?

    Use DateAdd() and DateDiff() functions to calculate dates.
    If you use Access database see here:

    MS Access: DateAdd Function
    http://www.techonthenet.com/access/functions/date/dateadd.php
    MS...
  17. Replies
    20
    Views
    1,959

    Re: To disable minimize and close button in VB6

    Yes.


    Sorry for you: I'm not problem, YOUR project has problem:


    Reference=*\G{F3781BA0-FAAA-11D1-8B3E-DCAA556D18B8}#1.0#0#..\..\..\..\VB Etc\VB, Database, & HTML...
  18. Replies
    20
    Views
    1,959

    Re: To disable minimize and close button in VB6

    DLL is missing.
  19. Replies
    25
    Views
    1,044

    Re: VB6: More Textbox Validation

    You can also use the Microsoft Masked Edit Control, that is made for this:

    Using the MaskedEdit Control
    http://msdn.microsoft.com/en-us/library/aa733654(v=vs.60).aspx
  20. Replies
    6
    Views
    428

    Re: Access no longer working in S7 XP mode

    However, in VB6 (and any other language) don't need MSAccess to open a MDB database.

    Show the code you use to open database.
  21. Thread: vb6 error

    by gibra
    Replies
    3
    Views
    198

    Re: vb6 error

    Hi, yuor code:

    If "SELECT * FROM CLIENT WHERE CLIENT_NAME = ('" & txt_Client.Text & "')" Then
    is wrong because SELECT statement is used to open a recordset, or to execute a query i.e.



    Dim...
  22. Re: how to make autocomplete text box search In DB

    More simple:


    rs.Filter = "FullName LIKE '%" & txtDesc.Text & "%'

    But you should think to use a external form to show the results of filter.
    Because a filter may return more records,
    ...
  23. Replies
    6
    Views
    1,782

    Re: third party datagrid

    TDBGrid expose PrintInfo object fully customizable: window preview, with menu, margins, title, and so on... (all 'translatable' ).

    See this help:

    PrintInfo Object, PrintInfos Collection...
  24. Re: VB6.0 exe in Windows7 Environment

    Have you Windows 7 SP1 ?
  25. Replies
    33
    Views
    832

    Re: ListView autoarrange fails

    My code in post #13 is work.
  26. Replies
    5
    Views
    320

    Re: Statusbar font size

    Simply change the font attribute (size, bold, ...) in Properties, or from code:



    Private Sub Form_Load()
    With StatusBar1
    .Font.Size = 14
    .Font.Underline = True
    ...
  27. Replies
    33
    Views
    832

    Re: ListView autoarrange fails

    Try this (I renamed commandbuttons):



    Private Sub cmdPopulate_Click()
    Dim I As Long

    '(Re)populate ListView1 with a new set of items with new images and text.
    ...
  28. Replies
    7
    Views
    379

    Re: Problem comparing two strings

    Of course, your code is wrong.
    I think that the issue is that the string contains a CR+LF sequence, which their codes are 13+10, so MID() may search in wrong position.
  29. Replies
    8
    Views
    428

    Re: Volatile IDE configuration

    No, isn't a issue of MZTools.
    Mz-Tools (add-in) make the toolbar (and menu items) 'on fly' while IDE is started, so any changes you made can't be applied to it.
  30. Replies
    8
    Views
    428

    Re: Volatile IDE configuration

    Maybe because you're try to add buttons to the MZ-Tools toolbar.
    Isuggest to create your own bar customed and add them there.
  31. Replies
    28
    Views
    767

    Re: Can't Unload / End properly

    What do you say? :eek:

    Forms.Count and Forms(0).Name is correct, because Forms is a collection of Form.


    VB - Forms Collection in Visual Basic 6 (VB6)...
  32. Replies
    28
    Views
    767

    Re: Can't Unload / End properly

    On Immediate window you can use ?Forms.Count to discover how many forms still loaded, and ?Forms(0).Name to get specific unloaded form.
  33. Replies
    5
    Views
    364

    Re: How to resize Child form ?

    First of all, comment the Resize events on all child forms :


    Private Sub Form_Resize()
    'Me.WindowState = 2
    End Sub



    After this, add this routine in Module1.bas:
  34. Replies
    5
    Views
    364

    Re: How to resize Child form ?

    Picture still not visible, and other problems, too.
  35. Replies
    13
    Views
    613

    Re: Will VB6 run on windows 7 ?

    What are you writing?
    See to inform you before writing nonsense.
  36. Replies
    13
    Views
    613

    Re: Will VB6 run on windows 7 ?

    Dear moderatorJoacim Anderssonyou are totally in error.
    MY VS6Installer ISN'T PIRATED SOFTWARE.

    Before writing crap at least have the decency and education to first check what you write.

    By a...
  37. Replies
    2
    Views
    179

    Re: how to add grid data using stored proc

    What is your problem, really:

    1. create a stored procedure?
    2. use a stored procedure in VB6?
    3. add data to table?
    4. show data to datagrid control?

    be more specific.
  38. Re: how to disable a user to change date if it is not the same month

    Use a TextBox to change the DAY only.

    The use of DatePicker is a 'not sense' if the user can't change anything other the day.

    Normally, the DatePicker become usefull when the user must have the...
  39. Replies
    1
    Views
    126

    Re: Help : Datagrid bind combobox

    Natively DataGrid doesn't support this.

    But you can build it:

    VB 6.0 ComboBox in DataGrid
    http://www.nullskull.com/a/832/vb-60-combobox-in-datagrid.aspx
  40. Re: how to disable a user to change date if it is not the same month

    Instead of DataPicker, use a TextBox where user can change only the number of day.
    On DataValidation event check if the number is correct, related to the month.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.