|
I once came across an article posted in Code Project that explained how to programatically insert tables into RTF. I wasn't smart enought to bookmark this and now can't find it.
Does someone remember a similar article and can provide a link?
Thanks,
Eric
|
|
|
|
|
Hi All,
a very simple question , what will be the fastest way to know that whether a directory is empty or not.ofcourse i can use directory or directoryinfo class and can use getfilesystementries or getfilesysteminfos function and thus check whether it is having any children or not.but i am not intrested in the all the children.what i want to know whether it is having any child or not?any suggestions are most welcome.is there any api, which can be used?Thanks in advance.
Rakesh
|
|
|
|
|
GetDirectories
Ankit Aneja
"Nothing is impossible. The word itself says - I M possible"
|
|
|
|
|
Now,I'm design a component use for a system which service in hotel,the component is use to due to flie upload and download(webClient-webServers(c/s)).My problem is that the component contain more than two forms,so,How Can I do with the Encapsulation with the forms. I'm so puzzled that I could not know How can I do to change they became dll files !!
thank you
|
|
|
|
|
I have formula field in crystal report, now i want to receive value from it. How can i recieve it?
Please help me!
superdragon
|
|
|
|
|
|
That mean, after crystal report run, i want to get The Value that formula has calculated or sth like that
superdragon
|
|
|
|
|
im sorry, i want to get the value in C#, or VB.NET from Formula fields
superdragon
|
|
|
|
|
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
|
|
|
|