Visual Studio :: Form Not Opening - Hides Up Everything

Mar 31, 2010

I have a project in VS2008.Net3.5 with a Module1, form1 and form2.

[CODE]

Imports Microsoft.VisualBasic
Module Module1
Public frm1 As form1
Public frm2 As form2
Sub Main()
frm1 = New form1
frm2 = New form2
Application.run(frm1)
End Sub
'A menu sub
Private Sub menuGotoSpecification_Click(ByVal sender As Object, ByVal e As System.EventArgs) _
Handles menuGotoSpecification.Click
frm2.Show()
End Sub
End Module
Public Class form1
Private Overrides Sub Show()
LoadData()
MyBase.Show()
End Sub
End Class
Public Class form2
Private Overrides Sub Show()
LoadData()
MyBase.Show()
End Sub
Private Sub btnDone_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDone.Click
frm1.show()
frm1.refresh()
Me.Hide()
End Sub
End Class[/CODE]

Question:

At the beginning I am opening form1 from sub Main(). Now from the menu I am openning form2. In form2 I am clicking Done button to hide form2 and go back to form1. It works fine in the 1st trial. Keeping form1 open for the 2nd time, I opened form2 from the menu. Now when I Click the Done button 2nd time it just hides up everything. Form1 does not show UP. It just exits the whole application. But in my btnDone event, I have frm1.show().

View 2 Replies


Similar Messages:

After Opening An Existing Proyect In Visual Studio 2010, Web Form In Design View Doens't Work

Apr 14, 2010

After opening an existing proyect in visual studio 2010, the web form in design view doens't work. All server control puts a gray box with the following message : Error Creating Control - imgTransportistaSession state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration><system.web><httpModules> section in the application configuration.

View 4 Replies

Visual Studio :: Opening Visual Studio 2008 Project In Visual Studio 2010?

May 21, 2010

Anyone know if I can maintain a VS 2008 (.net 3.5) project by using the VS 2010 IDE ?

View 1 Replies

Visual Studio :: Microsoft Visual Studio2010 - Error While Opening

Mar 9, 2010

I have upgraded to VS2010 recently. Now VS2010 is not opening i get an messg box displaying. Microsoft Visual Studio has encountered a problem and needs to close. We are sorry for the inconvenience. It automatically gets restarted and displays the same message. I have re-installed VS more than 3 times.

View 1 Replies

Visual Studio :: Getting VS To Setup IIS When Opening Web App Project?

Oct 29, 2010

When I open up a web application project, VS attemps to configure IIS to open the project. This is fine, but typically there is already an application in that place. For example, we have apps that run at the root, and various feature branches would map to the same virtual application. Even though VS can *create* the application, it won't modify an existing one.

For example, lets say IIS has:
/MyApp
During my day I mightwant to work on MyApp from:
c:ranchesfeature1MyApp
c:ranchesfeature2MyApp
c:archive
elease102MyApp
c:production
elease204MyApp

If I delete /MyApp, then VS will create it when I open any of these projects, but it will never modify /MyApp to point to my current project. So first thing is: Is there any way to change this behavior?

Second question is, is there no way to open a web application project w/o having a properly backed IIS application setup? I know you can have the projects run off the casini webserver, but all of our applications target IIS and rely on inherited web.config settings. /MyApp is expecting to find config values that exist at /Web.Config and a login page for the entire system at /Login.aspx. Trying to run /MyApp in casini fails immediately because of these dependencies.

But what if I am just doing a code review. I don't care to browse the site, I just want to open the project. Is there no way to tell VS to just open the project and ignore the fact that IIS isn't setup right?

View 4 Replies

Visual Studio :: Solution Not Opening - Getting Error?

Mar 23, 2011

I have first installed VS2005 and then installed VS2008. After installing, whenever i create a solution in VS2008, i am able to create it properly. if i double-click the solution file, i am able to open the project. Recently i had a problem in my IIS 5.1 and i uninstalled it and the installed it again. After doing that whenever i try to open a VS2008 solution file, i am getting the following error The selected file is a solution file, but was created by a newer version of this application and cannot be opened.". I even tried creating a blank solution using

File->New->Project->Other Project Types-> Visual Studio Solutions-> Blank Solution.

I then added a new project to this solution. I closed the solution and again when i double-click on the newly created solution file i am getting the same error as previous one. I found some solution in the net, tried that and didn't work at all.

View 2 Replies

Visual Studio :: Disable C# Prompt When Opening Website?

May 4, 2010

In both VS 2008 and VS 2010 when we open websites using FILE > OPEN WEBSITE we get a prompt asking us if we want to convert the website to .Net 3.5 or .Net 4.0.

I know once you answer it wont ask again for that site, but it gets annoying when we have alot of websites. We cannot convert the sites because the servers they run on are too old.

Is there a way to disable this prompt permanently?

View 3 Replies

SQL Reporting :: Authentication In Opening Report With Visual Studio 2005

Jul 16, 2010

I am developing a intranet for our company and right now have a problem on loading my report. I developed my report with Visual Studio 2005 and try to load it with Visual Web Developer. I downloaded ReportViewer as well. My database connection is Windows Authentication also. Here is my code in Visual Web Developer:

Imports Microsoft.Reporting.WebForms
Imports System.Net
Imports System.Security.Principal
Partial Public Class ShowReport
Inherits System.Web.UI.Page
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
ReportViewer1.ServerReport.ReportServerCredentials = New MyReportServerCredentials()
End Sub

Private Sub form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles form1.Load
Dim strReportURL As Uri
strReportURL = New Uri("http://SERVERNAME/reportserver")...........................

View 1 Replies

Visual Studio :: Opening A Project Across 2 Computers Running The Exact Same 2008

Feb 11, 2011

The problem is I have a laptop that I take to University with me to all my lessons and lectures and it has Visual Studio 2008 installed on it and I work on my assignments in Visual Studio just fine. However when I get home I would like to use my desktop PC which has the exact same copy even from the very same disk of Visual Studio 2008 that is installed on my laptop. The problem is no matter what I do I can't open and work with any projects that I have created on my laptop.

Now if I create the project on my desktop PC it will open just fine on my laptop and I can continue to work with the project but the minute I save and take that project over to my desktop I get the self same error message shown below. [URL] I did do a little research and I found what looked like a solution for some people and that was to change the "SQL Server Instance Name" to SQL2008. As shown below it was set to SQLEXPRESS which is the same as what it says on my laptop copy. [URL] But all this did was present me with a new message as shown below. [URL] Uploaded with [URL] I'm completely at a loss as to what the issue is. Both my laptop and desktop run a fully updated copy of Windows 7 64Bit and have the same copy from the same CD of Microsoft Visual Studio 2008.

View 13 Replies

Visual Studio :: Closes Itself By Opening Aspx-Page Designer After Windows Update?

Aug 17, 2010

I've a problem with my Visual Studio.On the 13th of August 2010 i installed a Windows update on my vista sp2 pc. For this date my Visual Studio 2008 sp 1 always has closed itself by opening an aspx-page in designer view. There is no error message just closing the window. I restored a backup of my windows from the time before updating it and it helped, i could open aspx pages in the design view till the update has been installed again automatically after rebooting the pc. I can't disable windows updates, cause it's my pc at work and safety is very important.

View 8 Replies

Visual Studio 2008 IDE Freezes/crashes When Opening .aspx File With Css Included

May 17, 2010

Visual Studio (SP1) runs fine until I try and view .aspx source files with the lines

<style type="text/css">
</stlye>

anywhere in them, upon which it freezes (i.e is totally unresponsive) and I have to use the task manager to shut it down.

I have read a lot of questions about Visual Studio 2008 crashing on viewing some source files. However, I still can't fix this problem.

I have systematically deleted and re-included all other code and it comes down to these two lines, which is very confusing. Sometimes it happens as soon as the lines are added, sometimes it doesn't freeze until I build the solution with any of the problem pages open. I can add external style sheets, and it only started recently.

I had Resharper 4.5 installed and have since uninstalled it, and do not have anything else installed.

Also, it happens to other people with the same source code, and re-installing Visual Studio does not fix the problem. So I have several questions:

Is there any way I can find out what's happening? I don't understand how the code (the css tag itself) could crash Visual Studio, and am thinking that this is unlikely and it must be something else within my solution, would this be a safe assumption? Could this have anything to do with installing Office 2010?

View 4 Replies

Visual Studio :: Turn Off The Feature Where Closing Tags Are Automatically Inserted When An Opening Tag Is Typed

Aug 31, 2010

How do I turn off the feature where closing tags are automatically inserted when an opening tag is typed? I want all auto text turned off.

View 1 Replies

Visual Studio :: Intellisense For XML Files - Web.config File And The Editor Doesn't Highlight The Closing Or Opening Tag

Feb 3, 2010

I know I've seen this in one of the video tutorials but I have no idea which one and I have reinstalled VS since then. I think it was Chris Pels that showed how to set up VS so that you had IntelliSense for XML files. The reason I ask is because I'm going through the Security tutorials series and working on the web.config file and the editor doesn't highlight the closing or opening tag when you click on one or the other like it does for HTML or C#.

Not sure if I'm explaining this clearly or not. When working with HTML or C# I can click on the opening tag for an element, say a div tag and VS will bold the type of the closing div tag. This makes it easy to be sure that I'm not messing up my tags. Well this doesn't happen with an XML document. I saw in one of the videos where the author configured the settings in VS so that IntelliSense would work in an XML document. I just don't remember the path to those settings or what changes were made.

View 2 Replies

Visual Studio :: Webpage Opening Twice When Select "View In Browser" In 2005

Jan 19, 2011

I am using visual studio 2005 and 2008.when i Right click and select view in browser in VS 2005,it is opening same web page twice.Can any one say why it is opening twice.

View 8 Replies

Visual Studio :: Opening CSS Files As Text Files?

Mar 25, 2010

My Visual Studio 2005 program doesn't open CSS files properly - when I open them in VS, it opens them as a text file. It is annoying because if I do something wrong, it doesn't show up the error and I have to sift through it all to try and find out what is wrong. Plus it doesn't show up the hints for the attributes.

View 5 Replies

Visual Studio :: How To Convert Whole Visual Studio 2008 Web Site Project To Visual Studio 2010

Aug 14, 2010

is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project

my current project references

i have a very annoying iis problem

iis server stops working until app pool is recycled

i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem

View 2 Replies

Visual Studio 2010 - .NET Web Form On SharePoint

Oct 13, 2010

I would like to create and deploy an ASP.NET web form on SharePoint server which can create document in SharePoint list (or library). Since I'm not experienced in both these technologies so would appreciate if someone guides me to the right tool. Should I use Visual Studio or SharePoint designer ? Also, I was reading an article on MSDN about "Deploying ASP.NET Web Applications in the Windows SharePoint Services 3.0 _layouts Folder". Is it the best practise or should I go with webpart/solution based deployment?

View 1 Replies

Visual Studio :: Deploying Form In Sharepoint Site?

Dec 1, 2010

I have created an asp.net window form as a web page and now i have to embed this form in a sharepoint site. How to i proceed.

View 2 Replies

Visual Studio :: Copied Web Form Not Showing Up In Solution Explorer?

Dec 1, 2010

I have two web forms inside the same project folder that will be very similar when completed. When I copy a web form and paste it in the project folder by its new name I can see the .aspx file, the aspx.cs and aspx.designer.cs all by the new name. Appears to work perfect...........Why don't these show up when I view the Solution Folder? I was hoping to copy one, make changes and rename the second one saving time. Appears to not be tied into the Project.

View 1 Replies

Opening New Form In Existing Form Only Using Button

Jun 15, 2010

i am new to asp.net i am trying to open a new form from an existing form by pressing a button. the second form should open inside first form only just by clicking in form 1.

View 4 Replies

Prevent ID Autogeneration On Copy - Paste In Visual Studio 2008 Web Form

Mar 4, 2010

If I have the following in an ASP.NET Web Form:

<asp:TextBox runat="server" ID="tbxUser"/>

and I copy and paste that line in the same page, I usually get the following:

<asp:TextBox runat="server" ID="TextBox1"/>

Obviously, nobody is going to name their controls in that way (if you don't want to name a textbox, simply don't asign an ID to it), and it's not nice having to change the ids of pasted controls. The same happens if I copy a control without an explicit ID, VS simply generates one for me. Is there any way of preventing VS from autogenerating IDs when I copy-paste ASP.NET code?

View 1 Replies

Visual Studio :: How To Insert Data Into Multiple Tables On A Single Web Form

Mar 20, 2010

I'd like to build an Asp.Net website using the .net 3.5 framework. I have a SQL Database called "Database.mdf"

View 1 Replies

Visual Studio :: Visual Source Safe Plug In Control For Visual Studio 2005 IDE

Jan 28, 2010

where to find/download visual source safe plug in or visual source safe client for visual studio 2005 IDE?

I do not want to install visual source safe 2005 server.

View 1 Replies

Visual Studio :: Call To The Class Library From The Windows Form Application Works Fine?

Aug 12, 2010

I have a windows service that calls a class library. The call to the Class library from the windows form application works fine. But from the service I do get the desired output. The event viewer does not report any error. The service was working fine until the recently when the server got remastered. Any suggestions what might have gone wrong?

View 2 Replies

AJAX :: Drag-and-drop, Toolkit Controls Onto A Visual Studio 2010 Design Form?

Mar 13, 2011

I installed the AJAX Toolkit (for .NET4) onto a new Toolbox tab in Visual Studio 2010. However, when I try to drag any of these controls onto my Web form in design mode, they won't stick. My mouse pointer changes to 'disabled' (a circle with a diagonal line thru the middle) as soon as it hovers anywhere over my target form. Is there some additional action I need to take to make VS "recognize" these AJAX Toolkit controls?

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved