|
lblNetPrice.Text = String.Format("{0:#.##}",d);
/edit: helps if you get the format right
-- modified at 8:05 Thursday 24th November, 2005
|
|
|
|
|
Instead of this:-
Subrahmanyam K wrote: decimal d = 45.52
lblNetPrice.Text = Convert.ToString(d);
try this:-
decimal d = 45.52
lblNetPrice.Text = d.ToString("###,##0.00")
Cheers,
Craig
** I'd rather try and fail than fail to try **
|
|
|
|
|
hello all,
i am working with windows control library . i am using three dll in my project. which ever dll i am using i have to make strong name for that.my problem is that i am not to able make strong name more than one. in Assemblyinfo.cs i used the following coding
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile(@"..\..\..\filename.snk")]
[assembly: AssemblyKeyName("")]
after that use GAC to put into the assembly. for each dll i have to make .snk key pair. but when i use AssemblyKeyFile() more than once in assembleinfo.cs it gives me error duplicate assembleykeyfile() file attribute. how could i use more than one dll in our project.
Amit Grover
CDAC R&D
Gist Group
pune
|
|
|
|
|
The AssemblyKeyFile attribute is used to *build* a strong named assembly, you don't need it for referring to a strong named assembly.
So you need to have the attribute in the AssemblyInfo.cs file of each of the DLL projects, that's it.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
i don'nt know how would to add entries in assembleInfo.cs for each of the dll's. plz send the code if possible
Amit Grover
CDAC R&D
Gist Group
pune
|
|
|
|
|
hi guys, need help with this one.. im building a client agent that would collect software and hardware data on my network's client PCs.. and i want that program to send data to my license server/database everytime a user opens an application/program... how can i be able to accomplish this task?? do i need to use webservices or windows services?? need your advice guys.. thanks a lot..
|
|
|
|
|
I want to create a web editor to generate XML. I use ASP.NET c# and javascript.
If someone knows how or has done something like it I will appreciate any help.
Thanks
Tony
|
|
|
|
|
What exactly do you want help with... your question is akin to asking "I want to build a website, how do I do it?"
|
|
|
|
|
I want to build a wysiwyg to generate XML without having to type any XML.
Thanks
Tony
|
|
|
|
|
You need to at least TRY something yourself, when you hit a specific problem feel free to post a question remembering to include any code and eror messages.
Nobody could answer "How to build an XML Editor" in a single post! If you just want an example there will be many available by doing a search on google.
|
|
|
|
|
How can I make a Line Graph in VC#.net wherein the X and Y axis data are obtained from user's input? Please help!
|
|
|
|
|
Hi All
I'm not completely sure whether this is the best place for this question but someone out there may be able to provide suggestions. I am in the process of designing an Inventory system which holds details about object within our department. This can include books, software, logbooks etc. The aim is that it will allow loans as well as maintain project information about logbooks, staff information etc.
Now I originally designed a database, creating an E-R diagram to ascertain the tables etc in which to store the information. The intention was then to produce a C# front end to display the information and control access etc. Now my question is this.... Do I need to go through the design process (Analyis, design etc) in UML for the C# part of the application or do I simply gear the front-end to the structure of the database? If I do serperate analysis and design then the models produced for the C# part of the application add various classes etc that are not accounted for in the database.
What is the general approach to this sort of application? How do people go about designing it? Say the database has a table for books and one for software... I find that the analysis for a C# application provides a generalisation such as InventoryItem... I hope this makes sense.... What I really want to know is how people go about designing this sort of application.
Any help or guidance would be gratefully appreciated
Cheers
Jamie
|
|
|
|
|
Hi,
I am using WinWordConrol in my C# project.
I want to HighLigt a particular selected text in my document but Word.Document
object does not have any option for HighLight property.
It is possible by using Shading property but i dont want to use Shading property.
doc.Application.Selection.Shading.ForegroundPatternColorIndex=ColorIndex;
where doc is Word.Document object.
Is there any way by which i can use HighLigth.
|
|
|
|
|
subject tells about everything. I cannot go on to my gradution project. Please help me about this subject. I can read information with SDK but i cannot read anything else. Kit connects to computer through serial port. I tried many serial port programs under .NET framework 2.0 but it doesnot work. Is there anyone can send me a example code for this.
My antenna is ANT34-24
reader is MR100A
Thanks
|
|
|
|
|
Hi Friends,
I am developing scheduler application using C#. For displaying all
schedule information i am using ListView control. Based on the status
of the schedule, i have displayed the schedule information in the list
view as seperate colors.
I have faced the problem with deselecting the list view item. For
example, if i select the first row,(with blue color) of the list view
and deactivate the selected item by clicking the row which has no
elements, the color for the first row not appear, it appear as white
color. I just apply refresh method also. but i didn't get the actual
color at the row.
Please help me to solve this issue.
Regards,
Prakash.
A Journey of thousand miles must begin with a single step.
|
|
|
|
|
The way of presentation is not clear. Try to explain clean and concise.
Check the selection property of list view. Set the value of MultiSelect property to True .
|
|
|
|
|
i want to make combobox like addressBar in IE. i have made a comboBox but when i type something in combobox and then press backspace, it does not work.i handled the keypress event on combobox. all other keys are handled expect backspace, arrow keys. i also want autocomplete feature like addressbar. in which way i can achieve this funcitonality.
Amit Grover
CDAC R&D
Gist Group
pune
|
|
|
|
|
hi
how to make automaticly filling on one excel table????
and
can i link c# with my sql???
C#,ms sql,
|
|
|
|
|
For you MySQL Part of the question visit the following link
http://www.csharphelp.com/archives2/archive288.html
For your Excel part of the question I know of a way to open excel from C# and then you can populate the cells of the worksheet using your code which is very straight forward. For this checkout the following link
http://www.codeproject.com/csharp/csharp_excel.asp
|
|
|
|
|
|
Imagine DataGrid contains three columns of its DataSource And another columns of DataSource have been to fill with two TextBoxes . So I want to fill them when the new row in the grid is filling .
The following code to do this operation :
private void dataGrid1_CurrentCellChanged(object sender, System.EventArgs e)
{
try
{
int colNum;
int rowNum;
colNum = dataGrid1.CurrentCell.ColumnNumber;
rowNum = dataGrid1.CurrentCell.RowNumber;
//fill 2 columns of dataset
int cod1,cod2;
cod1=Int32 .Parse (textBox2.Text );
dataSet31 .factor .NewRow ();
* dataSet31 .factor [rowNum ].proje_code=cod1;
cod2=Int32 .Parse (textBox1.Text );
dataSet31 .factor [rowNum ].hazineh_code=cod2;
}
catch(Exception ex)
{
MessageBox .Show (ex.Message );
}
}
But in execution time when I click on forth row and it arrives to the marked line with star then this error message appears :
there is no row in position 4
. I want to Insert the new information of DataGrid to my DataSet that has 5 columns . you khow that my DataGrid has 3columns of its DataSource(DataSet)
. 2 TextBoxes fill the 2columns of DataSet . this 2 columns are the 2 field of primary key
. in execution time when I fill a row of DataGrid this error appeares :
. column ' proje_code' does not allow null
Thanks
|
|
|
|
|
Hi.
Can you show us how you insert the two rows from TextBoxes to the DataSet.
And what is this factor property of the DataSet.
|
|
|
|
|
Hello
int colNum; int rowNum; colNum = dataGrid1.CurrentCell.ColumnNumber; rowNum = dataGrid1.CurrentCell.RowNumber; //fill 2 columns of dataset int cod1,cod2; cod1=Int32 .Parse (textBox2.Text ); dataSet31 .factor .NewRow (); * dataSet31 .factor [rowNum ].proje_code=cod1; cod2=Int32 .Parse (textBox1.Text ); dataSet31 .factor [rowNum ].hazineh_code=cod2; }
|
|
|
|
|
Hi All,
I'm using MS Enterprise library to configure my application. My app is written in C#.
How can I delete an entry (as shown below) from my config file?
<code>
<nPostStartStatus>9</nPostStartStatus>
</code>
Thanks.
-- modified at 0:33 Thursday 24th November, 2005
|
|
|
|
|
Dear ALL,
I want to call oracle(Developer) form (fmx file),from another application (c#).I want to call the form in such
a way that user dont need to enter login and password.I will hard code the username and password
in my C# application.User only press a button on C# form and and that button will open required Oracle form.
---------------------------------------
How can I DO this.PLEASE HELP............
Regards
|
|
|
|