Go to the menu - Go to the contents

[Site map] You are here --- > Newbies Paradise > Forums > Newbies Community > General Discussion > how to create form objects withought the form designer > Read the topic

how to create form objects withought the form designer

for C# (prob same for vb.net)

You have to be registered to post messages

SolvedThis topic's problem has been solved

Page 1 
Author Message
1 visitor on this topic (1 anonymous user)
Page 1 
Offline yabberyabber # Posted on 06/30/2008 03:44:13 AM
i found pink mold in my trash
Avatar
Group : Members
hi peoples; do you know how to make an object show up in a windows form application (i mean like labels and buttons)? I'm trying to create an array of objects and the only way i can think to do that is to write it out in the source code... (i know how to create an array of objects just not how to make them show up) if you haven't already noticed by the sub-title, this is in visual C# 2008.

i got a french pen pal to show my fiend I'm cool
User image
 
Offline Delroth # Posted on 06/30/2008 05:29:37 AM
Group : Members
You should look at the code the designer generates for you, and copy what you want from it ;) . You can also search the MSDN for the winforms documentation :) .
Offline yabberyabber # Posted on 06/30/2008 05:42:05 AM
i found pink mold in my trash
Avatar
Group : Members
the code designer doesn't give you any code, it puts it all into a discrete function...

i got a french pen pal to show my fiend I'm cool
User image
 
Offline Delroth # Posted on 06/30/2008 06:53:33 AM
Group : Members
I know, but you should look into this function code to find how to create your widgets :) .
Offline yabberyabber # Posted on 06/30/2008 08:02:34 AM
i found pink mold in my trash
Avatar
Group : Members
but the function is hidden... i just said that...

i got a french pen pal to show my fiend I'm cool
User image
 
Offline Delroth # Posted on 06/30/2008 02:48:39 PM
Group : Members
This answer helped the author of this subject This answer helped the author of this subject
There should be a way to unhide it... When I was using C# (with Visual Studio 2005 Express), I was able to read the autogenerated code by opening the file with another editor (like notepad, for example).

But you should really use SharpDevelop :whistle: .
Offline yabberyabber # Posted on 06/30/2008 07:59:30 PM
i found pink mold in my trash
Avatar
Group : Members
omg its free!!!!!!!!! i was seriously considering buying visual studio for 300$ (collage discount from my dad)... can it also make silverlight apps? does it compile just like visual studio? (i remember getting a third party java compiler that didn't work...) which version should i download? oh yeah, and your method on reading the form designer generated code works!!! :p EXCITEMENT!!!!!!!
Edited on 06/30/2008 08:40:53 PM by yabberyabber

i got a french pen pal to show my fiend I'm cool
User image
 

Back to "General Discussion" or to the boards list

You have to be registered to post messages

Change your template | Learn more about NP | Site map | Terms of use | Rules | RSS tutorials | RSS news
Powered by Simple IT SARL: Contact us

There is nothing else to read, you have to go up now !

Do you want to be published here? Contact us.

Number of Newbies connected 3 Newbies Connected | SQL requests 8 Requests | Page loading delay 0.0656s (0.0556s)