|
cst_kvp wrote: List Poly = new List();
List X = new List();
n = Poly.Count - 1;
What is this ? You have not added anything to your list poly , how can you iterate the items then ?
|
|
|
|
|
Hi,
Did you look at the built in sortable list types ?
Those who want most to speak up, are often those who have nothing clever to say.
|
|
|
|
|
there is no logic at all in ur code.
First read some books related to arrays and then try to code it.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
In xml file we write "<" as "<";
How to write double quotes "in XML file
|
|
|
|
|
u can write "<" as
" < "
modified on Friday, June 20, 2008 3:33 AM
|
|
|
|
|
" = "
You could use System.Web.HttpUtility.HtmlEncode("anysignyouwant") to get the answer.
Kjetil
|
|
|
|
|
I have a requirement to add dynamically a list box or checkbox to a propertygrid at runtime. I do not know at compile time what type of property items to be added to property Grid.
I am able to achieve to add dynamically a simple property item like a text
by overriding the "PropertyDescriptor" Class in my customdescriptor class.
But how to add in similar way a checkbox or listbox to propertygrid dynamically ?
I was not successfull till now.
But I can achieve the same thing for example adding a checkbox property item at compile time(without overriding PropertyDescriptor) by using UiTypeEditor like:
public class CheckBoxTest : System.Drawing.Design.UITypeEditor
{
public override bool GetPaintValueSupported(ITypeDescriptorContext context)
{
return true;
}
public override void PaintValue(System.Drawing.Design.PaintValueEventArgs e)
{
System.Windows.Forms.ControlPaint.DrawCheckBox(e.Graphics, e.Bounds, ((CustomProperty)e.Context.Instance).checkValue ? ButtonState.Checked : ButtonState.Normal);
}
}
But If I try to achieve the above to be executed at runtime by overriding "PropertyDescriptor" These functions are not called.
Can anyone have any idea ?
Thanks,
Rajan
|
|
|
|
|
How can i access the url of a reporting service?
I have a button, and when you click it, it should get the one report from SSRS.
A help/reply will be much appreciated.
|
|
|
|
|
can some one tell me how to compare textbox value if the same with database value..
textbox1.text == dr1["password"].tostring();
dr1 is datarow..
everytime i run the program even if the value of the are the same it still exits...
for example if textbox1.text = "password" and dr1["password"] value is also "password" the program says there not the same
thanks
ginji
|
|
|
|
|
1. Make Sure There is no space in the text , means infront and in the end. some times its makes a big issue.
2. try it
if(textbox1.text.equals(dr1["password"])<br />
{<br />
}
|
|
|
|
|
thanks... but it still the same output..
|
|
|
|
|
could you please put the code block over here, which will be helpful for us to give some solluation.
|
|
|
|
|
if(string.Compare(textbox1.text.Trim(),dr1["password"].tostring().Trim()) == 0)
|
|
|
|
|
Hi navaneeth,
is there any thuig wrong with this
if(textbox1.text.equals(dr1["password"])<br />
{<br />
}
|
|
|
|
|
|
|
anyone who have an idea what is the concept of using the web service as a datasource of a reporting service? How can i implement that?
Or maybe the question is, how can i use the web service as a datasource of a reporting service.
Thanks guys!
|
|
|
|
|
ewin wrote: Subject: A little help
First of all , never put this type of subject , always try to give proper subject that can easily understandable of your question by all Forum member.
ewin wrote: how can i use the web service as a datasource of a reporting service.
Try This[^]
|
|
|
|
|
ooops... I'm really sorry
|
|
|
|
|
im a first year student,taking up Information Tech. here in philippines..our instructor gave us two weeks to get a code from the problem he had given to us..
from Binary system to Decimal system..
the code i made is:
Get the code : 5
scanf("%d",&counter);
for (counter=1;counter < 4;counter++);
{
printf("input element [%d]",counter);
scanf("%d",binary[counter]);
please help to solve my problem..
"Doing your Best is better than being the BEST."
|
|
|
|
|
This is the C# forum. You may want to ask this question in the C++/MFC forum, although I don't think you'll find anyone willing to do your homework. If you ask a specific question, you're likely to get a helpful reply.
/ravi
|
|
|
|
|
Hello,
1st, sorry for such a simple question...well maybe simple
I'm new to c# and especially xml.
I'm using an XmlTextReader to loop through an xml document,
using if statements to "stop" at certain nodes.
once I stop at certain nodes, I need to update one of the attributes.
How can I update a single attribute
while (CashReader.Read())
{
// Move to first element
CashReader.MoveToElement();
if (CashReader.Name == "Shopper")
{
CashReader.MoveToAttribute(i);
if (CTFReader.Value == frmLogin.vID)
{
i=2
CashReader.MoveToAttribute(i);
//I NEED TO UPDATE SHOPPER HERE
if (CashReader.Value == "")
{
//THIS IS WHERE I WANT TO INSERT THE CODE TO UPDATE THE ATTRIBUTE
CTFReader.Close();
thank you in advance for the help
JC
|
|
|
|
|
I suggest using an XmlDocument and its .Load method instead.
|
|
|
|
|
ok, but if I load the document then I
need to go to a certain location depending on the information a user enters in a textbox
I tried the below code, but I get an error
"The process cannot access the file 'file.xml' because it is being used by another process."
XmlDocument upd = new XmlDocument();
upd.Load("file.xml");
XmlAttribute AttrUpd = upd.CreateAttribute("value");
AttrUpd.Value = "35.00";
upd.Save(file.xml);
thanks
|
|
|
|
|
nyjcr wrote: XmlDocument upd = new XmlDocument();
upd.Load("file.xml");
XmlAttribute AttrUpd = upd.CreateAttribute("value");
AttrUpd.Value = "35.00";
upd.Save(file.xml); //THIS IS WHERE I GET THE ERROR
It works fine at my end. But your code won't add attribute. You are not appending the attribute to any of the node. So you don't find this attribute in the file. Use XPath or upd.GetElementsByTagName() to get node, and use node.Attributes.Apped() . Call Save() then.
|
|
|
|