All you have to do is add a UserControl to your project, add whatever controls you need, and then after you build your project, it will be available in the Toolbox, at the top under "yourProjectName" Controls. Then you can add this to any form, and it will automatically add all the other controls you added.
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman
Perhaps I wasn't clear on my request. I have already made a custom control & can add it via the toolbox. This control has content that can be added by the developer. This is like the TabControl - you can add TabItems and add your own controls in the TabItem.
The problem is that there is no initial clue for what/where to add your controls. The TabControl is nice because the designer pre-populates a TabItem for you.
How do you get the designer to pre-populate a non-default value for you? (By default, the TabControl has no items. But the designer adds one for you when you add it via the toolbox.)
I want to communicate with serial port on client side system via asp pages.I think silverlight is the best solution,but there is no asp.net sample about this topic.
would you please tell me if there is a sample in this site or other web pages?
I gave you 3 options; you first need to decide which option you are going to use, and then break out it's components.
After that, there are plenty of examples out there (including on this site) to:
1) create a web service (server and/or client side)
2) read a serial port
3) browser automation using MSHTML
4) browser automation using the web browser component
What hapened if there was a sample including this five issues together?
I'll try again to achieve my purpose.
But I hope I would make a component,when user connects to my website an activex download pops up and he accept it then every thing will be solved through internet borrowser.
Is that possible?i'm sure but it's too difficult for me.
I have two images, image1 represent lunch and image2 represents dinner. When I run my application the image1 is displayed on main window.
How can I change image1 to image2 corresponding time of day (at run-time)?
For instance: lets say
from 12:00 to 17:00 I want my image1 to be displayed at main window, and
from 17:00 to 23:00 I want to display image2 at main window.
could someone please help me solve this problem, Hence: I'm new to WPF...