|
It's an ugly object model and it overloads the term 'managed' in a bad way for people who started with the CLR, but the WMI based classes in the System.Management namespace are what you are looking for.
--
-Blake (com/bcdev/blake)
|
|
|
|
|
Hey,
I created a custom object. For the public properties I used
///
/// xxx
///
and i used also the [description]- attribute.
I build a dll and referenced to it from another application.
The control works fine, but there is no intellisence and no description in the propertybox.
What did I do wrong? In which XML-file I will find al this comments?
Thanks
Bene
|
|
|
|
|
Description attributes should show up in the VS designer automatically. For xml comments, you need to tell Visual Studio to create an xml file (right click your project->Properties->Configuration Properties->XML Documentation file)
The graveyards are filled with indispensible men.
|
|
|
|
|
How can i insert a icon / image into a listview in detail mode in another column than the first one? f.e. i want i icon / image in row 2 instead of text ...
Thank you for your help
Matthias
|
|
|
|
|
There are many articles about how to do this (as well as libraries for which you can download the source to) on CodeProject. Please try searching for an appropriate article.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Hello,
is there a way to create and display MS-Excel-Charts in the own application.
I've already imported the office type libraries and can create and manipulate office - objects like charts, workbooks, worksheets and so on.
But I did not find a way to display such a chart in my application.
Is there a way to create a control that can host office ms office objects?
Any hints?
Thanks for Help,
Sören
|
|
|
|
|
SörenH wrote:
But I did not find a way to display such a chart in my application.
You simply can't. Before you can do so, your app must support Active documents, which is a feature expected to come with the next VS.NET release, next year.
Active documents are supported in good ol' MFC/WIN32/ATL/COM programming environments;
Alternative suggestion, the web office components is free. It's an ActiveX and as such can be hosted in an app or in a web page. Lookup msdn for owc10.exe (office xp version).
RSS feed
|
|
|
|
|
Stephane Rodriguez. wrote:
You simply can't.
Well, you can, but it's sort of a hack - display the chart in an Excel sheet in a WebBrowser control.
|
|
|
|
|
Right, although from wiu the poster wants to program against it. At this point, i think he should definitely take the route of owc.
RSS feed
|
|
|
|
|
Hello Stephane,
I'll take a look at this.
Thank you!
|
|
|
|
|
Hai there,
This is probably a mathematical discussion, but I trusted your great minds...
I have a circle divided into 10 equal (pie)chuncks. When I click anywhere in the circle I need to know which (pie)chunck I'm in.
How to calculate/recognize this?
thanx,
Octavie
|
|
|
|
|
I forgot to mention I have a circle image on a WinForm and I'm coding with C# (obviously...)
|
|
|
|
|
<br />
Convert.ToInt32(Math.Floor(5 * (Math.Atan2(click.Y - centerOfCircle.Y, click.X - centerOfCircle.X) / Math.PI + 1)))<br /> will give you a number between 0 and 9 representing the segment that was click, counting clockwise from the left.
--
-Blake (com/bcdev/blake)
|
|
|
|
|
Thanx,
I already had this solution and it works great! I'm building a usercontrol with a Dartsboard. That's why I needed the "piechunk" recognition... I also have the next step ready: did I click one of the rings (double, triple, single or double bull)
If everything is done I will publish it on CodeProject...
grtz,
Octavie
|
|
|
|
|
convert the x,y location into polar coordinates...
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
How can i verify if a proxy obtained by an Activator.GetObject call is still referencing a valid real object?
Is it possible only by catching an exception?
rechi
|
|
|
|
|
Hello,
is there a way to retrieve basic information about a certain volume like a CD-ROM or harddrive?
Such attributes like
Size
free space
serial number of the current volume or harddrive
and so on
I'd prefer a way that does not need any C++ or delphi dll's
Is there no Class in C# that provides such information.
Thanks for any help,
Sören
|
|
|
|
|
|
thanks a lot.
I guess this will solve my problems.
|
|
|
|
|
By default when I search a String in another String its case-sensitve(Using String.IndexOf() ),How can change it to case-insensitive?
Mazy
No sig. available now.
|
|
|
|
|
|
This does not work on all cultures.
For example, in the Danish language, a case-insensitive comparison of the two-letter pairs aA and AA is not considered equal. In the Vietnamese alphabet, a case-insensitive comparison of the two-letter pairs nG and NG is not considered equal.
For more information, see the topic "Culture-Insensitive String Operations" on MSDN.
Help me dominate the world - click this link and my army will grow
|
|
|
|
|
|
s1.ToLower().IndexOf( s2.ToLower() )
|
|
|
|
|
I usually use a System.Text.RegularExpression object with the
RegexOptions.IgnoreCase option applied. Here's an example of a string replace function I use for this:
private string CaseInsensitiveReplace(string sMain, string sReplaceThis,
string sWithThis)
{
return Regex.Replace(sMain, sReplaceThis, sWithThis,
RegexOptions.IgnoreCase);
}
You could use the Match method of a Regex object to perform a find.
|
|
|
|