|
hai there,
which class in C# that will help me out for doing the process like
- Registry Scanning
- Hard Drive Scanning
- Memory process scanning
Sreejith S S Nair
|
|
|
|
|
|
I have a small annotation.
If you accidentially post an unready question, please use the Modify link on the lower right side of your posting instead of adding a new one.
I think you've done this a couple of times. If I'm wrong, I apologize for bothering you.
|
|
|
|
|
i noticed some portion of for..loop is missing. i use modify link to update that. but the funny thing is again and again the little portion of for..loop is not comming in board after submition.
i don't know why ? and thanks for your annotation
Sreejith S S Nair
|
|
|
|
|
if you have something like
for(int i = 0; i<Count; i++)
{
}
You have to remember to replace the < with < because the browser will assume that is the beginning of a tag and it won't be displayed.
Does this help?
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
The Second EuroCPian Event will be in Brussels on the 4th of September
|
|
|
|
|
- Registry Scanning
- Hard Drive Scanning
- Memory process scanning
Sreejith S S Nair
|
|
|
|
|
I am student of Aptech and this days i am doing a project on .Net. In this project i am tryiny to creat Mobile application where i am tryiny do that user access my application by mobile and he can select one ringtone after that he or she can install that bell on his or her mobile just like mobile compnies do on there web site. So tell me is that possible if possible then tell me how i nead your help pleaszzzzzzzzz help me i am wating for your replay
Masood Lodhi
|
|
|
|
|
upto my level best , i know that Openwave 6.2 emulator is useful to run your C# mobile application.better you go for that site and see openwave for dotnet.
Sreejith S S Nair
|
|
|
|
|
Thank u sir it is very kind of u thanks i will try my best to chech that sied thankzzz bye
Masood Lodhi
|
|
|
|
|
I wrote a C# component for application
instance control that I'm enhancing and
I wanted to get some programmer opinions.
The component is designed to be dropped
on the main form of the application.
As a programmer using the component
would you think it more convenient
to have an error event or to throw
an exception? Coming from Delphi
I think it's convenient to create
the error handler using the component
property page in the IDE but I'm not
sure if that's considered bad form
(no pun intended) in C#?
The other approach I could take would
be to check if the error event is
assigned and throw an exception as
alternative. Any thoughts?
TIA
|
|
|
|
|
|
For controls/components or multi-threaded classes, I normally use an Error event. That way you don't get application crashes if the exception is thrown in a method running in a thread that's outside one of your parent app's try{}catch{} blocks.
However, for public/internal/protected methods called directly from the parent app, I usually throw exceptions directly. This allows the developer to wrap immediate exceptions in their own try{}catch{} blocks.
For a control, especially, I would only throw exceptions in constructors, properties, and public methods. Any exception thrown in a protected/private method that MIGHT be called asynchronously gets redirected to an Error event.
Grim (aka Toby) MCDBA, MCSD, MCP+SB
|
|
|
|
|
Hello!
I seem to have a problem in resolving the following exception thrown in this line of my code:
MyClass varMyClass=(MyClass)BinaryFormatterObject.Deserialize(FileStreamObject);
The exception says the following:
An unhandled exception of type
'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
Additional information: Exception has been thrown by the target of an invocation
Where should I look and change in order to resolve this?
Who is/can be the target of an invocation?
Million thanks!
Best regards,
Cristina
|
|
|
|
|
|
This typically occurs when an exception is thrown from the constructor when reflection is used to create the object (as is the case when deserializing an object). If you implement ISerializable and have a constructor with the right serialization signature, put a breakpoint in that and step through your code. If you don't implement ISerializable or just have a default constructor (access modifier doesn't matter), put a breakpoint and step through your code.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I implemented the paint method by Jay_sh_s, but im confused.
In my DataSet i have many Tables, so:
For each tables i ll have to create 1 DataGridTableStyle?
and the ColumnStyles, for each table to?
Thanks.
|
|
|
|
|
|
Hello to all,
I have an Access table with several rows in it and a boolean field (column) that only has one row (record) that is TRUE.
Using C# how do I programmatically determine the row that is TRUE and get the index of that row?
So far I am at:
foreach (DataRow row in ds.Tables["currlist"].Rows
I would assume this will go through each row and then find the row that is TRUE in the boolean field. If there is a different, better way please point me in the right direction.
Thanks,
BIll Antonacchio
|
|
|
|
|
Using a DataColumn might be quicker since you are searching for a particular value for only one attribute of the table, not sure though.
|
|
|
|
|
Try
ds.Tables["currlist"].Select("whatyourfieldiscalled='true'");
Will return a DataRow, a much nicer way than using a linear search.
Ryan
|
|
|
|
|
Hi Ryan,
Thank you kindly for that. Will try to get this to give me the info needed. I need to rethink the question though. Will this give me the row number that contains the TRUE field?
What I need to get is the index number of the row that contains the TRUE field.
Regards,
Bill Antonacchio
|
|
|
|
|
** same answer **
Grim (aka Toby) MCDBA, MCSD, MCP+SB
|
|
|
|
|
I am currently developing an asp.net application that develops crystal reports using the push method. What I am wondering is if I can allow the user to specify sort options during runtime while they are viewing the report information in the .asxp page? For instance I have a report that displays three bits of information about a part(PartNumber,RevisionNumber,CallNumber). I am wondering if I can allow the user to switch between sorting the records by these given fields and just have the page reload with the same data in the newly selected sorted order. Thanks in advance for any help
Frank Lepkowski
PS Sorry if this is not posted where it should be I was not sure were to stick the post!
|
|
|
|
|
<code>
DataSet datas = new DataSet("DataSetName");
DataTable dataTable = new DataTable("myNewTableName");
DataRow dataRow = dataTable.NewRow();
dataTable.Rows.Add(dataRow);
for(int i = 0; i<5; i++)
{
DataColumn dataColumn = new DataColumn();;
dataColumn.ColumnName = "myColumnName"+i.ToString();
dataTable.Columns.Add(dataColumn);
dataRow["myColumnName"+i.ToString()]="myItem"+i.ToString();
}
dataTable.AcceptChanges();
datas.Tables.Add(dataTable);
dataGrid1.DataSource=dataTable;
datas.WriteXml("TestXml.xml");
</code>
This code generate the following xml file:
--------------
<?xml version="1.0" standalone="yes" ?>
<DataSetName>
<myNewTableName>
<myColumnName0>myItem0</myColumnName0>
<myColumnName1>myItem1</myColumnName1>
<myColumnName2>myItem2</myColumnName2>
<myColumnName3>myItem3</myColumnName3>
<myColumnName4>myItem4</myColumnName4>
</myNewTableName>
</DataSetName>
--------------
I need the same data to be formatted in this way:
--------------
<?xml version="1.0" standalone="yes" ?>
<myNewTableName myColumnName0="myItem0" myColumnName1="myItem1" myColumnName2="myItem2" myColumnName3="myItem3" myColumnName4="myItem4"</myNewTableName>
--------------
how can I do this?
thanks
_____________
http://members.xoom.virgilio.it/yuppygames/english/index.htm
|
|
|
|
|
Don't use a DataSet . It outputs XML in specific ways - namely as elements. Instead, see the classes in the System.Xml namespace. You could enumerate the tables and columns in your DataSet (or use an XmlDataDocument ) and then write them out to a file using an XmlTextWriter , which allows you to write attributes, elements, comments, and even processing instructions however you want. Lots of samples are included in the class documentation for the System.Xml namespace.
One other option is to save this to a file or a MemoryStream and then load it into an XmlDocument or some other class. You could then use a XslTransform to transform the elements into attributes.
Microsoft MVP, Visual C#
My Articles
|
|
|
|