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

Eschewing the Form Designer

I'm pretty heavily into do-it-yourself coding, which makes the Form
Designer more of an annoyance than anything else.

Is there any way to declare

Inherits System.Windows.Forms.Form

at the start of a class without having the environment open the Form
designer whenever I try to open it?

Thanks in advance for any answers.
Feb 10 '06 #1
6 935
Hi,

Just open a "class" and start to type.

However it will in my opinion give you not any advantage than by opening a
form and ignore the desisgner part. You would have to write by instance the
disposing part yourself.

Cor
Feb 10 '06 #2
The Confessor wrote:
I'm pretty heavily into do-it-yourself coding, which makes the Form
Designer more of an annoyance than anything else.

Is there any way to declare

Inherits System.Windows.Forms.Form

at the start of a class without having the environment open the Form
designer whenever I try to open it?

Thanks in advance for any answers.


You can code it all yourself, the designer will still try and open, but
just right click the file and choose view code.
Chris
Feb 10 '06 #3
If you right click the file and choose open with, you can set the IDE
to default to opening in code view when you double click the form.
Perhaps that is what you are looking for?

Feb 10 '06 #4
CMM
Cor's answer was right on point.
Just create an empty class and Inherit from "System.Windows.Forms.Form."
Then, go to work!
Somehow, I would think that if you didn't know that, then you're in no way
ready to take on the task.
He is also right in that it will provide you no benefit. The Forms Designer
is one of the most mature, well thought-out (mostly) and best part of Visual
Studio. This is one area where Microsoft shines. It's like they took the
VB1-6 Windowing engine and gave it all the benefits of MFC without any of
the impediments.

WebForm designer?.... Well, that's a different story IMHO. ;-)

--
-C. Moya
www.cmoya.com
"The Confessor" <in*****@reply.to.group> wrote in message
news:Xn*********************************@130.81.64 .196...
I'm pretty heavily into do-it-yourself coding, which makes the Form
Designer more of an annoyance than anything else.

Is there any way to declare

Inherits System.Windows.Forms.Form

at the start of a class without having the environment open the Form
designer whenever I try to open it?

Thanks in advance for any answers.

Feb 10 '06 #5
Hello, Chris,

I don't know if that's what "The Confessor" is looking for, but it will
sure help me. While I very happily use the form designer for initial
layout, most of my work is with the code. I'm continually double
clicking my forms when I really want to open them in code view.

I've made the change and am very pleased. Thanks for bringing it to my
attention. (I guess there are still many corners of the IDE that I
haven't looked in yet.)

Cheers,
Randy
Chris Dunaway wrote:
If you right click the file and choose open with, you can set the IDE
to default to opening in code view when you double click the form.
Perhaps that is what you are looking for?

Feb 11 '06 #6
"Chris Dunaway" <du******@gmail.com> wrote in news:1139582135.197428.165800
@g14g2000cwa.googlegroups.com:
If you right click the file and choose open with, you can set the IDE
to default to opening in code view when you double click the form.
Perhaps that is what you are looking for?


Randy's reply caught my eye and brought my attention to the fact that I
hadn't thanked you for your answer, which turned out to be *exactly* what I
was looking for as well.

Thank you, Chris.

The Confessor
Feb 11 '06 #7

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

Similar topics

0
by: sshuangw | last post by:
Hello: I am encountering a very weird issue with MDI child, Overriden WndProc function and hidden form. Basically, the application has two forms, Form1(parent form), Form2(Child form),...
3
by: Chris | last post by:
Hi, I'm trying to append text from another class to a generic richTextBox that I've added to a Windows form. I can't seem to figure out how to expose the richTextBox to append text to it. ...
2
by: Jaikumar | last post by:
Hi, 1) I have created one windows application, In the main form ( form1) i have added one usercontrol (usercontrol1), In that user control i am drawing one image. 2) In the UserControl1 i am...
2
by: baret bonden | last post by:
Trying to return a selected listbox item to another form .tried lots of ways; defining public variables and passing those as well as textboxes ..I' m able to display the chosen item on it's form...
18
by: Jan Nielsen | last post by:
Hi I have a main form showing personal information (name, address etc.) bound to a dataset. One of the pieces of information is the Group the person belongs to. This is selected from a combo box....
0
by: Amiram Korach | last post by:
When you create a MDI form, you can attach a main menu to the parent and to the child. When a child form is active, its menu is merged with the parent menu. The problem is: when the forms are...
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...
7
by: Terry | last post by:
I have a Mainform with a Statusbar. When opening another form or doing some processing I want to display info in the Statusbar of the Mainform. I have read a lot of articles on this & have come up...
4
by: ThunderMusic | last post by:
Hi, I have a custom form that works fine when I debug it or run it in release mode but cannot be loaded in the designer... Actually, it can be loaded in the designer when no control is on it, but...
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: 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
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...

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.