Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 11th, 2004, 05:42 AM
Authorized User
 
Join Date: Mar 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default create form

hey,
i need help with c#
i want to create form in c# and i know how to drag button,edit box and etc. (from the toolbox) and automaticly the code is creating - this is simple and i`m understand it....

the problam is :
i want to change the code of the form(that create automaticly) and when i add, for example another button, all my changes is disappear
how can i avoid ? what should i do?
thank you in advance
koby

 
Old April 11th, 2004, 11:45 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

Did u try to change its properties?! I dont know what r u doing clearly! Its imposible but maybe ur file is read-only! Can u explane more?!

Keep in touch.

Always:),
Hovik Melkomian.
 
Old July 1st, 2004, 04:03 PM
Authorized User
 
Join Date: Jul 2004
Posts: 69
Thanks: 0
Thanked 1 Time in 1 Post
Default

Is there a little (+) sign next to where the code should be... click it!


www.CoderForRent.com
Get A Computer Job!
 
Old July 5th, 2004, 09:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

You are probably trying to do whatever it is that you are trying to do by directly changing the code in the InitializeComponent function. You cannot trust this function to maintain the changes performed by anybody else but the IDE’s form designer itself, so you should avoid tinkering with the code here until it is absolutely required.

If there is something that you think you can do only by directly manipulating the code in InitializeComponent, right back with what it is and I may be able to suggest you a better way.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Create User Search Form JezLisle Access 1 November 6th, 2008 11:22 AM
Create rectangle on a form with Vba Coby Access VBA 2 June 25th, 2007 04:11 PM
can't create a form in code-behind hertendreef ASP.NET 2.0 Basics 0 May 30th, 2006 04:14 AM
How to create a total on a form (using.... Mita Access 3 October 8th, 2003 12:48 AM
create query through a form madeira Access 4 September 26th, 2003 06:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.