Visual Basic PropertyBags to remember Parameters-Its in the Bag

Recalling UserControl Properties

Standard controls have properties you can set using the object browser.  The next time you bring up your VB program for editing you need to be able to recall the state of these settings.  Example #3 on this page  shows how to use a PropertyBag to remember these settings.

 

             

  BagMan PropertyBag Example

Storage to the Bag

Save to the Bag – Fill up the object to be saved to disk Stuff it in the Bag – The actual file operation to put on disk

 Private Sub cmdSave_Click()

  Dim objBag As New PropertyBag

    With objBag
        .WriteProperty "Str", "A string"
        .WriteProperty "Num", 666
        .WriteProperty "Bool", False
        .WriteProperty "Mascot", SuperBagMan.Picture

        SaveBagContents .Contents, App.Path & "\Things.bag"
    End With
   
    Set objBag = Nothing

End Sub  

                                                                                                               

Private Sub SaveBagContents(Contents As Variant, FilePath As String)

  Dim FileNum As Integer

    FileNum = FileSystem.FreeFile()

    Open FilePath For Binary As FileNum
        Put #FileNum, , Contents
    Close FileNum

End Sub

 

 

……….more

Creative useful ideas for sellers names on ebay

One of the funniest things I ever saw on ebay was the name of the user.   They chose the following name

      AuctionOver

What is so funny about this is that when you first saw it you thought oh damnit….I missed the bidding.  Now this only worked for about 1/2 a second on me but anyone who did not look closely would just keeping clicking and skip bidding. Thus this humorous user would get better prices on that which he bought.

International Citizens Band Radio day October Fourth 10-4

International Citizens Band Radio day October Fourth *( 10-4 ) will soon be upon us.  Do you have your CB radios in working order and ready to transmit ?  Make sure no miscreant has pinned your coax.  Fire up your radio and make sure everything is ready for TEN-FOUR.  

In America Its customary to give gifts on this day.  Have you bought your wife the Bearcat scanner she's had her eye on?

Sandals stink a bit-How do you get teva rubber sandals to stop stinking after you sweat in them? Stopping teva sandals stinking

How do you get teva rubber sandals to stop stinking after you sweat in them.? My Teva sandals smell a little bit. How can I get them to stop kickin?   Use my sandal mummification process.

My solution is easier if you have 2 pairs.  Get an old shoebox and dump a bunch of Borax in it.  Take one pair and and bury them cover them in Borax.  Let them rest their for a while.  This works pretty well in Arizona where its very dry.  The Borax sucks the moisture out and a bit of it diffuses into the sandal material. Borax is antibacterial and you will find your sandals smelling alot better.  You can do this on a nightly basis but what works best is to leave them in the borax a week so you do not have to dust them off everyday.  Simply pull out the ones that have been mummifying for a week and put your second pair in.  Then you always have a stink free pair.