473,385 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

a twilight zone moment

This morning I opened a project in VS that I hadn't touched for months.
There's many tabs at the top representing open files.
Among them are two that look very similar:
myCtrl.ascx.vb:1
myCtrl.ascx.vb:2

I'd neven seen this situation before. There's only one myCtrl.ascx.vb
file.

When I try to load the ascx into the designer I get an error saying it
cannot be loaded because none of the classes can be designed.

Any explanations for this?

TIA,
Jim

Nov 19 '05 #1
5 921
<jh*****@yahoo.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
This morning I opened a project in VS that I hadn't touched for months.
There's many tabs at the top representing open files.
Among them are two that look very similar:
myCtrl.ascx.vb:1
myCtrl.ascx.vb:2

I'd neven seen this situation before. There's only one myCtrl.ascx.vb
file.

When I try to load the ascx into the designer I get an error saying it
cannot be loaded because none of the classes can be designed.

Any explanations for this?

hmm, "visual studio sucks" would be my best guess
TIA,
Jim

Nov 19 '05 #2
1) This is usually the notation used when you use multiple window for the
same file.
2) No particular idea. Perhpas do you miss a compoent used on this page in
your toolbox ? I would try to crreate another page with only this control to
see if it looks related to this user control or to some other component...
Patrice

--

<jh*****@yahoo.com> a écrit dans le message de
news:11**********************@l41g2000cwc.googlegr oups.com...
This morning I opened a project in VS that I hadn't touched for months.
There's many tabs at the top representing open files.
Among them are two that look very similar:
myCtrl.ascx.vb:1
myCtrl.ascx.vb:2

I'd neven seen this situation before. There's only one myCtrl.ascx.vb
file.

When I try to load the ascx into the designer I get an error saying it
cannot be loaded because none of the classes can be designed.

Any explanations for this?

TIA,
Jim

Nov 19 '05 #3
On Thu, 03 Mar 2005 08:19:51 -0600, <jh*****@yahoo.com> wrote:
This morning I opened a project in VS that I hadn't touched for months.
There's many tabs at the top representing open files.
Among them are two that look very similar:
myCtrl.ascx.vb:1
myCtrl.ascx.vb:2

I'd neven seen this situation before. There's only one myCtrl.ascx.vb
file.

I also believe this means the same file is just opened twice. This can
happen by design, I can't remember if it's when you double-click on a file
to open it again, VS.NET asks if you want to close the existing copy, you
can say no and end up with 2....
When I try to load the ascx into the designer I get an error saying it
cannot be loaded because none of the classes can be designed.

Any explanations for this?

TIA,
Jim


This is usually because you haven't compiled anything, so the IDE doesn't
know where to find the code-behind/dll to instantiate the controls, forms,
etc. Try closing the pages, compiling once (successfully) then try
reopening and designing....

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 19 '05 #4
Hi Andy,
hmm, "visual studio sucks" would be my best guess
This reminds me of something Winston Churchill once said about Democracy.
Forgive me if I paraphrase:

"Democracy is the worst form of government invented - except for all the
other forms that have been tried."

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Andy Fish" <aj****@blueyonder.co.uk> wrote in message
news:uz**************@TK2MSFTNGP14.phx.gbl... <jh*****@yahoo.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
This morning I opened a project in VS that I hadn't touched for months.
There's many tabs at the top representing open files.
Among them are two that look very similar:
myCtrl.ascx.vb:1
myCtrl.ascx.vb:2

I'd neven seen this situation before. There's only one myCtrl.ascx.vb
file.

When I try to load the ascx into the designer I get an error saying it
cannot be loaded because none of the classes can be designed.

Any explanations for this?


hmm, "visual studio sucks" would be my best guess
TIA,
Jim


Nov 19 '05 #5
Hello Andy,
hmm, "visual studio sucks" would be my best guess


This added a lot to the discussion and clearly helped the OP to resolve his
problem.
Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jason Priebe | last post by:
I'm a bit confused about SET TIME ZONE and its effect on PostgreSQL's date processing. In my experience with timestamps in all other *nix-based software systems, a timestamp is always a numeric...
2
by: MLH | last post by:
I would like to be able to look up any 5-digit ZIP in a table that would show the correct time zone for the area. For example, I would like to look up 91915 in the table and see something that...
3
by: Jon Davis | last post by:
The date string: "Thu, 17 Jul 2003 12:35:18 PST" The problem: // this fails on PST DateTime myDate = DateTime.Parse("Thu, 17 Jul 2003 12:35:18 PST"); Help? Jon
5
by: Swansea University Psychology | last post by:
Hi all, I have a utility that uses the C library function strftime() to return the time zone name, but it returns "GMT Standard Time" on one computer, and "BST" (which it should be at the...
2
by: Avi | last post by:
I have a problem to get the different time zone's name for example I need the name of time zone UTC + 4:30 ("Kabul") The TimeZone.CurrentTimeZone get my current time zone name and I couldn't...
1
by: Clodoaldo Pinto Neto | last post by:
Hi all, I want to have the time zone string (like 'BRT') displayed after a date-time. The date column is of the type timestamp with time zone. But the time zone is not displayed. It works for...
3
by: Satish Itty | last post by:
Hi all, I have a big problem in my hands and not sure how I can fix this. Any suggestions would be greatly appreciated. I have a .NET 3 tier app developed in VS2003 and .NET 1.1. the client is a...
0
by: HandleX609 | last post by:
http://i103.photobucket.com/albums/m135/handlex/RandomPhotos/Buttsex_to-Korn.jpg This is the snapshot stating the event for a certain zone. ...
7
by: Steve | last post by:
Hi All I have a windows application written in VB.net 2005 The users have to select a State of Australia, which I use to check they have the correct windows time zone selected in control panel...
3
by: james | last post by:
WATYF <WATYF1@gmail.comwrote in news:eb43eb6a-afaa-4e39-ac0b-850afdb6d1e4@r66g2000hsg.googlegroups.com: It gets complicated. First, a reference:...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.