borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Programming keystrokes)Next Topic (Visual Basic Tutorial) New Topic New Poll Post Reply
AndreaVB Forum : VB General : property pages of user controls
Poster Message
aak_neo
Level: Scholar


Registered: 11-02-2007
Posts: 30

icon property pages of user controls

i've read in this forum that property pages of built in vb controls cannot be opened. but i think for user made controls its possible, i have found some GUID code but looks very tough, IS THERE ANY EASIER WAY TO INVOKE PROPERTY PAGES AT RUN TIME    

____________________________
You never see past the choices you don't understand

13-02-2007 at 05:19 PM
View Profile Send Email to User Show All Posts | Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1616
icon Re: property pages of user controls

At run time?  Property pages (as I know them) are only available at design time -- since they're meant for design parameters.

At run time, you'd have to create your own forms for user input that'd make any changes to the controls -- assuming the properties can be altered at runtime.

____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)

14-02-2007 at 04:58 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
aak_neo
Level: Scholar


Registered: 11-02-2007
Posts: 30
icon Re: property pages of user controls

thank you, i m new to vb.
       But if we make our own property forms and when the user modifies properties mentioned in the forms at run time the changes made to the properties will not be retained at next time the program runs.
       Coz then the properties will again get initialised to default values mentioned at design time. is there a way(other than MSACCESS,EXCEL etc. like storages) to store these last modified values so they could be used at run time & use at next run time.
           i have also heard about PROPERTY BAG but i am not finding
much info on it. PLZ HELP WITH SOME REFERENCE

____________________________
You never see past the choices you don't understand

16-02-2007 at 02:14 AM
View Profile Send Email to User Show All Posts | Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1616
icon Re: property pages of user controls

Well, if you want the person running the program to be able to make changes when it's running, and to save those changes, it's easiest to store it in a file (that the program creates and reads when it runs).

It can be stored in a database, registry...  But unless you use a database in the program, adding support for a database just to store values adds a lot of overhead for no real purpose.  Registry can be used, but I try not to use the registry whenever possible (clutter's left behind if you uninstall the program many times), and if there's ever a problem, you don't want users editing the registry.

A text file's easiest.  If you search the board, there's tons of examples, but it's basically as easy as:

open "filename.txt" for output as 1
print #1, "a value to save for control A"
print #1, "a value to save for control B"
close


open "filename.txt" for input as 1
line input #1, strControlAValue
line input #2, strControlBValue
close



____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)

16-02-2007 at 09:09 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : VB General : property pages of user controls
Previous Topic (Programming keystrokes)Next Topic (Visual Basic Tutorial) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder