|
Are you going to create a new programming language? Please don't mind but can you ellaborate more on what are you going to do.
Either you love IT or leave IT...
|
|
|
|
|
You must be doing the same course as another twit in the forums, asked the same questions and didn't understand the answers.
Try searching recent posts you should be able to find it!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I have a feeling that this is the same twit.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
rachelicohen wrote: I am begginer
So writing what is effectivley a compiler is going to be way outside your capabilities. Get a good book on C#, start at the beginning and learn to walk before you run.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
How to Improve Cellformatting event time consumtion while loading large no of rows and paint some selected cells?
Please send me an answer.
|
|
|
|
|
justeena.paul wrote: Please send me an answer
answer
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
justeena.paul wrote: Please send me an answer.
The squaw on the Hippopotamus.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
How large is your data set?
|
|
|
|
|
|
So what's your problem?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
hi
In windows application I am using a button and serial port
in button the control is like a power ON/OFF switch which should change the color if its clicked. ie., when first click is ON the color is red and second click OFF Blue.
And it should send a value to serial port for ON "A", For OFF "a".
i need the code. for above application
|
|
|
|
|
so have a bool assign to false.
then in your button click...
isOn = !isOn;
if(isOn)
{
button.BackColor = Color.Red;
}
else
{
button.BackColor = Color.Blue;
}
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Use Green color. It would be as per the standards.
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
|
|
|
|
|
Mads115 wrote: i need the code. for above application
Start typing - we help, we tutor, we suggest research lines, we don't do your work for you!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hello Friends
I need to get the value of the cell of my grid. I mean suppose if I click on the cell which is is on 3rd row and 2nd column then I'll get the value of that cell or how can I hold that cell? And I'm using Devexpress grid control.
Any help would be appreciated.
Thanking in advance
Johnny
|
|
|
|
|
I don't use DevEx controls but there must be an event fired when you click on a cell, part of the event will be the e arguments, inspect them and you will almost certainly find a reference to the cell, column and row of the clicked cell.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hello fellow DevXian...
I understand your pain. I love DevX, but learning all of the new functions can be a bit overwhelming. Too bad they don't have better on-line help.
Anyway, I believe the function you are looking for is [YourGridView].GetFocusedRowCellValue(). You'll have to supply a GridColumn or the field name as a string for the column of interest.
Hope that helps. You can also try searching their on-line help at www.devexpress.com/Support/Center[^]
-NP
Never underestimate the creativity of the end-user.
|
|
|
|
|
Who knows How to Split data by Fixed length
|
|
|
|
|
what exactly do you mean?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
I mean if I have text file like this
==lo12365=12/08/05 12.30 lo op
==lo12589=13/08/04 12.15 li oo
==lo89099=18/05/09 12.10 io io
How to read in C#
Someone said I should use split and Format = fixed Length
But I don't know how ????
|
|
|
|
|
if you want to read a file you a System.IO.StreamReader which has functions such as ReadLine();
Each time you call ReadLine();
it will return a string of the next line in the file, until null (end of file).
You can then do what you want with that string. If you need dates and times seperate you will prob want to use String.Split() method.
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Yeppp I've knowed how to read
I use
using System.IO;
namespace WindowsApplication23
{
public partial class Form1 : Form
{
OpenFileDialog o;
FileInfo info;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
o = new OpenFileDialog();
if (o.ShowDialog() == DialogResult.OK)
{
info = new FileInfo(o.FileName);
label1.Text = info.ToString();
}
}
private void button2_Click(object sender, EventArgs e)
{
StreamReader reader = info.OpenText();
textBox1.Text = reader.ReadToEnd().ToString();
reader.Close();
}
}
}
but it read all of my file I just want it
from
==lo12365=12/08/05 12.30 lo op
==lo12589=13/08/04 12.15 li oo
==lo89099=18/05/09 12.10 io io
tobe
lo12365 12/08/05 12.30 lo op
lo12589 13/08/04 12.15 li oo
lo89099 18/05/09 12.10 io io
and insert it to my table
thx in advance
|
|
|
|
|
Well as i suggested use ReadLine() you are using ReadToEnd() which is not what you want.
in you button2_Click...
StreamReader reader = new StreamReader(info.Filname);
string line = reader.ReadLine();
while(line!= null)
{
string newLine = line.Replace("=", " ");
string[] vals = newLine.Split(' ');
line = reader.ReadLine();
}
reader.Close();
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
It has error on
StreamReader reader = new StreamReader(info.Filname);
can I change it to b
StreamReader reader = new StreamReader(o.FileName);
and it can't run on Button2
I don't know why
|
|
|
|
|
yes you can change it to that. The parameter is just the full path of the file.
And why cant it work it buttonClick? you get error message? You can put the code anywhere. you decide where is best for you
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|