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
how can i get this code back?Code:
Public Class Form1
End Class
Thanks
Printable View
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
how can i get this code back?Code:
Public Class Form1
End Class
Thanks
There is a staggeringly obvious answer to this question isn't there?
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?
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
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.
Thanks Guys.