Re: Form load errors




"Rick Rothstein (MVP - VB)" <rickNOSPAMnews@xxxxxxxxxxxxxxxxx> wrote in
message news:ubXYoWq2HHA.2752@xxxxxxxxxxxxxxxxxxxxxxx
Not sure what's happened here, but I've started getting form load
errors when I open one of my forms in a large-ish project. I've never
had these errors before anywhere in the project. When I look at the
log, I see:

Line 156: Property Left in tbPreview could not be set.
Line 156: Property Width in tbPreview could not be set.


Do you have a backup copy of that form? If not, and you "keep saving
it", you've lost that toolbar (obviously). It's now a picturebox.

Just open a "good" form in notepad and compare the "Object=" line to
that "bad" form. If they don't match, copy the "good" declaration and
pasted it over the "bad" declaration.

fwiw, you don't need to set Top/Left for it to fail. The control itself
needs to know where it is on the form, so those errors are probably
coming from the control itself (or the fact that the declaration's no
longer valid)

That's the thing, the toolbar is there and it fully functional. There's
nothing wrong with it, all the icons are there and it continues to work
without error.

While I don't think this is your problem, let's give it a "what the hell"
try anyway.<g>

Go to Project/Reference in VB's menu and see if anything is marked as
"Missing" (or marked in any other way) and, if so, either check or uncheck
(as appropriate) any item so marked.

Rick

Nothing missing.

Even stranger - I would have expected to see the error when I displayed the
form in the designer. I don't, I get the error when I run the code.

I think I'll go back to a backup copy of the form and copy/paste the changed
code, just in case there's a corruption in the frx file.

Thanks
Steve


.



Relevant Pages

  • Re: Form load errors
    ... coming from the control itself (or the fact that the declaration's no ... the toolbar is there and it fully functional. ... "Missing" and, if so, either check or uncheck ... I think I'll go back to a backup copy of the form and copy/paste the changed ...
    (microsoft.public.vb.general.discussion)
  • Re: Disappearing Command Buttons
    ... are a couple of command buttons on the first screen and the rest of the tabs in the control are removed so only the first screen is displayed. ... It only happens on some machines and I cannot work out why! ... I also have a toolbar on that screen however all the buttons on that toolbar still work and are NOT missing! ...
    (microsoft.public.dotnet.languages.vb)
  • Help on the Menu control
    ... I'm missing something. ... VS2003 I added a toolbar and added the Menu control and off to the races. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Repost:Menu Control Not Working
    ... I'm missing something. ... VS2003 I added a toolbar and added the Menu control and off to the races. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Ultimate Page Control SuiteT for Borland DelphiT
    ... ADVANCE Information Systems is proud to announce its Ultimate Page Control ... and from an innovative navigation ... feature multiple wrapping, paged toolbar regions, and integral paged related ...
    (alt.comp.lang.borland-delphi)