|
It's not just you. There are some questions that are so blatantly obvious they shouldn't even be asked.
only two letters away from being an asset
|
|
|
|
|
It's not just you. The standard of question does seem to be in decline.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi all,
Can anyone tell me the line of code to count the no of rows in the datagrid
thx also tell me what is this visible rows concept
Bye
|
|
|
|
|
Are you binding it? If so, check the datasource for the number of rows.
|
|
|
|
|
Is there not a property such as Count or RowCount , or a collection of rows which you can then Count .
|
|
|
|
|
Hi all,
Can anyone help me figure out weather vs2005 c# allow to have two different references for debug mode and release mode in the same project.
Thanks in advance
Regards
Praveen
|
|
|
|
|
If include the referred assembly's project into your solution and then put a reference to that project instead of directly referring the assembly, you will get configuration dependent references. I admit that this is kind of awkward, but it's the only way that I know of.
/Thomas
|
|
|
|
|
According to Microsoft, there is currently in VS2005 one xml proj file that holds the project properties, including a separate item group node for file and project references. The same file is used for both debug and release mode settings. This is definitely a limitation (for the time being). But improvements are under way[^].
SkyWalker
|
|
|
|
|
Does anyone know why Peek() is blocking when called on the StandardOutput stream?
I've heard that it might block if nothing ever has been written to the stream before Peek() is called. The problem occurs both with VS2003 and VS2005 (.NET 1.1 & .NET 2.0).
System.Diagnostics.Process p = new Process();
p.StartInfo.FileName = @"c:\windows\system32\notepad.exe";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.Start();
int res = p.StandardOutput.Peek(); // this blocks
if (res>=0)
{
string s = p.StandardOutput.ReadToEnd();
}
Please help!
|
|
|
|
|
how to add two integers using c# language
|
|
|
|
|
int a = 2;
int b = 3;
int c = a + b; or simply
int c = 2 + 3;
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
What do you mean? Can you be more clear at what you exactly want?
V.
I found a living worth working for, but haven't found work worth living for.
|
|
|
|
|
If you're asking questions on this sort of level, the answer is to abandon asking questions, buy a book and work through it.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
I wanted to mock him, but I thought that people might think I was picking on the weak and defenseless, but what the hey - I feel some mocking bubbling up.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I was offering serious advice. If he doesn't know how to add two integers, who knows what he'll ask next ? It's quicker for him to work through a book, at that level.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Wrong forum - this should be on the Mathematics and algorithms forum.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I don't think you'll get thanked for that over on the M&A forum.
|
|
|
|
|
Colin Angus Mackay wrote: I don't think you'll get thanked for that over on the M&A forum.
At least somebody would be using it then. It's a great forum with not a lot being put on it.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
It seems that you don't need this message board, you need a book, or listen in class.
|
|
|
|
|
public long Sum(int a, int b)<br />
{ <br />
long f = 0;<br />
for (int i = 0; i < a; i++)<br />
{if (f % 2 == 0)<br />
{f ^= 1;}<br />
else<br />
{int k = 0;<br />
long e = f;<br />
while (e % 2 == 1)<br />
{e = e >> 1;<br />
k++;}<br />
int l = 1;<br />
for (int j = 0; j < k; j++)<br />
{l = l << 1;<br />
l ^= 1;}<br />
f ^= l;}}<br />
for (int i = 0; i < b; i++)<br />
{if (f % 2 == 0)<br />
{f ^= 1;}<br />
else<br />
{int h = 0;<br />
long g = f;<br />
while (g % 2 == 1)<br />
{g = g >> 1;<br />
h++;}<br />
int l = 1;<br />
for (int j = 0; j < h; j++)<br />
{l = l << 1;<br />
l ^= 1;}<br />
f ^= l;}}<br />
return f;<br />
}
Usage example: Sum(3,4). Will return 7.
|
|
|
|
|
Any NUnit tests available ?
Luc Pattyn
|
|
|
|
|
Sorry no. Wrote this in about 10-15 minutes. Tested it with two numbers and it worked. Good enough for me. I didn't want to spend more time coding this, as I think I already took this joke a bit far (though it would've been nice to write some code without using the increment operators )
BTW, refactoring in VS2005 is still one of my favorite features. Sure did the trick on those pesky, descriptive variable names 
|
|
|
|
|
*Family Feud voice* Good answer...Good answer lol
|
|
|
|
|
That cheered my day up no end .. thanks.
PS. You should write a book on the subject - any subject will do
Glen Harvy
|
|
|
|
|
how to convert an exisisting project
(windows application) exe file into an dll
thanking u
|
|
|
|