how to display results in vb form

Author Message
takeda kozo

  • Total Posts : 83
  • Scores: 0
  • Reward points : 0
  • Joined: 11/9/2005
  • Status: offline
how to display results in vb form Friday, November 21, 2008 12:22 PM (permalink)
0
I am creating a form in Visual Basic Express 2008 and was hoping to get some advice from someone?

I would like to be able to display the results of my SQL query on the form, in the same way that data is displayed when you go into "modify table" in SQL server management studio. Basically, my query will return somewhere between 1 and 20 rows of data, and I would like to display the data on my form with a checkbox at the far right of each row

I've attached an image of how i would like to display my query results on the form, as my explanation is probably bad

Currently, i have about 10 text boxes in a single row and I am writing the information from the 10 columns i need into each of the text boxes. I realise that this is a crappy way to do it but it's the only way i know of right now. (and it limits me to only displaying one row)

Hope someone can help and thanks in advance





[image]local://8675/1CC00EA83DBF41848FC56193B532DE55.JPG[/image]
Attachment(s)Attachments are not available: Download requirements not met
 
#1
    ebgreen

    • Total Posts : 8227
    • Scores: 98
    • Reward points : 0
    • Joined: 7/12/2005
    • Status: offline
    RE: how to display results in vb form Monday, November 24, 2008 2:54 AM (permalink)
    0
    I would look for examples of the DataGrid control.
    "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
    Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
    http://www.visualbasicscript.com/m_47117/tm.htm
     
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9