Code: Select all
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
Bitmap bmp = tChart1.Bitmap;
for (double x = 10.765; x < 51.534; x +=10)
for (double z = 10.765; z <51.534; z +=10)
surface1.Add(x, x + z, z);
}
}
}
If I use x++ and z++ instead of x+=10 and z+=10 the code works fine.
Is this a feature or a bug?Maybe I should use some tricks?
Thank you.