Results 1 to 5 of 5

Thread: How to Initialize a Picture Box Control

  1. #1

    Thread Starter
    Lively Member The_Game's Avatar
    Join Date
    Apr 2006
    Posts
    115

    How to Initialize a Picture Box Control

    I am working on an old project that used picturebox controls as their main text entry fields.

    I need to initialize the picturebox controls on my form but i keep getting an "invalid field data type" Error

    Just wondering if anyone can tell me how to initialize a picturebox control to use for text.

    This is what i have:

    VB Code:
    1. Picture1 = ""

  2. #2
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926

    Re: How to Initialize a Picture Box Control

    Are you sure about that?
    As far as I know, the picturebox is not a control that can be used for entering a text.

    Possibly the following happened:
    If you try to open a project that uses ActiveX controls that are not registered on your machine, an errorlog is created, and the control is changed into a picturebox.
    Do you have any .log files in your project directory?
    If yes, what is the contents?
    Frans

  3. #3

    Thread Starter
    Lively Member The_Game's Avatar
    Join Date
    Apr 2006
    Posts
    115

    Re: How to Initialize a Picture Box Control

    Quote Originally Posted by Frans C
    Do you have any .log files in your project directory?
    If yes, what is the contents?

    I have three log files and all three pretty much say the same thing


    All the log files say that MSMask.MaskEdBox of Control mebvariableName was not a loaded Control Class.

    So i guess the control i needed was a MaskEdBox......

    Any ideas on how to fix this???

  4. #4

    Thread Starter
    Lively Member The_Game's Avatar
    Join Date
    Apr 2006
    Posts
    115

    Re: How to Initialize a Picture Box Control

    I got it.

    Thanks for the help

  5. #5
    eltiT resU motsuC Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: How to Initialize a Picture Box Control

    initialize it? like clear it?

    Picture1.cls

    Picture1.Picture = Nothing
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

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