|
You are welcome.
Regards
|
|
|
|
|
i want to know how the csharp compiler comiles a project internal working ......how links....how generates exe....
|
|
|
|
|
Same as any other compiler??? (Except of course it compiles to MSIL rather than Object Code)
The Welsh will always support two teams: The Welsh, and anyone playing England
|
|
|
|
|
Ed.Poore wrote: Same as any other compiler???
I would imagine so
|
|
|
|
|
Read the book or ask your teacher for help.
|
|
|
|
|
i want to give my text box a property of changing color of words e.g when i press space after typing "happy" word its color should become red.....this should happen everytime when i type this
|
|
|
|
|
Handle the keypress event, if it wasn't a space ignore it.
If it was a space then get the current cursor index, find the last space indicating the beginning of the word. Set the selected index and length to cover this word, set the selected colour to the colour you want and finally reset the index to the original index so that you can continue typing.
E.g:
private void rtb_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == ' ')
{
this.rtb.SuspendLayout();
Random rand = new Random();
int startWordIndex = this.rtb.SelectionStart;
while ((this.rtb.Text[--startWordIndex] != ' ') && (startWordIndex > 0))
{
}
int endWordIndex = this.rtb.SelectionStart;
if (startWordIndex < 0)
startWordIndex = 0;
this.rtb.SelectionStart = startWordIndex;
this.rtb.SelectionLength = endWordIndex - startWordIndex;
this.rtb.SelectionColor = Color.FromArgb(rand.Next(255), rand.Next(255), rand.Next(255));
this.rtb.SelectionStart = endWordIndex;
this.rtb.SelectionLength = 0;
this.rtb.ResumeLayout();
}
} Hope this helps
The Welsh will always support two teams: The Welsh, and anyone playing England
|
|
|
|
|
double number1 = 1, number2 = .5;
while (number1 > number2)
{
number1 -= .1;
MessageBox.Show(number1.ToString());
if (number1 == number2)
MessageBox.Show("condition met"); // <- never
}
Please help
|
|
|
|
|
Floats are not guaranteed to be perfectly accurate because of the way they're stored. What are the numbers you get in your message box as it goes down? You may want to give Decimal a try.
Logifusion[^]
|
|
|
|
|
|
Hi
i have to multicast serialized objects through UDPClient socket but i cann't get a stream from NetorkStream constructor using UDPClient socket.moreover should i send stream or datagram using UDPClient. can anyone help me.
thanks
|
|
|
|
|
could u anybody please send algorithm/c# code for the given FROG Puzzle,,,
please click on http://www.hellam.net/maths2000/frogs.html[^]
some clues to solve the puzzle:
Call the frogs (from left to right),
Green 1, Green 2, Green 3; Red 3, Red 2, Red 1.
Click them in this order
Green 3,
Red 3,
Red 2,
Green 3,
Green 2,
Green 1,
Red 3,
Red 2,
Red 1,
Green 3,
Green 2,
Green 1,
Red 2,
Red 1,
Green 1
|
|
|
|
|
I smell HOMEWORK!!!!!!!!!
Do your own homework.
If you have a specific problem with your homework, then you can ask. Don't ask people to do your work for you, it renders you worthless.
|
|
|
|
|
Josh Smith wrote: I smell HOMEWORK!!!!!!!!!
it stinks
Josh Smith wrote: Do your own homework.
Yep. I'll be teaching a course at a local community college this fall and I hope I don't find my problems floating around here.
|
|
|
|
|
PaulC1972 wrote:
Yep. I'll be teaching a course at a local community college this fall and I hope I don't find my problems floating around here.
why? some cheaters are inevitable, given the choice I'd prefer ones that are easy to catch.
|
|
|
|
|
dan neely wrote: given the choice I'd prefer ones that are easy to catch
Yep. When I was a graduate student, there was once some class that was exiting the room where my class was entering. The teacher had caught this kid cheating and was telling him that he was going to get him expelled from the university. I thought the teacher was going overboard, but when I think of it, I'd probably do the same.
|
|
|
|
|
|
From the link:
"If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm." [Thanks to Jack Klein]
The last two sentences sound like signature material
|
|
|
|
|
|
divaa wrote: could u anybody please send algorithm/c# code for the given FROG Puzzle
Ummm, exercise some brain cells and do it yourself. If you are stumped, then ask a question. Nobody sends algorithms for the heck of it
|
|
|
|
|
divaa! i am so sad. i give you homework for college degree and you fail me by asking cpian. now you get black grade.
sincerely your college professor
Sincelery yours, Computer Information conSciences Professor and grader, Sharada Ulhas
|
|
|
|
|
Haven't seen you in a long time smacking on people for asking homework questions
|
|
|
|
|
Yes, I took him for a vacation. He's back now.
|
|
|
|
|
Hello my fellow CPians.
I have read articles on creating templates and user controls but I dont think that will solve my problem, so I figure what better place to ask then here?
The best way for me to explain my problem is with an example.
Lets say I have a widgit.
This widgit has 3 pieces, each piece has it's own characteristics..
What I would like to do:
The Page will bring up general information about the widgit it's self.
Then under that a multipage strip with a tab for each piece.
Click on the tab and a Page gets generated using a template page with the controls and eye candy required. These generated pages will need to interact with the server to get and update information.
Is it possible to create a template page that has all the controls I need then use that page to generate new pages on the fly? I really dont want to have to keep re-writing the same code over and over again. Each page will be exactly the same.
Thank you for your help,
Will O'Malley
I hate users. Not all of them, just the ones who talk.CP member: Al Einstien
|
|
|
|
|
OMalleyW wrote: Each page will be exactly the same.
Guess I don't really understand what it is you are asking for?
only two letters away from being an asset
|
|
|
|