Search:

Type: Posts; User: RhinoBull

Page 1 of 13 1 2 3 4

Search: Search took 0.55 seconds.

  1. Replies
    6
    Views
    154

    Re: File Location

    @halw: can you post complete code instead of pieces including procedure header... Also, when you do that please use CODE tags.
  2. Replies
    5
    Views
    96

    Re: Setting default properties in VB6?

    Create new Project template... ;)
  3. Replies
    6
    Views
    154

    Re: File Location

    The highlighted word is the key here : how do you save your file? Can you post your [I]actual code?
  4. Replies
    5
    Views
    96

    Re: Setting default properties in VB6?

    What you can do is make your own form template:

    - create new project
    - change form's ScaleMode property to 3 - Pixel
    - add the following code to Form_Load event:


    Private Sub Form_Load()...
  5. Re: How to write a new line in vb6 MSFlexGrid Cell

    In that case please resolve your thread from Thread Tools menu.
  6. Replies
    3
    Views
    124

    Re: How to make installer in VB6

    I don't understand what the problem here is - P&DW allows adding files and destination folder for each file. When installer runs it creates as many new folders as you need and place all custom files...
  7. Re: menu editor from right to left

    This is public forum so please ask here. :wave:
  8. Replies
    11
    Views
    188

    Re: Errror selecting internet control

    This may be related to version of IE installed on each machine. Are they the same?
  9. Re: menu editor from right to left

    If you mean you want text to appear right aligned then probably NO.
    You may instead design your own form and show it on right click instead.
  10. Replies
    4
    Views
    329

    Re: Help with SQLite3

    1. You did not need to open recordset to delete records - all you had to to do was execute sql via connection (or command object):
    cnn.Execute "delete..."

    2. You need to build sql string:

    ...
  11. Replies
    7
    Views
    200

    Re: Assigning to array error

    Also, you need to declare array ExBytes as byte:

    Dim ExBytes() As Byte

    In your code it is defined as Long.
  12. Re: How to correctly dispose of an controls in an ocx

    Controls added via Controls.Add method can be removed via Controls.Remove;
    Control added via Load method (control arrays) can be Unloaded.

    Note that neither method will work for any control...
  13. Re: Two VB applications working together advice ?

    One app writes to a local log file and second reads from it...
  14. Thread: Function

    by RhinoBull
    Replies
    3
    Views
    148

    Re: Function

    Because it is much simpler to use and much better than ordinary integer values. Does that explain?
  15. Thread: Function

    by RhinoBull
    Replies
    3
    Views
    148

    Re: Function

    Try something like this:


    Option Explicit

    Private Enum ShapeStyles
    Rectangle = VBRUN.ShapeConstants.vbShapeRectangle
    Square = VBRUN.ShapeConstants.vbShapeSquare
    Oval =...
  16. Re: Is there a better way to do this

    Any time... :wave:
  17. Replies
    7
    Views
    192

    Re: [RESOLVED] Saving Date as NULL

    You're welcome.
  18. Re: Is there a better way to do this

    If you want to convert string into byte array then there is a better way - just use StrConv() function:


    Option Explicit

    Private Sub Command1_Click()
    Dim StringData As String
    Dim tempArray()...
  19. Replies
    7
    Views
    192

    Re: Saving Date as NULL

    LOL ... Was that address at my "sample"? I left some work for OP to finish...
  20. Re: 8555 error obtaining Printer info in VB 6 app in Window app

    Do you run your app as admin or regular user?
  21. Replies
    7
    Views
    192

    Re: Saving Date as NULL

    If your date field allows null value then what I would do is mto include list of fields in your sql statement excluding the date field:


    insert in tblChqMaster
    (fld1, fld2, fld5)
    values
    ...
  22. Replies
    7
    Views
    168

    Re: Numbers Only and - Only

    Take a good look at this submission by MartiLiss.
  23. Re: [VB6(windows 7) - richtextbox] - how show the scrollbars?

    You may also want to consider coding UserControl_Resize() event to resize RTB/picture controls...
  24. Re: [VB6(windows 7) - richtextbox] - how show the scrollbars?

    It's fine - just make it large enough to see scrollbars when you place your user control onto the form.
  25. Replies
    5
    Views
    174

    Re: VB6 Not Null problem

    @NRamakrishna:

    try reading previous replies before responding... ;)
  26. Replies
    5
    Views
    174

    Re: VB6 Not Null problem

    IsNull() function is what you need:


    If Not IsNull(rsCard!Young1) Then
    'your code goes here...
    End If
  27. Replies
    3
    Views
    115

    Re: Multi field search for mdb

    Build sql string first:

    sqlSearch = "select from Table1 where Field1 like '%" & Text1.Text & "%' or Field2 like '%" & Text1.Text & "%'"

    ...then open recordset based on that sql.


    Or...
  28. Re: [VB6(windows 7) - richtextbox] - how show the scrollbars?

    Set it at design time.
  29. Replies
    2
    Views
    93

    Re: displaying record in checkbox

    When you load your grid you can assign font to individual cells using CellFontName property.
    The trick here is to set column index before setting row. Here is a quick sample:


    Private Sub...
  30. Replies
    4
    Views
    329

    Re: Help with SQLite3

    It could be as simple as executing "delete from table_name where..." sql statement via command/connection object.
    For SQLite specifics on delete statement read this.
  31. Replies
    2
    Views
    137

    Re: INSERT Statement + INNER JOIN

    Sample 1
    Sample 2

    ...and many more if you google it...
  32. Replies
    6
    Views
    148

    Re: listview row color

    Take a look at this codebank submission.
  33. Re: Searching for specific set of characters in a label caption?

    What you need to use is Mid$, Instr and (optionally) InstrRev functions:


    Option Explicit

    Private Sub Form_Load()
    Label1.Caption = "(1). What county is the Nile River located in?"
    End...
  34. Replies
    8
    Views
    1,479

    Re: [RESOLVED] move richtextbox1 to list1

    First: I am not "bro"...
    And second: I am still curious how you actually resolved it.. Sample text you posted is multiline so how in the world is it going to be splited on comma and not on the new...
  35. Replies
    8
    Views
    1,479

    Re: [RESOLVED] move richtextbox1 to list1

    Don't you need to split it on the new line character (vbNewLine or vbCrLf) instead of comma?
  36. Re: How to hide AddressBar using VB6 in Internet Explorer 9

    Works on win7 64 and I can even toggle between show/hide.
  37. Replies
    2
    Views
    145

    Re: How many test form is open?

    If you are asking how to check if specific form is open then loop thru forms collection and check each name:


    Dim frm As Form

    For Each frm In Forms
    debug.Print frm.Name
    Next frm

    I let...
  38. Replies
    7
    Views
    166

    Re: Multiple Assignment from Function?

    Correct but still, function's return value can only be assigned to one variable:

    myArray = MyFunction(a, b)
  39. Replies
    7
    Views
    166

    Re: Multiple Assignment from Function?

    ...or this if you need return value from function as well:


    Option Explicit

    Private Sub Command1_Click()
    Dim var1 As String
    Dim var2 As Single
    Dim res As Single
  40. Replies
    7
    Views
    166

    Re: Multiple Assignment from Function?

    You can do something like this:


    Option Explicit

    Private Sub Command1_Click()
    Dim var1 As String
    Dim var2 As Single

    DoSomething var1, var2, 9
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4