Click here to Skip to main content
15,902,445 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
hello

i am creating a framework like application. in that run time i wanted to add different .net controls and design and again i wanted to run the things which designed any way that that is not needed now. what i want is in our application during run time if we click a button named .net controls the .net controls registered in the system has to appear in a window and from there i have to select the controls and add it in to the application .
how can we achieve this
please replay me

regards

ginnas
Posted
Updated 11-Sep-12 23:16pm
v3
Comments
Mehdi Gholam 12-Sep-12 3:34am    
Your question makes no sense, please edit it and supply more information.
ginnas 12-Sep-12 8:20am    
i have improved it

please check

thanks
Sergey Alexandrovich Kryukov 12-Sep-12 14:22pm    
Yes, but it does not look improved. Do you want to design something like a UI generator? You need to start from explanation of your ultimate goals and motivation; explain why are you doing it. First of all, this post is not a question. You did not explain your concerns. For now, the natural response would be "OK, go ahead, design and implement all you need. Why asking?".
--SA
ginnas 14-Sep-12 0:45am    
thanks Sergey Alexandrovich

i will explain my requirements .what i want is i wanted to create a UI generator or application development framework for example visual studio[not like visual studio but something similar].this application is for creating a human -machine user interface for SCADA application. my ultimate aim is putting different controls in to the container area here is third party drawing view ,here i wanted to code these controls inside their events this is for making use of these controls for connect to the machines in my applications run time. so in order to achieve this how can we make the .net controls available for designing,first please try to answer this that is how can we make the controls which is registered in the system to available for designing at run time

please replay me a solution
regards

ginnas
Sergey Alexandrovich Kryukov 14-Sep-12 1:07am    
This is something to what I did, also for SCADA or related applications. There are no specific "professional secrets" here, but it's a lot of design and development work, probably too much to review in this forum, remember, called Quick Questions & Answers. First of all, what do you mean be "registered in the system"? You need to have your own system of registration. One important and most technologically advanced thing is the plug-in interfaces and system. If you want, I'll share the references on my past answers on the topic. Basically, it's using interfaces, reflection and Application Domains, which is the main problem, but only is you want the plug-ins reloadable, which fortunately might not be the case for your purposes...
--SA

1 solution

[Answering one of the questions in comments to the question:]

ginnas wrote:
so i have a doubt in visual studio while design time we can use different controls from the toolbox right , so my question is , is it possible to use these controls at run time ,how can we access these .net controls ,is there any way
As I say, controls are always used during run-time; there is no other way. It's done like:
C#
someConrol.Parent = somePanel; // for example
// or, same thing:
somePanel.Controls.Add(someControl);


—SA
 
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