|
No Problem i myself will figure it out how to do it & will post an article here
|
|
|
|
|
Hello
I have developed some programs creating Office 2000 documents.
Can I use these programs also with Office 2003?
Are there any problems I should know about?
thanks
|
|
|
|
|
Hi
I have :
decimal dollars = 71.40;
decimal exchangeRate = 1.76;
decimal amount = dollars / exchangeRate ; // 40.568181818181818181818181818
Now, 'amount' is a large number. How can I make sure that amount has only 2 numbers at the end, like 40.56
Do you think, I should round the number to the highest, so 40.56818.... becomes 40.57
I hope u understand what I am getting at.
Thanks
|
|
|
|
|
hasanali00 wrote: How can I make sure that amount has only 2 numbers at the end, like 40.56
For display purpose
amount.ToString("#.##");
will display to 2 significant digets
hasanali00 wrote: Do you think, I should round the number to the highest, so 40.56818.... becomes 40.57
This depends entirely upon your requirements.
|
|
|
|
|
You can use the decimal.Round method to round it.
decimal dollars = 71.40;
decimal exchangeRate = 1.76;
decimal amount = decimal.Round(dollars / exchangeRate, 2); The second argument specifies the number of digits to round to.
Decimal.Round Method[^]
Cheers,
Will H
|
|
|
|
|
what is the difference between color and colorindex? thanks very much!
|
|
|
|
|
a color is often represented as either a 16,24 bit RGB value (32bit color has 8 bit alpha or unused so its still 24)
a color index is an integer value representing an element in a color palette.
http://www.puzzleframework.com
|
|
|
|
|
Hi,
How To change a user's group or account type in c# (or command line)?
|
|
|
|
|
Stop spamming the forum. You asked the same question only five hours ago.
---
b { font-weight: normal; }
|
|
|
|
|
Hello everybody how add and manige access data base with c#???
bye
|
|
|
|
|
|
ok.That is work but how to update data on file??
|
|
|
|
|
There are articles about this all over the internet. Just do a little searching and you should find a good example
|
|
|
|
|
To update the data in the file you simply use the Update() method of the data adapter.
ex.
//I'm assuming you have a OleDbDataAdapter named dAdapter and a DataSet named dSet
<br />
OleDbCommandBuilder cmd = new OleDbCommandBuilder( dAdapter );<br />
<br />
dAdapter.Update(dSet, "Table name");<br />
Hope that helps
|
|
|
|
|
|
hi to all,
does any one knows how can send files via the ETEBAC protocol (this protocol is used to send files between banks and their clients)
best regards and thanks in advance
fady
|
|
|
|
|
What is the difference betweem upper and lower case :
For example, about my problem in listview we have ImageIndex and imageIndex properties.
I have ImageIndex = 0 and imageIndex = 2
|
|
|
|
|
the lower case variable is usually the private field, the upper case version is usually the public accessor.
|
|
|
|
|
|
I use Visual basic alot, but on my home PC I only have Visual C# and Is there a way to convert a form from Visual Basic 2003 to Visual C# 2003...
In the end we're all just the same
|
|
|
|
|
There are a number of converters which will do this.
Here's a short list, including ours:
www.tangiblesoftwaresolutions.com (ours - has a free demo)
www.vbconversions.com
www.elegancetech.com
www.carlosag.net (the best on-line converter)
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter and VB to C++ converter
Instant J#: VB to J# converter
Clear VB: Cleans up VB.NET code
Clear C#: Cleans up C# code
|
|
|
|
|
Hello,
I dynamically create the largeicon immagelist. When I do a drag & drop, I lost the image, the listview only shows the text, but when I save the imagelist in files (.jpg), I have the rigth bitmap. So, the images of imagelist are rigth but the listview do not display them. I use the DragNDrop project : http://www.codeproject.com/cs/miscctrl/DragAndDropListView.asp
Freg
|
|
|
|
|
I have a splash screen... I WANT users to see it first. But the program loads so fast you cannot see it. Here is what I want
I want to add a progress bar to it and using a timer, make it go up 10 every 2 seconds until it hits 100 and then close splash screen and load form.. How would you do that?
Second how would you get a timer to work so after a preset time an action happens?
Eg: Click a button and after 10 seconds it shutdowns the application...
In the end we're all just the same
|
|
|
|
|
Here you have a form that does what you do, you just have to implement your progressbar
<br />
public partial class Form2 : Form<br />
{<br />
Timer t = new Timer();<br />
int timePassed;<br />
<br />
public Form2()<br />
{<br />
InitializeComponent();<br />
t.Tick += new EventHandler(t_Tick);
<br />
}<br />
<br />
void t_Tick(object sender, EventArgs e)<br />
{<br />
timePassed += t.Interval;
<br />
<br />
<br />
<br />
if (timePassed >= 10000)
{<br />
t.Stop();<br />
this.Close();
}<br />
}<br />
<br />
private void Form2_Load(object sender, EventArgs e)<br />
{<br />
t.Interval = 2000;
timePassed = 0;<br />
t.Start();<br />
}<br />
}<br />
-- modified at 4:45 Monday 20th February, 2006
|
|
|
|
|
Thanks. I will see how that goes...
In the end we're all just the same
|
|
|
|