|
-
Sep 6th, 2009, 01:41 PM
#1
Thread Starter
Hyperactive Member
Deleting the Public Class statement
Hi All
I have a form called 'Form1' in my .NET Project.
When I double clicked the form it went into the code editor.
However, I accidently deleted the statement
Code:
Public Class Form1
End Class
how can i get this code back?
Thanks
-
Sep 6th, 2009, 01:42 PM
#2
Re: Deleting the Public Class statement
There is a staggeringly obvious answer to this question isn't there?
-
Sep 6th, 2009, 01:52 PM
#3
Re: Deleting the Public Class statement
As ten minutes has passed and then penny doesn't appear to have dropped I'll help out.
I can think of three ways of doing it...
i) Either press CTRL+Z or select undo from the Edit Menu
ii) Copy and paste the two lines from your code snippets - the 1st one put at the top of the code editor, the 2nd one at the bottom
iii) Type the two lines from your code snippets - type the 1st one at the top of the code editor, type the 2nd one at the bottom
Or is this a trick question?
-
Sep 6th, 2009, 02:06 PM
#4
Thread Starter
Hyperactive Member
Re: Deleting the Public Class statement
 Originally Posted by keystone_paul
As ten minutes has passed and then penny doesn't appear to have dropped I'll help out.
I can think of three ways of doing it...
i) Either press CTRL+Z or select undo from the Edit Menu
ii) Copy and paste the two lines from your code snippets - the 1st one put at the top of the code editor, the 2nd one at the bottom
iii) Type the two lines from your code snippets - type the 1st one at the top of the code editor, type the 2nd one at the bottom
Or is this a trick question?
Thanks - Thats Great
-
Sep 6th, 2009, 02:09 PM
#5
Frenzied Member
Re: Deleting the Public Class statement
you are right shamas21 thats really great..........
if i say that i am trying to write a .net code in a notepad and trying to compile the code then it will be great also......Is nt it?
-
Sep 6th, 2009, 02:31 PM
#6
Thread Starter
Hyperactive Member
Re: Deleting the Public Class statement
 Originally Posted by gautamshaw
you are right shamas21 thats really great..........
if i say that i am trying to write a .net code in a notepad and trying to compile the code then it will be great also......Is nt it?
Guys - One more question relating to my Form.
The top half of my form has a list box and the bottom half of my form has a listbox. Both listboxes are quite tall in height and cant fit both on my form.
An alternative im looking for is, is there some sort of divider that i can put in the middle of the form where by i can increase the view of the bottom half of my form when i drag the divider up, or something alike?
Thanks
-
Sep 6th, 2009, 02:34 PM
#7
Re: Deleting the Public Class statement
If you look in the toolbox in the "containers" section there is a splitcontainer which creates 2 panels and a draggable divider.
By default this has 2 vertical panels which can have adjustable widths, however you can use its "orientation" property to change this to horizontal panels where you can change the height.
-
Sep 6th, 2009, 03:05 PM
#8
Re: Deleting the Public Class statement
 Originally Posted by Shamas21
Hi All
I have a form called 'Form1' in my .NET Project.
When I double clicked the form it went into the code editor.
However, I accidently deleted the statement
Code:
Public Class Form1
End Class
how can i get this code back?
Thanks
If you havn't closed the editor yet, pressing CTRL+Z (undo operation) several times should bring it back.
-
Sep 6th, 2009, 03:19 PM
#9
Thread Starter
Hyperactive Member
Re: Deleting the Public Class statement
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|