|
Hi friends:
I wrote a componenet in C#(derived from System.ComponentModel.Component)
now, i want use this component in a COM+ Application with pooling objects
but i have samples of componentServiced, and all classes derived from System.EnterpriseServices.ServicedComponent
can you tellme why the serviced component does not inherit of System.ComponentModel.Component or System.ComponentModel.IComponent ????
thanks in advance
|
|
|
|
|
hi.
I want to make pretty forms (with curved edges and with nice shapes) in VS.NET 2005 (C#).
how can I do it?
Best wishes
|
|
|
|
|
|
I have a custom title bar that I simply made from a label. My form is fixeddialog so I can get that raised effect. Everything looks great until I minimize my form to the taskbar. When I do this, I only see the corresponding icon and not the text. This is because my borderstyle isn't "none." And to have a fixeddialog form without a titlebar, you must make the text "". Therefore, I came up with this: When I minimize my form, I change the borderstyle and text so that it appears in the taskbar. The trick now is to get it to restore without the Titlebar. Essentially, I just need to do the opposite of what I did when I minimized the form.
So, my question, do I have access to the "restore" event handler that is called when you either click or right-click on the item in the taskbar? If not, does anyone have another solution to this problem? Thanks in advance.
|
|
|
|
|
Hi I have one xml file,which contains some elements,so i want to load into C# application..i used to NUnit test cases for loading file or not ,,
cheers
Sridevi
|
|
|
|
|
I had tried googling but didn't found the answer to my case.
This problem is about PeakWorkingSet property of System.Diagnostics.Process class. This prop store the maximum amount of memory used by process during run time, but this property is inaccessible after the process has exited.
One workaround I used is to start another thread to monitor this property, but this is not well enough because some of processes I started exited too fast. ( They started and exited immediately).
Does anyone know how to get PeakWorkingSet property after process exited? or better workaround to this kind of problem.
Thank you
|
|
|
|
|
How can i print the values contained in System.Collections.Hashtable...............
Thanks,
Sandeep
+919891027854
|
|
|
|
|
foreach(object obj in hashTable.Values)<br />
{<br />
}
HTH, Cheers
Maqsood Ahmed - MCAD.net
Kolachi Advanced Technologies
http://www.kolachi.net
|
|
|
|
|
Thanks Maqsood for ur reply. But when printing , it alos prints System.Collections.Hashtable, that is the type...........
Thanks,
Sandeep
+919891027854
|
|
|
|
|
Does it help
IDictionaryEnumerator en = h.GetEnumerator();
while (en.MoveNext())
{
Console.WriteLine(en.Key + " : " + en.Value);
}
|
|
|
|
|
I think there r again HashTables contained within the HashTable. That is why, it again prints System.Collections.Hashtable with output. Plz tell me the way to retrieve the values from Hashtables within Hashtables.
Thanks,
Sandeep
+919891027854
|
|
|
|
|
Hello,
You can call the same method recursively to get the values from the hashtable. Some like this:
<br />
private void PrintHashtable(Hashtable hash)<br />
{<br />
foreach(DictionaryEntry de in hash)<br />
{<br />
if(de.Value is Hashtable)<br />
{<br />
Console.WriteLine("Printing Values for Hashtable - " + de.Key);<br />
PrintHashtable((Hashtable)de.Value);<br />
}<br />
else<br />
Console.WriteLine(de.Key + " - " + de.Value);<br />
}<br />
}
Maqsood Ahmed - MCAD.net
Kolachi Advanced Technologies
http://www.kolachi.net
|
|
|
|
|
Hello Maqsood,
ur method to print inner Hashtables worked out very well. They printed all the key value pairs in them. Plz tell me how I can print a particular key value pair from those key value pairs. If possible send me the code.
Thanks,
Sandeep
+919891027854
|
|
|
|
|
if(hash.ContainsKey(theRequiredKey))<br />
{<br />
object theValue = hash[theRequiredKey];<br />
if(theValue is Hashtable)<br />
PrintHashtable((Hashtable)theValue);<br />
else<br />
Console.WriteLine(theValue);<br />
}
Maqsood Ahmed - MCAD.net
Kolachi Advanced Technologies
http://www.kolachi.net
|
|
|
|
|
Ur above doesn't work for me. I had tried ur earlier sent code and it worked very well. It printed the output as:
Printing values for Hashtable - 2
entity.description - sandeep.co.in
entity.currentstatus - Active
orders.orderid - 2235000
entity.entyid - 2235000
orders.timestamp - 2005-12-07 12:02:02.011307
....................
.............
Printing values for Hashtable - 3
entity.description - sandeep.biz
entity.currentstatus - Active
entity.orderid - 2234999
...................
..................
Now the problem is I want to print the value of key "entity.description" for every inner Hashtable.
Thanks,
Sandeep
+919891027854
|
|
|
|
|
Hi everybody,
I want to use common source files (my toolbox) in different projects without creating a library. How can I add this sourcefile, to my project, placed in a common files folder, "by reference" an not as a copy of it ? The IDE always copies the selected file to the project folder.
I did't found an option to do this ?
thanks in advance
Frank
|
|
|
|
|
The Link file option does the trick. When you add the common source files via "Add Existing Items", don't click the Open button in the "Add Existing Item" dialog. There is a tiny control to the right of the "Open" button, which when clicked, opens a context menu with the "Link File" option.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hey Senthil, great,
that's the thing what I'm looking for.
Thanks a lot !
Frank
|
|
|
|
|
Hi.
I wanna use the PersianClanedar as current culture in .NET 2.0 .
But an error occures in runtime.
would u plz help me?
|
|
|
|
|
how can i create a simple excel file starting from an xml one?
|
|
|
|
|
Hello,
I have an application which has some global resources. I use some system resources in these classes. The finalizer is called when the application is closed.
The problem is that a part of the .NET framework (System.Net.Sockets) gets disposed before my object is disposed. How do I make sure that my object is finalized before the system resources?
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Hi!
I suggest you don't rely on a certain order of finalization (which is almost always a bad idea) but rather implement IDisposable and perform your cleanup in Dispose() .
Regards,
mav
|
|
|
|
|
Bob Stanneveld wrote: How do I make sure that my object is finalized before the system resources?
That's not possible. In fact, members of an object might get finalized before the object itself.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi community!
I'd be happy if someone could give me some input on an idea I've been juggling with for some time:
I've got a single instance WindowsForms application (.NET 1.1) that's been working fine for quite some time now.
Now I'd have to make some of the functionality available for COM clients, but I can't seem to figure out how to start.
I know how to create a class library with COM visible classes, but instances of these classes will be created inside the calling process, so I can't call methods in my application to show some dialogs, for example.
As far as the idea has evolved, I'd have to make my application an out-of-process COM server, but I'm afraid I don't know how to achieve this.
Any input would be highly appreciated.
Thanks,
mav
|
|
|
|
|
Hi guys;
I have a flash object on a form and I have added a Class to my app.
I want to call the SetVariable() method of the flash object from the class and get some info from the flash obj.
there is a FScommand related to the flash obj when the SetVariable() is called flash transfers the data to the FScommand event of the flash obj inside my form.
Its all fine when I use the SetVariable() method from inside the form but when I call it from the class it just passes the command and nothing happens.
What should I do to get the FScommand event to work from the Class I have.
PLEASE HELP ITS VERY URGENT.
Thanks
Riazi
|
|
|
|