|
thanks man, I understood, thanks to you and Guffa
|
|
|
|
|
How can I access S.M.A.R.T. information and how can I turn it on on disks that do not have it on?
Sorry for asking this, but I googled the hell of it and came home empty
Thanks in advance for any help.
Bernardo Heynemann
Lead Developer / Architect for Core Tech Brazil
|
|
|
|
|
|
I'm sorry, i meant using C#. I thought it was implicit because of the board I posted in.
Bernardo Heynemann
Lead Developer / Architect for Core Tech Brazil
|
|
|
|
|
Hello,
How do I delete multiple elements from collection (array) at once?
I'd like to do that by index.
For example, I want to delete elements with indexes 1, 2, 3 and 4.
If I delete element at index 1, all elements and their indexes will be shifted. That's the problem. I need to delete the elements in compact index section, like: 1,2,3,4 or 7,8,9,10.
Thank you in advance
Goran
|
|
|
|
|
|
Ok. Thanks.
But, how can I do that manually?
|
|
|
|
|
Iterate through the collection and add the elements you need to delete to another collection. Then iterate over the other collection, calling Remove on the first collection. This is because you'll get a runtime exception if you delete items from the collection on which you are iterating on.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
This is the easiest way (pseudocode):
<br />
for(Int32 i = col.Count - 1; i >=0; i--)<br />
if (ShouldRemove(i))<br />
col.Remove[i];<br />
This way, the lower collection elements are not affected by the deletions of the higher indexes.
Sean
|
|
|
|
|
Is the functionality of these cool looking Docking Windows integrated in the .NET Framework 2.0?
I wonder why it is used in the MSDN Library and in the Visual Studio 2005 (MSDN Library and Visual Studio 2005) while I didn't find it as a usable component of framework 2.0. Also this way of arranging all the tool windows looks very nice (example)but this doesn't seem to be available either.
I looked through the net and found several self-made docking panels but I'm still searching for the original ones made by Microsoft as used in Visual Studio. Are they available by some ways or not?
|
|
|
|
|
Hi,
i am trying to add a com component in C# but the component is not been able to add, i.e. when i try to add, following error is displayed
"Add reference: error adding reference to project"
for additional info, i have a sample sdk that is using the component it is actually developed under VC 6.0 and is using .idl files
is it possible to use this component in C# if possible how,
i am also trying to add the same component in VC(managed)windows component but the problem is still the same
Will some body help me, i will be very thankfull.
Arus.
|
|
|
|
|
Hello All,
I am tring to make new table styl with check box columne but the column not apper please see the my code below.
DataGridTableStyle Checkbox = new DataGridTableStyle();<br />
Checkbox.MappingName = "Billing_CheckBox";<br />
<br />
DataGridBoolColumn Bill = new DataGridBoolColumn();<br />
Bill.MappingName = "Bill_Checkbox";<br />
Bill.HeaderText = "Billing"; <br />
<br />
<br />
<br />
Checkbox.GridColumnStyles.Add(Bill);<br />
<br />
dgTimeCards.TableStyles.Add(Checkbox);
and i bind the datagrid with datasource put it still not working
Please help.
Hay
|
|
|
|
|
Looks good. Check that the name of the DataTable really has the name "Billing_CheckBox" and that the corresponding column has the name "Bill_Checkbox".
I assume you use a DataTable otherwise the MappingName of the table style is completely wrong.
|
|
|
|
|
Thanks for your reply
But i am not sure from what you write do you men the columne map name and table map name should be the same. and where i can put the code of the column style.
Regards,
Hay
|
|
|
|
|
Also make sure The Data Source Property is not readonly. i.e. it should have both get and set.
|
|
|
|
|
Thanks for your reply
But what you mean with datasource do you mean datagrid.datasource
Regards,
Hay
|
|
|
|
|
Hi Guys;
I have to two DHCP servers A, B a copy of A incases of accidents;
Whenever a static IP address is given out from A, I would manually update B
With the changes;
So I want write an ASPNET page that I will use to manage scopes between the two servers;
Can you help me guys;
Thanks;
|
|
|
|
|
I am getting the following eror message when trying to create crystal report:
String reference not set to an instance of a String. Parameter name: s
The Stack is:
[ArgumentNullException: String reference not set to an instance of a String.
Parameter name: s]
System.Text.UnicodeEncoding.GetBytes(String s) +112
CrystalDecisions.Shared..q(String
k) +107
CrystalDecisions.Shared.ConnectionInfo.set_Password(String value) +102
TrafficWardensBackEnd.WarningMessages.btnSearch_Click(Object sender, EventArgs e) in
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292
Seems the problem is in CrystalDecisions.Shared which is an imported dll in Visual Studio.
Is there any way I can read this dll as I donot have the source code.
Anyone any ideas on what is going on or any solutions??
macca
|
|
|
|
|
a string or parameter with name s has not been initialized.
Initialize it: like this:
string s = "";
good luck.
No hurries, no worries.
|
|
|
|
|
I need to write a code that will scan/check all the ports on my system and give me details as to which one is being used and service used on it.
Pls, kindly tell me the libraries to used and the necessary/apt functions
|
|
|
|
|
A crude way is to simply iterate through the 65535 possible ports and trying to opening each one of them. The System.Net namespace and the System.Net.Tcp namespace can help you do this.
AFAIK, there is no way you can identify the service running on a port. The best you can do is guess based on the list of well known ports (HTTP on port 80, for example).
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
hi all,
I need to send a Message to Network computer and stop all the process in that computer using C#?
Can any one please Guide me?.
thanks in advance.
|
|
|
|
|
hi,
could any one tell me is there any class for zipping a file in c#
thanx in advance,
sachin
|
|
|
|
|
AFAIK, not in the framework, and I find nothing about it in MSDN.
I think that you have to look for an third party class. Google[^] is your friend.
---
b { font-weight: normal; }
|
|
|
|
|
Did you try using the zip component from SharpDevelop?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|