Results 1 to 31 of 31

Thread: [02/03] VS Bug??

Threaded View

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    [02/03] VS Bug??

    Ok I had some time to make a sample project to demonstrate what I feel is a bug. Either that or I am doing something wrong here.

    Attached is a simple windows form app project and class library project (both part of same solution)

    the class library contains 1 class which extends to textbox class (just makes the font red, this is just to illustrate the fact that its a class inheriting from a control)

    the windows forms app contains just 1 form, and references the class library project.

    Open the project, and compile it in debug mode prior to viewing form1. This is because the class library DLL needs to be compiled before it can be used on the form.

    After that if you view form1, it looks just like a simple little form. You can run the project, it should work just fine.

    Close any open documents in the IDE (not the solution, just any .vb files that are open)

    now, set the project to release mode, and select "rebuild solution" from the solution explorer. Once the compile is done, open Form1 in the designer, and see if the custom textbox control is still there, or if you get an error message stating VS couldn't find the type "VSBugLib.TextBoxEx" and the control is missing.

    This has been a royal pain in the butt, and I have been trying to figure it out.

    workarounds that fix this AFTER it happens, are changing back to debug mode, and compiling again, then closing VS and reopening the sln file. Deleting the obj folder works too, however that is not a solution to this issue.

    Can others please confirm if this happens to them to, I tried it on 2 machines and got the same results. One machine is running VS.NET 2003 SP1 and one is running it without a SP

    IDE Versions 7.1.6030 and 7.1.3088
    Both have .NET framework 1.1 SP1

    This only seems to affect the IDE, the actual compiled release mode exe functions fine.

    Also I am not sure if all the steps above are nessesary to produce the issue, it may happen in less steps, however I steped through it and wrote it down as it happened.

    Thanks,
    Matt
    Attached Files Attached Files

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