473,387 Members | 1,493 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,387 software developers and data experts.

Windows Forms Designer?

I have a MyForm.vb which is built in Studio.NET 2003.
Originally, I can use Windows Forms Designer to design my
form. But for some reason(?), The MyForm.vb icon changed
and I can not choose Windows Forms Designer to design
MyForm.vb using Solution Explorer.

What happened and how to fixed it?
Nov 20 '05 #1
6 1068
Jan
Kathy,

Did you remove the statement 'Inherits System.Forms.Form' in the code of
MyForm.vb ? Without this statement your form becomes a normal class.

Regards,
Jan

"kathy" <an*******@discussions.microsoft.com> wrote in message
news:09****************************@phx.gbl...
I have a MyForm.vb which is built in Studio.NET 2003.
Originally, I can use Windows Forms Designer to design my
form. But for some reason(?), The MyForm.vb icon changed
and I can not choose Windows Forms Designer to design
MyForm.vb using Solution Explorer.

What happened and how to fixed it?

Nov 20 '05 #2
Hi Kathy

Also, ensure that it is the _first_ class in the module.

HTH

Charles
"kathy" <an*******@discussions.microsoft.com> wrote in message
news:09****************************@phx.gbl...
I have a MyForm.vb which is built in Studio.NET 2003.
Originally, I can use Windows Forms Designer to design my
form. But for some reason(?), The MyForm.vb icon changed
and I can not choose Windows Forms Designer to design
MyForm.vb using Solution Explorer.

What happened and how to fixed it?

Nov 20 '05 #3
Cor
Hi Jan,
I don't know if it is the solution, but I find your answer clever
:-)
Cor
Nov 20 '05 #4
"kathy" <an*******@discussions.microsoft.com> schrieb
I have a MyForm.vb which is built in Studio.NET 2003.
Originally, I can use Windows Forms Designer to design my
form. But for some reason(?), The MyForm.vb icon changed
and I can not choose Windows Forms Designer to design
MyForm.vb using Solution Explorer.

What happened and how to fixed it?


Sometimes it happens when you put the class in a namespace:

namespace Forms
class myform
inherits ...
end class
end namespace

Closing and reopening the solution or the IDE sometimes helps.
--
Armin

Nov 20 '05 #5
my class is not in a namespace:
but it is true that after I Close and reopen the IDE, It
works.

Why?
Nov 20 '05 #6
"kathy" <an*******@discussions.microsoft.com> schrieb
my class is not in a namespace:
but it is true that after I Close and reopen the IDE, It
works.

Why?


Shit happens. ;-)

(Old but true...)
--
Armin

Nov 20 '05 #7

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

Similar topics

6
by: Ayende Rahien | last post by:
Excetremely annoying problem, I've an application with a long startup time. So I created another form with my logo in it to as a splash screen. The splash screen is run from another thread and is...
5
by: Dave | last post by:
How do I check in a Windows Forms app if any controls have changed? I have a form that collects data, and I want to prompt the user if they try to exit the app, or load a new file, without saving...
5
by: david | last post by:
I have developed my web service with a domain name of my computer name and wwwroot directory. I also developed a client of windows form application. It works locally (i.e. in the same machine). ...
1
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. I'm having trouble getting the code that I've written to work, can anyone shed some light as to where I'm...
0
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. The program I'm trying to develop needs to be able to do the following: - Select remote server -...
8
by: Alison | last post by:
Hi, Al I am trying to design a user interface which provides both menus and toolbars for some users to click on whatever they want to do, at the same time, I would like to have a console window...
4
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
15
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the counter, and a timer that increments the counter...
21
by: Dan Tallent | last post by:
In my application I have a form (Customer) that I want to be able to open multiple copies at once. Within this form I have other forms that can be opened. Example: ZipCode. When the user enters...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.