|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Lost my Design view for a Windows Form (VB 2005)I have 2 forms, Form1.vb and Form2.vb.
In Solution Explorer, Form2.vb no longer shows a Form icon nor do I have the option to open Form2.vb [design] in the main explorer window where usually I have the design view options for any forms. I don't get it. Why can I not get back to design view for Form2?? Thanks, Ryan Ryan wrote:
> I have 2 forms, Form1.vb and Form2.vb. I have seen this before. I got around it by simply adding another> In Solution Explorer, Form2.vb no longer shows a Form icon nor do I have the > option to open Form2.vb [design] in the main explorer window where usually I > have the design view options for any forms. > I don't get it. Why can I not get back to design view for Form2?? > > Thanks, > Ryan blank form to the project. Once I did that, my other form came back and I deleted the unneeded form. You might also try right clicking on it and choose open with designer. Hi,
If Chris's suggestion does not work close visual studio and open it from the command promt and reset visual studio's settings. devenv /resetsettings http://msdn2.microsoft.com/en-us/ms241273.aspx Ken ------------------------------ Show quoteHide quote "Ryan" wrote: > I have 2 forms, Form1.vb and Form2.vb. > In Solution Explorer, Form2.vb no longer shows a Form icon nor do I have the > option to open Form2.vb [design] in the main explorer window where usually I > have the design view options for any forms. > I don't get it. Why can I not get back to design view for Form2?? > > Thanks, > Ryan > > > I tried both yours and Chris' suggestions and am still having the same
problem. I don't get it.. the form still works properly when I debug the application (F5), but I cannot get to its design view. I've looked at the designer.vb files (which I have not modified) and they both inherit from System.Windows.Forms.Form Partial Class Form1 Inherits System.Windows.Forms.Form The Icon for "View Designer" is not available at the top of the Solution Explorer for Form2.vb nor is it an option when I right click on Form2.vb (View Designer is an option in both placed for Form1.vb). Thanks, Ryan Show quoteHide quote "Ken Tucker [MVP]" <KenTucker***@discussions.microsoft.com> wrote in message news:B3879054-355B-415F-A02F-90113861C372@microsoft.com... > Hi, > > If Chris's suggestion does not work close visual studio and open it > from the command promt and reset visual studio's settings. > > devenv /resetsettings > > http://msdn2.microsoft.com/en-us/ms241273.aspx > > Ken > ------------------------------ > > "Ryan" wrote: > >> I have 2 forms, Form1.vb and Form2.vb. >> In Solution Explorer, Form2.vb no longer shows a Form icon nor do I have >> the >> option to open Form2.vb [design] in the main explorer window where >> usually I >> have the design view options for any forms. >> I don't get it. Why can I not get back to design view for Form2?? >> >> Thanks, >> Ryan >> >> >> Nevermind I found the problem. There was no public Class declaration in the
code behind Form2.vb. Must have deleted everything out of there by mistake when deleting out some other code. Once I added this to the code behind Form2.vb it worked fine: Public Class Form2 End Class Show quoteHide quote "Ryan" <Tyveil@newsgroups.nospam> wrote in message news:uZlk1T$iGHA.4304@TK2MSFTNGP03.phx.gbl... >I tried both yours and Chris' suggestions and am still having the same >problem. I don't get it.. the form still works properly when I debug the >application (F5), but I cannot get to its design view. I've looked at the >designer.vb files (which I have not modified) and they both inherit from >System.Windows.Forms.Form > > Partial Class Form1 > Inherits System.Windows.Forms.Form > > The Icon for "View Designer" is not available at the top of the Solution > Explorer for Form2.vb nor is it an option when I right click on Form2.vb > (View Designer is an option in both placed for Form1.vb). > > Thanks, > Ryan > > "Ken Tucker [MVP]" <KenTucker***@discussions.microsoft.com> wrote in > message news:B3879054-355B-415F-A02F-90113861C372@microsoft.com... >> Hi, >> >> If Chris's suggestion does not work close visual studio and open it >> from the command promt and reset visual studio's settings. >> >> devenv /resetsettings >> >> http://msdn2.microsoft.com/en-us/ms241273.aspx >> >> Ken >> ------------------------------ >> >> "Ryan" wrote: >> >>> I have 2 forms, Form1.vb and Form2.vb. >>> In Solution Explorer, Form2.vb no longer shows a Form icon nor do I have >>> the >>> option to open Form2.vb [design] in the main explorer window where >>> usually I >>> have the design view options for any forms. >>> I don't get it. Why can I not get back to design view for Form2?? >>> >>> Thanks, >>> Ryan >>> >>> >>> > > Ryan,
Are you famaliar with the Show All files icon from the Solution Explorer it is in Top of the Box. I have the idea that you would have found it than earlier. Cor Show quoteHide quote "Ryan" <Tyveil@newsgroups.nospam> schreef in bericht news:O%23JNoW$iGHA.2220@TK2MSFTNGP05.phx.gbl... > Nevermind I found the problem. There was no public Class declaration in > the code behind Form2.vb. Must have deleted everything out of there by > mistake when deleting out some other code. Once I added this to the code > behind Form2.vb it worked fine: > > Public Class Form2 > > End Class > > "Ryan" <Tyveil@newsgroups.nospam> wrote in message > news:uZlk1T$iGHA.4304@TK2MSFTNGP03.phx.gbl... >>I tried both yours and Chris' suggestions and am still having the same >>problem. I don't get it.. the form still works properly when I debug the >>application (F5), but I cannot get to its design view. I've looked at the >>designer.vb files (which I have not modified) and they both inherit from >>System.Windows.Forms.Form >> >> Partial Class Form1 >> Inherits System.Windows.Forms.Form >> >> The Icon for "View Designer" is not available at the top of the Solution >> Explorer for Form2.vb nor is it an option when I right click on Form2.vb >> (View Designer is an option in both placed for Form1.vb). >> >> Thanks, >> Ryan >> >> "Ken Tucker [MVP]" <KenTucker***@discussions.microsoft.com> wrote in >> message news:B3879054-355B-415F-A02F-90113861C372@microsoft.com... >>> Hi, >>> >>> If Chris's suggestion does not work close visual studio and open >>> it >>> from the command promt and reset visual studio's settings. >>> >>> devenv /resetsettings >>> >>> http://msdn2.microsoft.com/en-us/ms241273.aspx >>> >>> Ken >>> ------------------------------ >>> >>> "Ryan" wrote: >>> >>>> I have 2 forms, Form1.vb and Form2.vb. >>>> In Solution Explorer, Form2.vb no longer shows a Form icon nor do I >>>> have the >>>> option to open Form2.vb [design] in the main explorer window where >>>> usually I >>>> have the design view options for any forms. >>>> I don't get it. Why can I not get back to design view for Form2?? >>>> >>>> Thanks, >>>> Ryan >>>> >>>> >>>> >> >> > > Yes I am familiar with the "show all files" icon.
Thanks, Ryan Show quoteHide quote "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message news:eTIk3vEjGHA.1600@TK2MSFTNGP04.phx.gbl... > Ryan, > > Are you famaliar with the Show All files icon from the Solution Explorer > it is in Top of the Box. > I have the idea that you would have found it than earlier. > > Cor > > > "Ryan" <Tyveil@newsgroups.nospam> schreef in bericht > news:O%23JNoW$iGHA.2220@TK2MSFTNGP05.phx.gbl... >> Nevermind I found the problem. There was no public Class declaration in >> the code behind Form2.vb. Must have deleted everything out of there by >> mistake when deleting out some other code. Once I added this to the code >> behind Form2.vb it worked fine: >> >> Public Class Form2 >> >> End Class >> >> "Ryan" <Tyveil@newsgroups.nospam> wrote in message >> news:uZlk1T$iGHA.4304@TK2MSFTNGP03.phx.gbl... >>>I tried both yours and Chris' suggestions and am still having the same >>>problem. I don't get it.. the form still works properly when I debug the >>>application (F5), but I cannot get to its design view. I've looked at >>>the designer.vb files (which I have not modified) and they both inherit >>>from System.Windows.Forms.Form >>> >>> Partial Class Form1 >>> Inherits System.Windows.Forms.Form >>> >>> The Icon for "View Designer" is not available at the top of the Solution >>> Explorer for Form2.vb nor is it an option when I right click on Form2.vb >>> (View Designer is an option in both placed for Form1.vb). >>> >>> Thanks, >>> Ryan >>> >>> "Ken Tucker [MVP]" <KenTucker***@discussions.microsoft.com> wrote in >>> message news:B3879054-355B-415F-A02F-90113861C372@microsoft.com... >>>> Hi, >>>> >>>> If Chris's suggestion does not work close visual studio and open >>>> it >>>> from the command promt and reset visual studio's settings. >>>> >>>> devenv /resetsettings >>>> >>>> http://msdn2.microsoft.com/en-us/ms241273.aspx >>>> >>>> Ken >>>> ------------------------------ >>>> >>>> "Ryan" wrote: >>>> >>>>> I have 2 forms, Form1.vb and Form2.vb. >>>>> In Solution Explorer, Form2.vb no longer shows a Form icon nor do I >>>>> have the >>>>> option to open Form2.vb [design] in the main explorer window where >>>>> usually I >>>>> have the design view options for any forms. >>>>> I don't get it. Why can I not get back to design view for Form2?? >>>>> >>>>> Thanks, >>>>> Ryan >>>>> >>>>> >>>>> >>> >>> >> >> > >
Threading
Export CR to Excel problem Launch new instance of IE?? Evaluating threads in an application Last Modified date for the Source code. Help with Datagridviews dll & Web Service in VB.Net 2005 Stored Procedure text file to datatable to SQL2005 table not working VB.NET/2005 Application crash problem in crystal report |
|||||||||||||||||||||||