dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Bruno

Page 1 of 9 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    3
    Views
    749

    Test

    Testing post
    Bruno
  2. Thread: Window Size&Pos

    by Bruno
    Replies
    1
    Views
    558

    Re: Window Size&Pos

    ' Form1 code
    option Explicit
    private Type Rect
    Left as Long
    Top as Long
    Right as Long
    Bottom as Long
    End Type
    private Type POINTAPI
    X as Long
  3. Replies
    2
    Views
    570

    Re: Can I use the event?

    To dinamically add control to a form, use:
    option Explicit
    Dim withevents ctlDynamic as VBControlExtender

    private Sub Form_Load()
    me.BackColor = vbBlue
    set ctlDynamic =...
  4. Replies
    4
    Views
    1,107

    Re: about polymorphism in VB

    Hi,
    change
    >circleObject.setDrawObject (picDisplay)
    to
    circleObject.setDrawObject picDisplay
    or
    Call circleObject.setDrawObject(picDisplay)
  5. Thread: Linked Lists

    by Bruno
    Replies
    1
    Views
    545

    Re: Linked Lists

    We use arrays and collections most of the time. But you can create your own data structures:
    http://www.devx.com/upload/free/features/vbpj/2000/05may00/fb0500/fb0500-1.asp
  6. Replies
    3
    Views
    600

    Re: Passing by reference

    Jase, I am not sure you did it right. You should try NOT to use Variant variables for strings and numbers, but you should use specific data types (String, Integer, Long,...) instead.

    You should...
  7. Thread: form

    by Bruno
    Replies
    3
    Views
    583

    Re: form

    public Function FormIsLoaded(frmName as string) as Boolean
    Dim i as Integer

    for i = 0 to Forms.Count - 1
    If Forms(i).Name = frmName then
    FormIsLoaded = true
    ...
  8. Replies
    3
    Views
    600

    Re: Passing by reference

    >the value in errVal is always 0. Now i figured this would be because i am passing errVal 'ByVal', when i should be passing it ByRef

    Correct, pass it ByRef.


    > - however, when i pass it...
  9. Replies
    1
    Views
    635

    Re: Simple Question - Option Boxes

    Use Frame control as container for your option boxes.
    Set BorderStyle=0 for your Frame.

    To disable option boxes on the frame, use : Frame1.Enabled = False
  10. Thread: Using Win32 API

    by Bruno
    Replies
    1
    Views
    585

    Re: Using Win32 API

    >very tiresome to declare all these api before i can use them
    It is not - just use 'API Text Viewer' in Visual Studio 6.0 Tools program group.

    Using type libraries can save few bytes in your...
  11. Replies
    3
    Views
    622

    Re: Value of the Value of a String

    Hi, Balki
    You can do this if B is property of some object.
    option Explicit
    public PropOfObject as string

    private Sub Form_Click()
    Dim PropName as string
    PropName = "PropOfObject"
    ...
  12. Replies
    4
    Views
    731

    Re: Scroll bar must size to Windows settings

    Form1; to test, change window sheme to e.g. "Rainy Day" and click on form.
    option Explicit
    private Declare Function GetSystemMetrics Lib "user32" (byval nIndex as Long) as Long
    private Const...
  13. Replies
    2
    Views
    639

    Re: max controls on form

    There is a limit on control names: 255 different control names on one form.
    You can use control arrays, since the whole array uses one control name. E.g. you can load 32000 labels into one array,...
  14. Replies
    1
    Views
    586

    Re: UDT - string length from Variable

    option Explicit
    private Const DBCP_FH_LENGTH as Long = 80 ' #define DBCP_FH_LENGTH 80
    private szFHtext as string * DBCP_FH_LENGTH

    private Sub Form_Click()
    MsgBox len(szFHtext)
    End Sub
  15. Replies
    7
    Views
    968

    Re: DLL Path as Varaible?

    There is a very hardcore solution.
    See: http://www.vbdotcom.com/FreeCode.htm (Call Pointer, class clsCallFunction)

    Here is how to use that class instead of 'normal': lngReturn = GetDC(Me.hWnd)...
  16. Replies
    8
    Views
    796

    Re: Public Objects in ActiveX

    > But how about this - My ActiveX has a property of Object type, that object has its own property.
    > How to create this structure to be able to work with that property like this:
    >...
  17. Replies
    8
    Views
    796

    Re: Public Objects in ActiveX

    >What should I do to have the ability to work with all the properties, methods and events of constituent controls this way:

    I don't think it is good, but it is possible.
    You'll need one property...
  18. Replies
    1
    Views
    679

    Re: Hscroll with a ListView ???

    Hi, Stuart
    >how I can read the horizontal position of a listview
    option Explicit
    private Declare Function GetScrollPos Lib "user32" (byval hwnd as Long, byval nBar as Long) as Long
    private Const...
  19. Thread: Slooow Operation

    by Bruno
    Replies
    1
    Views
    695

    Re: Slooow Operation

    If you want good performance, use ONLY 1-D arrays.

    >Variant array
    Are you sure you have good reason not to use specific data type?

    >The array is not bound to any data control.
    Huh??

    >what...
  20. Replies
    4
    Views
    1,785

    Re: User Control on MDI Form

    >... but is not visible ...
    Then use InvisibleAtRunTime = True
  21. Replies
    4
    Views
    1,785

    Re: User Control on MDI Form

    >ControlContainer=True
    Oops, you don't need this property. :-)
  22. Replies
    4
    Views
    1,785

    Re: User Control on MDI Form

    Set these properties of your control:
    Alignable=True
    ControlContainer=True
  23. Thread: Loading Forms

    by Bruno
    Replies
    4
    Views
    1,037

    Re: Loading Forms

    Use Add method of Forms collection:
    Forms.Add("Form1").Show
    You'll need VB6 SP3 for Forms.Add to work. Without SP3 it won't work when compiled.


    option Explicit

    private Sub Form_Click()
    ...
  24. Replies
    5
    Views
    643

    Re: Keyboard Problems

    If you didn't add some buttons recently, check Keycode when you press arrows on your keyboard, e.g.:
    Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
    Print KeyCode
    End Sub

    If...
  25. Thread: Resource File

    by Bruno
    Replies
    5
    Views
    712

    Re: Resource File

    I don't have the code, last time I tried, I was not able to use UpdateResource.

    For setting any resource, I suggest automating your task with your Resource editor. Use Sendkeys to send commands to...
Results 1 to 25 of 202
Page 1 of 9 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)