blah blah blah is here! blah blah » Close

0
votes
1 answers

C# console main()

We have console application main() method defines as: void main() { Console.Write("have"); } How cen I write such lines without changing the code of main() method? We have cookies!

0
votes
0 answers

Trivia game is C#

Hi everyone, I have recently created a trivia game using a console in C#.. Here is the code I used.. [Code] using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Quiz { class Program ...

0
votes
1 answers

Properly grabbing console input when running java app in C#?

Hi. I am trying to open a command window and read/write it from a C# forms app. I have a textbox "textBox1" to display output and "textBox2" for me to type commands to the cmd process. This is the code: [code] Pro ...

0
votes
0 answers

How to: Consuming webservice in console application (C#)

Hi, I'm novice by complete to webservices et al. I've created successfully a webservice and referenced it in a console application. By simplification let assume that the webservice contains a webmethod, the 'classic' CelsiusToFarenheit ...

0
votes
1 answers

Why doesn't this work?

[code] Console.WriteLine("Om du vill byta färg på texten går det utmärkt."); Console.WriteLine("Q = Röd"); Console.WriteLine("W = Blå"); Con ...

0
votes
2 answers

Adding objects to List<>

btab
30

Hi I'm working in VS2008 (C#) and doing a console program, this is a school work and I got stucked. Our task is to do two classes, for example one class we call Person, in this class we should have name and id number on persons. The oth ...

1
votes
1 answers

Code Analysis -> object 'server' is not disposed along all exception paths.

I have problem with my code after running code analysis. I cant fugure out what is wrong :) any ideas pls? Warning 1 CA2000 : Microsoft.Reliability : In method 'Program.sendEmail(string, string, string)', object 'server' is not di ...

0
votes
1 answers

Need help wirting a console app

can some please help here is what i have to do: Problem: Write a console application that processes golf scores. The scores of four golfers are stored in an input file. Each run of your program should only read one input file. Your p ...

0
votes
0 answers

database like forms in Console

Hi, Are there any quick way(s) to create a database form in Console? That is I have marks 1 to marks 20 to be filled with digits of the range 0 to 100. I want the user to be able to use direction keys to move from one form to another an ...

1
votes
2 answers

Console Questions

Hi Everybody, I am looking for ways to implements simple Qbasic features into C Sharp Console namely: 1. The use of blinking color in Console. 2. Delimit Clear Screen as from Row 5 Downward so as to leave the first five row of the Co ...

0
votes
1 answers

Moving from Console to Windows Form

Hi, I am trying to move from Console to Windows Form. I have a workable program in Console but I wish to send it Windows Form. There is a problem over the "static void .... () {}" blocks and I wish also to know how to easily fi ...

1
votes
1 answers

Read-only properties

Hi I'm doing a school work in a console application, I'm not sure if I maybe misunderstand the question. Here it goes: Create class Rectangle. The class has attributes length and width, each of which defaults to 1. It has read-only prope ...

0
votes
2 answers

How to get the current folder when the assembly is running?

In my console application, I want to reference a folder inside the solution without having to have my path in the app.config. I was hoping I could get the reference to the path, if I could somehow get the folder where the assembly is run ...

Feedback