Click here to Skip to main content
15,919,613 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I was wondering whether its possible to generate a C# form through paint application, like the user draws text boxes, labels, dropdowns on paint and an application transforms the whole image into a real C# form. Any clues about related library will be very helpful. Thank you for your time.
Posted

Hi,

If I understand you, you want to draw an image that represents a form and then convert the image to a real C# form using a tool or library.
Short answer: you can't. There's no tool/library available on internet to accomplish such a task. You should create the form using Visual Studio (or a similar IDE), or write the code of the form yourself.
 
Share this answer
 
v4
Comments
WajihaAhmed 25-Jun-13 12:29pm    
:( Is there any thing similar possible?
Thomas Daniels 25-Jun-13 12:30pm    
No, unfortunately.
WajihaAhmed 25-Jun-13 12:35pm    
Extremely sorry for being so vague, Kindly read my last comment. Thank you for your consideration.
WajihaAhmed 25-Jun-13 12:33pm    
YEs, I know that we need to write the code for form creation. But anything that recognizes that there is a textbox on the image, so we insert code to render a textbox.. Similarly for other controls, first identify the element on the image and then insert the code to render that element in Form.
Thomas Daniels 25-Jun-13 12:37pm    
No, it's impossible. An example to explain why it is not possible: you draw a rich text box on the form (in Paint), but if there would exist a tool to 'convert' the image to a form, then that tool wouldn't know whether you draw a PictureBox, a RichTextBox, or a Panel with white background.
The closest tool that you can use is MS Expression Blend. This tool will allow you to draw control's template of WPF/Silverlight, but you still need to know the basic of WPF and Silverlight to use it efficiently.
 
Share this answer
 
You may create your own application for doing so (it wouldn't be that easy, though). You could start, for instance allowing the user to place just a label anywhere on the form. I suggest you to use a real form (and label) to realize the task.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900