Results 1 to 2 of 2

Thread: ListView in a new form?

  1. #1

    Thread Starter
    Addicted Member machine_wars's Avatar
    Join Date
    Dec 2000
    Location
    NC
    Posts
    147

    ListView in a new form?

    I have a CommonDial a user uses to select a DB, I want a new form to open containing the ListView populated by the users selected DB. Also how do I send a form a variable. Can I change a forms properties and controls from a different form(like changes options Napster). Thanks for any input on the subject. Please suggest any tutorials as well.

  2. #2
    Member
    Join Date
    Oct 2000
    Location
    Hooglede (belgium)
    Posts
    63
    Hello,
    you can to this in several ways.
    Here's a possible one.

    When U want to pass a variable from one form to an other you can place it in a global variable in a module file.
    Now you can access this variable on each form in your project.

    You can also define that variable public in your form.
    Public GlobVar as ...
    Now you can access it by:
    formname.GlobVar

    As for your other question concerning changing the properties of a form. Yes, you can change the properties.
    Like,
    frmName.name = "The formname"
    But not all properties can be changed. Like for example changing the borderstyle at runtime is not possible because it is a readonly property. (It is possible of doing this but this concerns some api calls, not of use here)

    Greetings.
    VB, C/C++, ASP, HTML, Javascript, Java, SQL, VB.NET

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