|
I guess you are creating a windows application, which has no console and therefor nothing happens.
www.troschuetz.de
|
|
|
|
|
Add followed expression at the end
Console.Read();
the output screen will delay until you press anykey.
using System;
namespace rfid_Beta
{
class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
Console.Read();
}
}
}
le van giang
|
|
|
|
|
Try putting in Console.ReadLine(); just below Console.Writeline
|
|
|
|
|
Looks like it should work fine. How are you executing it? In a console window? Since it is a console app, you should be running it from the command line in a console window.
If you are running it from the IDE (Visual Studio), then look in the "Quick Console" tab down at the bottom. (That's what is is called in VS.Net Beta 2 -- I think it had a different name previously, but I forget exactly what; anyway, look for a likely output window tab at the bottom of the IDE).
By the way, it's "code" not "codes".
Matt Gerrans
|
|
|
|
|
Hi,
I have developed an application that runs on P.D.A as a final part I have upload the result to the Server from my P.D.A. database(SQlCe 2.0). I have written the web services programme on the server side,I a sending an array of objects to theservwer from P.D.A. Its working fine with the connection.But when i try to do the same using the G.P.R.S. its showing the following error
"MDCSTest.exe
WebException
Unable to read data from the transport connection
Application:Run+0xf
Form1:Main+oxa
Praveen.N
|
|
|
|
|
Hi Everybody,
How to open a new form when click on row of Datagrid in C#.
Thanks
|
|
|
|
|
Look into the dataGrid MouseUp event and DataGrid.HitTestInfo (to check if a row was clicked)
Then just call your form as normal Form1 f = new Form1(); f.show();
|
|
|
|
|
|
I would like to input data through a COM port and need to know how to tell C# to look for the COM port and to communicate witht he device atttached.
|
|
|
|
|
|
Hi all,
I am overridding WndProc method in C# for RichTextBox to handle the paste functionality.If i inherit TextBox, the message id 0x0302 gives WM_PASTE handler, but if i use RichTextBox it is not working. Is there any specific WM_PASTE message id for rich textbox. How can i know various MessageIds for RichTextBox.
|
|
|
|
|
Did you try using Spy++ and watching what happens when you paste text into the richtextbox.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi senthil, thanks for your reply. But i am not aware of spy++ tool,could you tell me where can i download and how can i utilize that to check the paste operation.
Thanks
Muthu.
|
|
|
|
|
Thanks senthil, i have seen spy++, but it is not logging the message when i click ctrl+v for rich textbox. But if i use textbox the message WM_PASTE is logged.Is it a problem in .NET RichTextBox..??
|
|
|
|
|
I have a form-based user for a user to select recepient from the current email addresses in the exchange server. How do I go about extracting this address list from MS Exchange?
Thomas
|
|
|
|
|
I have a form that contains a combobox with values of item1, item2, and item3. I am wanting to retrieve a value from a database and select the correct value from the options of the combobox during the loading of the form. What might be the best way to do this?
|
|
|
|
|
Just set the text property of the combobox.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
i want to do a for loop for an ArrayList
this is what i thought of:
for(int i=0;i
|
|
|
|
|
It has a Count property.
But you could as well do:
foreach(YourTypeOfObjetct obj in myArrayList)
{
} I hope this helps.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005
|
|
|
|
|
so does this looks right?
foreach(byte[] frame in frames){}
|
|
|
|
|
Are each of the elements in frames arrays of byte s? For example, does this code
byte b = frames[0][3]; get the fourth byte of the first frame?
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005
|
|
|
|
|
yup, the elements are in bytes
so how can i do a constant check on the arraylist and run the loop?
|
|
|
|
|
As Luis Alonso already pointed out, you should use the Count property of ArrayList .
Regards,
mav
|
|
|
|
|
Is each element in the arraylist a byte or a byte[]?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Need help on displaying text on a C# windows application
I'm not familar with C# but what i want is something like a JTextField in a java applet
thanks!
-------------------------------------------------
BingLin
|
|
|
|