CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Join Date
    Mar 2006
    Location
    india
    Posts
    230

    Error during form load, help!!!

    HI,

    Iam getting error when i load a single form from my project what to do......

    i saw error detail but could not find what and why it is giving due to datepicker..
    please help,below u can find error log which is given for dependent form How to remove this??

    I got one clue that this error is only to the form which have date picker property please help me,iam waiting to ur response

    Thank u

    sowmya s
    Attached Files Attached Files
    Last edited by sowmya s; March 16th, 2006 at 10:18 PM.

  2. #2
    Join Date
    Feb 2006
    Posts
    37

    Re: Error during form load, help!!!

    Quote Originally Posted by sowmya s
    HI,

    Iam getting error when i load a single form from my project what to do......

    i saw error detail but could not find what and why it is giving due to datepicker..
    please help,below u can find error log which is given for dependent form How to remove this??

    I got one clue that this error is only to the form which have date picker property please help me,iam waiting to ur response

    Thank u

    sowmya s
    Check the component,whether it is loaded properly or not.

  3. #3
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Error during form load, help!!!

    If you are trying to set properties of the DatePicker, you cannot do it in Form_Load, as the form isn't actually visible yet. Place your code for the DP into the Form_Activate event instead, which fires as soon as the form is displayed.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  4. #4
    Join Date
    May 1999
    Location
    New Delhi, India
    Posts
    359

    Re: Error during form load, help!!!

    pls check for you installed components, in case you have all the components installed, then tell me how many forms r ther in ur application and r u talking about the form_load event or r u trying to run only one form out of many?

  5. #5
    Join Date
    Mar 2006
    Location
    india
    Posts
    230

    Re: Error during form load, help!!!

    HI,

    if i open the whole project it does not give any problem but if i open one form out of that project it gives problem...............due to this even if i copy my project in thumb drive and put it in another computer it does not open.........

    please help

  6. #6
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Error during form load, help!!!

    You need at least the minimum of VB6 Runtime Library on each computer. You could also save it on the thumb drive. I don't know why you'd open only a form, if it is separate? I save each program as a project, in a different folder.
    This prevents changing a form in one project, which messes up the same form in another project.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  7. #7
    Join Date
    Mar 2006
    Location
    india
    Posts
    230

    Re: Error during form load, help!!!

    Quote Originally Posted by dglienna
    You need at least the minimum of VB6 Runtime Library on each computer. You could also save it on the thumb drive. I don't know why you'd open only a form, if it is separate? I save each program as a project, in a different folder.
    This prevents changing a form in one project, which messes up the same form in another project.

    HI sir,

    Even i don't want to open a single form,but if i copy whole project and open in another computer......it is not opening........

    and mystery is i have 6 forms 3 forms are opening properly(which don't have datepicker) and other three(dtpicker is there)are not opening...........

    please tell me why and what should i do?

    thank u

    sowmya

  8. #8
    Join Date
    Mar 2006
    Location
    Graz, Austria
    Posts
    273

    Re: Error during form load, help!!!

    Did you try to comment the DateTimePicker to see if it is really causing you problems?Comment all code related, disable the control.Then start to uncomment part of the code.
    Daniela

  9. #9
    Join Date
    Mar 2006
    Location
    india
    Posts
    230

    Re: Error during form load, help!!!

    Quote Originally Posted by DanielaTm
    Did you try to comment the DateTimePicker to see if it is really causing you problems?Comment all code related, disable the control.Then start to uncomment part of the code.
    Daniela

    i commented all date picker code but.............not working
    i think i have to remove date picker i think so.

    did u see the attachment?

    reply
    thank u
    sowmya s

  10. #10
    Join Date
    Mar 2006
    Location
    Graz, Austria
    Posts
    273

    Re: Error during form load, help!!!

    Hi,
    I asked others who had a similar problem before.
    They solved it by reinstalling VB or register again the ocx for that control.
    Sorry about bad news...Hope it helped
    Daniela

  11. #11
    Join Date
    Aug 2003
    Location
    Myanmar
    Posts
    69

    Re: Error during form load, help!!!

    if i open the whole project it does not give any problem but if i open one form out of that project it gives problem...............due to this even if i copy my project in thumb drive and put it in another computer it does not open.........
    If you open only one form in many forms that form if having other OCX tool let say DTPicker, MSFlexGrid so forth tools. That will occur error because you only open one form not the project.
    HTML

  12. #12
    Join Date
    Mar 2006
    Location
    india
    Posts
    230

    Thumbs up Re: Error during form load, help!!!

    Quote Originally Posted by zmyint
    If you open only one form in many forms that form if having other OCX tool let say DTPicker, MSFlexGrid so forth tools. That will occur error because you only open one form not the project.

    HI,

    my main problem i explained befor ie i want to work with project in home also.....so i copied project in thumb drive and went home and opened .but it is not opening(i mean whole project)

    because of that i thought to open single form and check each form ...after checking i came to know that it is problem with datepicker because the forms which have date picker is not opening and other forms which donot have datepicker is opening(when i open single form)

    please give some idea............i attached one file ie error statement given during load please look that and tell me solution..iam not getting...tried in lot of ways.............

    thank u
    sowmya s

  13. #13
    Join Date
    May 1999
    Location
    New Delhi, India
    Posts
    359

    Re: Error during form load, help!!!

    before reinstalling the s/w you pls crosscheck your components and refrences in the machine you have at ur office with the machine at home.
    if it tallies and still the same problem persist you try one more thing ie to copy entire project from your off machine to your machine at home.

    you also do one more thing make a new dummy proj and create a new form with a datetime picker and try to run that if it runs then it means that there is no prob with VB in your machine.

  14. #14
    Join Date
    Aug 2003
    Location
    Myanmar
    Posts
    69

    Re: Error during form load, help!!!

    my main problem i explained befor ie i want to work with project in home also.....so i copied project in thumb drive and went home and opened .but it is not opening(i mean whole project)
    I checked your error text file. If I am not mistaken in that form have five DTPiker right?
    because of that i thought to open single form and check each form ...after checking i came to know that it is problem with datepicker because the forms which have date picker is not opening and other forms which donot have datepicker is opening(when i open single form)
    Originally Posted by zmyint
    If you open only one form in many forms that form if having other OCX tool let say DTPicker, MSFlexGrid so forth tools. That will occur error because you only open one form not the project.
    I tried to find out your problem like what I said the error message is the same.

    The errors message are:
    Line 13: Class MSComCtl2.DTPicker of control DTPicker1 was not a loaded control class.
    Line 19: The property name _ExtentX in DTPicker1 is invalid.
    Line 20: The property name _ExtentY in DTPicker1 is invalid.
    Line 21: The property name _Version in DTPicker1 is invalid.
    Line 22: The property name Format in DTPicker1 is invalid.
    Line 23: The property name CurrentDate in DTPicker1 is invalid.
    How I did is I open one project there have two forms. At the second form have one DTPciker. So I save it and close the whole project and reopen only the second form that have a dtpicker. The error are the same with what you posted.
    HTML

  15. #15
    Join Date
    Mar 2006
    Location
    india
    Posts
    230

    Re: Error during form load, help!!!

    Quote Originally Posted by zmyint
    I checked your error text file. If I am not mistaken in that form have five DTPiker right?




    I tried to find out your problem like what I said the error message is the same.



    How I did is I open one project there have two forms. At the second form have one DTPciker. So I save it and close the whole project and reopen only the second form that have a dtpicker. The error are the same with what you posted.





    Thank u, for trying to find my problem and showed me that my thought about date picker is true.

    Do u know how to resolve this problem?

    please help me out

    Thank u

Page 1 of 2 12 LastLast

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

Featured