Results 1 to 8 of 8

Thread: vb6 Form Interface. Help

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2011
    Posts
    19

    vb6 Form Interface. Help

    Guys i have this attachment wherein i need to create it for our project.
    But i don not know what kind of control will i use. Please see attachment.

    Name:  Untitled.png
Views: 529
Size:  54.0 KB

    There is a search button wherein if i entered a word in a textbox and it find a match in the db, that form will be loaded and will automatically shows all the data.
    im just confused because i don't think that is a listview.

  2. #2
    Hyperactive Member Lenggries's Avatar
    Join Date
    Sep 2009
    Posts
    353

    Re: vb6 Form Interface. Help

    It looks like some sort of spread or datagrid control to me. I know you can recreate that interface using Farpoint's spread control, but I suspect there are other options out there as well.

  3. #3
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012
    Location
    InIDE
    Posts
    4,060

    Re: vb6 Form Interface. Help

    Perhaps it can be done with the WebBrowser control and some HTML/JavaScript.
    On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
    Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)

  4. #4
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,206

    Re: vb6 Form Interface. Help

    Yep it kinda looks like an HTML table with controls in two of the cells. Not sure if you can add buttons and such to a grid control or not, never tried it.

  5. #5
    PowerPoster
    Join Date
    Aug 2011
    Location
    B.C., Canada
    Posts
    2,887

    Re: vb6 Form Interface. Help

    i will make you a little example in a bit

    Edit:
    I have a little example now for you have a look


    Code:
    Option Explicit
    
    Private Book(1 To 5) As Books
      Private Type Books
        Title As String
        AuthorName As String
        Quantity As Integer
        Price As Currency
      End Type
    
    
    Private Sub Form_Load()
    Dim i As Integer
    
      For i = 1 To UBound(Book)
        With Book(i)
          .Title = "Book " & i
          .AuthorName = "Author " & i
          .Quantity = (10 * i)
          .Price = (3 * i)
        End With
      Next
      VScroll1_Scroll
    End Sub
    
    Private Sub VScroll1_Change()
    VScroll1_Scroll
    End Sub
    
    Private Sub VScroll1_Scroll()
    On Error GoTo ErrHandler
      With Book(VScroll1.Value)
        lblBookName1.Caption = .Title
        lblBookBy1.Caption = .AuthorName
        txtBookQTY1.Text = .Quantity
        lblBookPrice1.Caption = .Price
        lblBookPrices1.Caption = .Price
      End With
      
      With Book(VScroll1.Value + 1)
        lblBookName2.Caption = .Title
        lblBookBy2.Caption = .AuthorName
        txtBookQTY2.Text = .Quantity
        lblBookPrice2.Caption = .Price
        lblBookPrices2.Caption = .Price
      End With
    Exit Sub
    
    ErrHandler:
      If Err.Number = 9 Then
          lblBookName2.Caption = ""
          lblBookBy2.Caption = ""
          txtBookQTY2.Text = ""
          lblBookPrice2.Caption = ""
          lblBookPrices2.Caption = ""
      End If
    End Sub
    Attached Files Attached Files
    Last edited by Max187Boucher; Jan 22nd, 2013 at 04:02 PM.

  6. #6
    PowerPoster
    Join Date
    Aug 2011
    Location
    B.C., Canada
    Posts
    2,887

    Re: vb6 Form Interface. Help

    Quote Originally Posted by DataMiser View Post
    Yep it kinda looks like an HTML table with controls in two of the cells
    looks like regular vb controls

    Name:  Untitled.gif
Views: 385
Size:  28.2 KB

    does this look similar enough jelopy15
    Last edited by Max187Boucher; Jan 22nd, 2013 at 03:41 PM.

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Mar 2011
    Posts
    19

    Re: vb6 Form Interface. Help

    thank you for the information guys. @Max187Voucher cool! now i can make my interface thank you alot. i was confused before because of the scroll bar i thought it was a listview.

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Mar 2011
    Posts
    19

    Re: vb6 Form Interface. Help

    Thanks to all those who helped me
    Last edited by jelopy15; Jan 23rd, 2013 at 09:13 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width