|
I don't think it is possible. CR is a reporting tool not really built as a calculation tool.
You may be able to look at the crystal report's document object's defination collection, but I doubt that the values are being saved in the object.
|
|
|
|
|
Hi, i'm having this problem where i'm using an xpathnavigator to search a xpathdocument for the values contained inside certain '<' '/>' things. I'm not sure if this is proper behavior or a bug. This code should show you what i mean (.net 2.0) : http://paste.insanityflows.net/viewpaste.php?id=3
Also the output is:
<br />
Expected: 0,1,2,,3,,4,5,,<br />
Actual: 01,2,,3,,45,,<br />
Press any key to continue . . .<br />
Theirs also a good chance the bug is just in that code, which i got off MSDN :P
|
|
|
|
|
Hi,
How do you force a new line in a multi-message textbox? I've tried several things with out much luck.
IE: mltbMessage.Text = "This is line 1"+0x0d+"Line 2"; doesn't work
mltbMessage.Text = 'This is line 1\n and this is line 2\n";
This is running on the web if that makes any difference...
Thank you,
Glenn
|
|
|
|
|
You would use System.Environment.Newline to separate two lines. That contains "\r\n", which is the Windows Newline-pair.
Unlike C++, the "\n" sequence is really the linefeed-character in C++. "\r" is the carriage-return-character.
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
mltbMessage.Text ="This \n"+ " is \n" + "new \n" + "line.";
result :
This
is
new
line.
|
|
|
|
|
Hello dear code project team,:
Somebody knows wich is the Visual Studio component that is used to show the properties object of windows form?
I want to do something like this http://creaworlds.com.mx/listview.JPG
thanks in advanced
SINCERELY.
ANTHONY ACUÑA
PREFERED PHRASE:
SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM AWAKE?
|
|
|
|
|
It's called a property grid. I don't know if it's in the Toolbox by default, but you create objectos of type PropertyGrid. However, it is not as straightforward to use. Look around this site and you'll find great articles on how to use it:
This article, for one, might be of your liking:
Bending the .NET PropertyGrid to your will[^]
I hope this helps!
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005
|
|
|
|
|
Hello everybody!!!
I have VS2005 installed and I am now trying to install Web Application Project Template for C#. I downloaded WebApplicationProjectSetup.exe from http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx but whenever I start the installation (at the very end of the process) I get this error message:
InstallUtilLib.dll:ClrCreateManagedInstance (hr=0x80004005); Unspecified error.
PLEEEEASE HELP me with this one because I'm stuck with it for quite a while now....
THANKS!
|
|
|
|
|
Hi,
I'd like to make a cursor jump to the next text field when a user reach to the max length of the other in C# .Net.
Ex: when you enter the key code for software installation, the cursor keeps go to the next text field without using the tab button.
I'm a beginner for VS. Please help thanks.
Kyah
|
|
|
|
|
Step 1. On the form, set the KeyPreview property to true.
Step 2. Make sure that the TabIndex is correct for each TextBox that will have this feature.
Step 3. Add a KeyUp event for each of the TextBox controls. You can make one function, and assign the same function to each of the TextBox controls. Note that in my example, I have have named my function SSNTextBox_KeyUp. In my program, I have three Textbox controls, used for entering a Social Security number.
Step 4. Write the KeyUp event function as follows:
private void SSNTextBox_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)<br />
{<br />
if (((TextBox)sender).Text.Length == ((TextBox)sender).MaxLength) <br />
{<br />
SendKeys.Send("{TAB}");<br />
}<br />
}
I hope this helps.
Roy.
-- modified at 21:42 Thursday 9th March, 2006
|
|
|
|
|
|
Thanks Roy and Stefan for your help.
Kyah
|
|
|
|
|
Hey,
I was wondering if this is a bug or it is supposed to work this way.
Yesterday i was playing with some controls on my windows .NET application.
On one form I have List view Control, but it is disabled. Now eventhough it is disabled it is firig its GetFocus event. I did not understand it. It wasnt firing Click event but just GetFocus and LostFocus. Other controls like textboxes or labels do not fire any events if they are disabled.
It puzzled me...
Thanks
Lav Pathak
Application Developer
Auxiliary Enterprises
Kalamazoo, MI
-- modified at 11:14 Wednesday 5th April, 2006
|
|
|
|
|
hi all,
I m working on a Data minning project using SQL Server and C#. and need code of k-means clustering algorithm implemented in c
#.
regards
|
|
|
|
|
|
i have my user control in namespace called Test1 my user control name is class Header. and i am trying to call that user control in my project number two which is called Test2. i have add reference in my Test2 and
using Test1;
namespace Test2
{
public class default : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
Header proBarStatusUC = (Header) Page.FindControl("Header");
proBarStatusUC.Function1();
proBarStatusUC.Function2();
}//load
}//class
}//namespace
This work no problem, but when i try to LoadControl i get error 'file not found Header.ascx'.
using Test1;
namespace Test2
{
public class default : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
Header proBarStatusUC = (Header) Page.FindControl("Header");
proBarStatusUC.Function1();
proBarStatusUC.Function2();
Header proBarStatusUC2 = (Header) Page.LoadControl("Header.ascx");
phPlaceHolder.Controls.Add(proBarStatusUC2);
}//load
}//class
}//namespace
if i have my user control in same namespace it worked, that not what i want. i what to call my user control in different project becuase my header will look same for the project and i don't want to create user control for every project. can someone please help me... Thank you,
|
|
|
|
|
I don't understand the <i>value and innertext </i> property of a XMLNode used in .NET.
Ex:
<xml>
<element>ABC</element>
<element>ABC</element>
</xml>
code:
XmlElement root = doc.DocumentElement;
XmlNodeList nodeList = root.ChildNodes;
Console.Write(nodeList[0].InnerText);
for (int i = 1; i < nodeList.Count; i++)
{
Console.Write(","+nodeList[i].InnerText);
}
nodelist[0].Value = "" => what is nodelist[0].value??
Please explain for me!!!
Hung
|
|
|
|
|
I'm sure not the expert, but what I found is that ABC is a child of the element node. To retrieve the value I use
val = node.FirstChild.Value;
try that.
|
|
|
|
|
Your program works when i run it...
using System;
using System.IO;
using System.Xml;
public class Sample {
public static void Main() {
XmlDocument doc = new XmlDocument();
doc.LoadXml(@"<xml>
<element>ABC</element>
<element>ABC</element>
</xml>");
XmlElement root = doc.DocumentElement;
XmlNodeList nodeList = root.ChildNodes;
Console.Write(nodeList[0].InnerText);
for (int i = 1; i < nodeList.Count; i++)
{
Console.Write(","+nodeList[i].InnerText);
}
Console.ReadLine();
}
}
/\ |_ E X E GG
|
|
|
|
|
Hello.
I might be wrong, but InnerText will take all the text inside a node.
for examlple
<xml>
<element1>
<element2>ABC</element2>
</element1>
</xml>
the InnerText of element1 will be "<element2>ABC</element2>"
while value will only fork for childnodes
could this be right ?
-- modified at 2:16 Friday 10th March, 2006
|
|
|
|
|
That is what InnerXml does. InnerText get the values of the node and all child nodes.
I'm not sure if it ignores white space if the node only contains white space and children. The InnerText of element1 will either be "ABC" or "\r\n ABC\r\n".
---
b { font-weight: normal; }
|
|
|
|
|
I want to connect C# with analysis services of MS SQL server 2000. I have a code and it is giving me the error:
Database <db-name> does not exists.
I want to access OLAP cube data from that database and retrieve the data from it to web.
I m using Windows XP SP2 and IIS server.
Please ans my question as fast as possible...
It's very urgent.
Waiting for reply......
Thanks in advance.
SWAROOP
|
|
|
|
|
hey guys dumb doubt.. i have developed a messenger on C# .. but Iam not able to create a form component in C# (am using .Net Framework 2.0)which can display my smileys.. can some one suggest a solution or provide me with the url for the code please.!! I want to know how to display smileys along with my text coz right now it just displays text and no pictures for smiley.. please help..
codecrammer - CRAM LORD!!
|
|
|
|
|
textBox1.Text += ":-)"; scnr
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|