|
You can find details documentations in MSDN library.
|
|
|
|
|
sunilTVL wrote: i would like to know about delegates
can any one provide documentation
How about Google[^]?
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi,
I am using EnterPrise Library 3.0 April 2007 application block.
I want to create a day wise Log file
but it will create only single file with name trace.log and when ever day changes the Log content is adding but I need day wise logfile.Could any one assist?
Thanks.
|
|
|
|
|
hi, i need your suggestion on how to do data binding to display a table consisting of data that is obtained from xml file. The table is created using listbox and should have the structure as shown below:
_____________________________
|aaaaaaaaaaa|_________1______|
|___________|_________2______|
|bbbbbbbbbbb|________3_______|
|___________|_________4______|
May i know how should i write my xaml codes?
Thanks.
|
|
|
|
|
In my XML, for every node one optional attribute is there.
I am trying to find that, specific node has that optional attribute or not at runtime but there are some issues
Please help me on this
Thanks in advance
Praveenkumar Palla
|
|
|
|
|
What are the issues? You can't expect to get help if you don't identify the problem.
|
|
|
|
|
my xml is like this
<laser lasername="newlaser" modelname="Nufern v1.0" serialno="1" manufacturername="Nufern v1.0.0.0" maximumpower="200" ip="192.168.1.173">
<tabular>
<property id="1" name="System Id" prgbar="false" selected="false" min="0" max="30" pwd="true" units="Sec" gauge="false">
<property id="10" name="Startup delay" prgbar="false" selected="false" min="0" max="30" units="Sec" gauge="false">
In the above xml there two child nodes for node "tabular" . In that one node has "pwd" attribute and another one don't have, it is optional one.
So I want to know that for the specific node the attribute is there or not at runtime----I tried like this
XmlDocument xmldoc2 = new XmlDocument();
xmldoc2.LoadXml(objXmlTasks.decrypt());
XmlNodeList xmlchildnodelst = xmldoc2.SelectNodes("/lasers/laser [@LaserName='" + laseridval + "']/properties/tabular/property[@name='" + childLaserSelectedName + "']");
Password= xmlchildnodelst[0].Attributes.GetNamedItem("pwd").Value;
But there is now pwd attribute for second one so exception
"object reference null"
PraveenKumar Palla
|
|
|
|
|
my xml is like this
<?xml version="1.0" ?>
<laser LaserName="newlaser" ModelName="Nufern v1.0" SerialNo="1" ManufacturerName="Nufern v1.0.0.0" Maximumpower="200" IP="192.168.1.173">
<tabular>
<property id="1" name="System Id" prgbar="false" selected="false" min="0" max="30" pwd="true" units="Sec" gauge="false" />
<property id="10" name="Startup delay" prgbar="false" selected="false" min="0" max="30" units="Sec" gauge="false" />
</tabular>
</properties>
</laser>
In the above xml there two child nodes for node "tabular" . In that one node has "pwd" attribute and another one don't have, it is optional one.
So I want to know that for the specific node the attribute is there or not at runtime----I tried like this
XmlDocument xmldoc2 = new XmlDocument();
xmldoc2.LoadXml(objXmlTasks.decrypt());
XmlNodeList xmlchildnodelst = xmldoc2.SelectNodes("/lasers/laser [@LaserName='" + laseridval + "']/properties/tabular/property[@name='" + childLaserSelectedName + "']");
Password= xmlchildnodelst[0].Attributes.GetNamedItem("pwd").Value;
But there is now pwd attribute for second one so exception
"object reference null"
|
|
|
|
|
Yes, you can't do it this way. If GetNamedItem fails to find the attribute, it returns null , so the call to Value fails with the null reference exception.
Instead, you need to do it like this:
XmlNode node = xmlchildnodelst[0].Attributes.GetNamedItem("pwd");
if (node != null)
{
Password = node.Value;
}
else
{
}
Also, please put the code blocks, including the xml, inside <pre> tags, which will keep the formatting and make it much easier to read.
|
|
|
|
|
hello,
I want to find a particular word in file and replace it with other word. how can i archive this through c# File Handling routines ???
Thanks,
|
|
|
|
|
hi
read the file with the streamreader. use the readtoend methode.
replace the particular word's and write it back with the
streamwriter object.
regards
|
|
|
|
|
ya, but in which i should read data ? i think, i have too big file and string can't hold whole file in it.
|
|
|
|
|
|
hai Friends
Pls Solve my problem,How retrieve the image in sql to image control,pls help me.
i use c# project but i dont know the c# language,so give me a solution how retrieve the image.......
Hai Friends
|
|
|
|
|
|
I want to use RadioButton in DataGridView but I do not how to do that.
I just need a very simple Class for getting/setting its Checked state true/false.
That is all I need for this control.
Please help me to that. It is urgent
Thanks in advance
Best Regards,
pvphuc
|
|
|
|
|
According to your question, I hope this article willl help: Build a Custom RadioButton Cell and Column for the DataGridView Control. You can also download the code samples for the project.
Windows Forms 2.0 offers several cell and column types for its DataGridView control. For example, the product ships with a text-box–based cell and column (DataGridViewTextBoxCell/DataGridViewTextBoxColumn) and a check-box–based duo (DataGridViewCheckBoxCell/DataGridViewCheckBoxColumn) among others. Even though the product comes with a rich set of cell and column types, some developers may want to create their own cell and column types to extend the functionality of the grid. Thankfully the DataGridView control architecture is extensible enough that such custom cells and columns can be built and used in the grid. This document explains how to create and use a cell and column that easily let the user pick an entry among multiple choices.
http://msdn2.microsoft.com/en-us/library/aa730882(vs.80).aspx
SSK.
|
|
|
|
|
Thanks Vri SSK
I have read that article but it is so complex.
I just need a very simple class for my work. It is always display on the cell
and user can check it.
Could you give me another solution.
Thanks so much
pvphuc
|
|
|
|
|
That sample is about as simple as it gets for what you said you want to do. There is no "very simple" way to do this.
|
|
|
|
|
The simple way is that, but is not a proper way u can add the asp.net label control in the gridview column and in the event of databinding of gridview u can write html (
|
|
|
|
|
But I am working with Window Form not Web Form.
|
|
|
|
|
Please see the following code snippet
class BaseClass
{
public virtual void SampleFun()
{
Console.WriteLine("In base class SampleFun");
}
}
class ChildClass : BaseClass
{
public override void SampleFun()
{
Console.WriteLine("In child class samplefun");
}
}
class GrandChild : ChildClass
{
public GrandChild()
{
Console.WriteLine("Grandchild contructor");
base.SampleFun();
}
}
From grandchild class I am able to call the Child classes overrided method. But how to call BaseClass original method from GrandChild class ? When I try to call this.SampleFun() , VS editor shows two overloaded method. But I am able to call only ChildClass SampleFun() method. Is there any way to call BaseClass SampleFun() method.
|
|
|
|
|
base.base.SampleFun();
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: base.base.SampleFun();
Thanks christian. But this won't work.. I tried. MSDN say's it is not possible to do what I asked. Do you have any suggestions ?
|
|
|
|
|
OK, I thought that worked. Try somethng like
Base base = this;
That would do it, I would expect. i.e. create an instance of the bottom level class to call.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|