|
I used to do it but now I completely forgot
So, how do you include say a StackPanel in your C# Windows Application form??
Many thanks
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
Put it inside a ElementHost control.
|
|
|
|
|
jamie550 wrote: Put it inside a ElementHost control.
What, how where
Please clarify
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
Put a ElementHost on your form. If it is called host, then you would do:
StackPanel s=new StackPanel();
host.Child=s;
s.Children.Add( first control you want);
s.Children.Add( second control);
etc...
|
|
|
|
|
Sorry but doh!
What are all these??
Where can I find this mighty ElementHost, what is it?? is it a control?? and how can I access those wpf controls by simply type their names?? I cant just type StackPanel, do I need to reference some class/interface first?? what is it??
Hey, thanks mate!
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
The ElementHost is a control. It it located in WindowsFormIntegration.dll
StackPanel and most other WPF controls are in PresentationFramework.dll, but you also need PresentationCore.dll and WindowsBase.dll
|
|
|
|
|
Thanx jamie but all the dlls you just mentioned are disabled and cant be imported
What do I do now
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
Are you targeting at least .NET Framework 3.0?
There should be a tooltip describing the problem.
|
|
|
|
|
Hey jamie,
Thanks buddy, I'm fine now
Thanks for staying with me 'till the end, your great man
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
You're patience is astonishing, and pleased he thanked you for you effort.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
Hey erfi,
Thanks, I'm fine now
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
I hope the idiot who's voting my every post down in this thread knows the answer to my question!!
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
i am familiar with asp.net,i never used delegate but when i go interview they asking about delegate where do u use in your project, i am unable to said answer bcoz i never used can any one tell where really delegate is necessary in real time where actually used delegate
i want real time application development use of delegate, i know that concept how it works.
This is haneef.............................................................
|
|
|
|
|
* When u write a method which compares two objects and u want to allow user to specify comprasion method. Then u put a Comprasion<t> parameter.
* Array.Sort(Comprasion<t>)</t> , Thread(Action) etc.
* Events.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
Delegate is a type-safe function pointer. Which is point a method with specific signature.
It has much more uses in these days. Like:
(i) Asynchronous Programming
(ii) With Unmanaged Code
(iii) Invoking the Events in Callback or Asynchronous programming.
Parwej Ahamad
R & D: REST services with WCF
|
|
|
|
|
This is not the ASP.NET forum.
Delegates are used for a start whenever an event fires. In ASP.NET, Page_load and Page_prerender work b/c of delegates. In winforms, your click events, load events, etc, work b/c of delegates. I would use delegates most for communication between forms, or between user controls in ASP.NET. You'd use delegates a lot less in ASP.NET b/c it's stateless, your page is completely recreated on every postback.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Good Day,
Why is it that when I distribute my DLL, the intellisense won't work?
I mean, this stuffs:
/// summary
///
/// /summary
/// <param name="input"></param>
/// <returns></returns>
Thanks!
It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.
|
|
|
|
|
Are you distributing the XML file with it?
|
|
|
|
|
I'm sorry. What XML file?
It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.
|
|
|
|
|
When you build your project, the compiler should be told to also generate an XML file, using your XML comments. If you distribute this file with your library, the comments are available in Intellisense.
|
|
|
|
|
Thanks for your reply.
How can I instruct Visual Studio to generate the XML file?
It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.
|
|
|
|
|
I don't know off hand, I normally use the Help to find functions like this.
|
|
|
|
|
This can be set in the project properties screen, on the "Build" tab. You may have to scroll the screen down some, but there is a check box labeled "XML documentation file". You will need to check that box. Be aware that this is a "per-configuration" property, so you will need to enable it in both debug and release mode builds.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines][ Articles][ Blog]
|
|
|
|
|
He shouldn't need to distribute a XML file. I don't know if it's because he doesn't know how to format his code blocks, or what, but notice that he's missing the <> around his summary tags.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|