37 Solved Topics
Remove Filter
|
|
Repo: https://github.com/Charles-CarM/Battleship I am currently building my battleship console application in C#. I have prior experience building projects with Vanilla JS and in React. I went through a tutorial on C# and could grasp most of the concepts pretty well. I have jumped into project building because I know this … |
|
I kind of figured out how to put a pause in my 2d game when the player shoots. The problem is that when the player shoots once, the game will continue to shoot continously, even after the player has stopped shooting. Can someone please help me? void Bullet()//draws the players … |
|
Learning C# and I am working on a C# scrolling shooting game. The game works so far but when the player finishes a level, I want the enemies to appear on the far right of the screen and the player on the left of the screen. When the level is … |
|
Hi been working on this final piece of the puzzle and it seems like the last step is the hardest. So far been able to stop it from adding multiple items per button click (number of rows + 1) Update QTY count for first item only. Trying to have it … |
|
Hello all, I was wondering if I could get some questions answered about how cupons work in the work place. I have an idea which involves creating a very flexible cupon service, but would require knowing the rudiments of how cupons work. The main question I have is how is … |
|
Hi, i am trying to build Employee Attendance system and was successful in assigning TAGS to employees.now i want to calculate in/out timings of employees and which TAG swapped His/Her TAG without displaying any data to end user. i had tried basic sql query but seems to be not working. … |
|
HI , There are TWO Excel Files in my Program which I am trying to upload to a FTP server and then later Download it and its getting uploaded and downloaded with no error but when i try to open the file i get error message its corrupted or not … |
|
I know that the main difference between an array and a list is that a list size changes dynamically as items are added or removed. Because of this, if we copy an array to a list does that mean that the list must have a static size of the array's … |
|
How do I detect left mouse button down and up events on the 'Close' option of the system menu that appears when the mouse is clicked on the top left corner of a form? |
|
Hi, I've got 2 forms, after click on the button I'm hiding first and showing second.. How to put the second form to the same location as first one? I've tried: MMenu m = new MMenu(); // MMenu is the first form this.Width = m.Width; //Width and Height lines are … |
|
Hello friends, I am working an a section of application which needs to Parse CSV Logs generated by PostgreSql server. - The Logs are stored C:\Program Files\PostgreSQL\9.0\data\pg_log - The Server version in 9.0.4 - The application is developed in C Sharp * The basic utility after Parse the Log is … |
|
What is the difference between "[CODE]return[/CODE]" and "[CODE]messageBox.Show("whatever")[/CODE]"? Also explain(efforts will be appreciated): What does [CODE]retern[/CODE] do? |
|
Hi all, i have a scenario in which there are two subscribed users (to database) in my web app.......now if one of it wants to send a message (just like mail but not sms) to another without using any email account...... but with the help of that website and some … |
|
Hi, Im new at C# and im trying to make a booking system where i have a combobox on the first form. From that form i have to choose 1 out of 3 items. Depending on which item i choose i will come to another form. How can i get … |
|
I'm using Visual C# Express 2010, on Windows XP SP3. I took pain to define the var collBlock in the class directly, however, when I try to use it, it works once and then NOT. Google searched all and tried a lot of solution. Error stil comes up. The code … |
|
Hey folks. I'm tying to carry out a simply task of writing a variable double value to a label on my form. The label is called 'lblTotalSeats'. Here's my code below: [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace ABCDEFG { … |
|
Hey folks. I currently have the below code:- [CODE] int double weeksInYear = 52; int double num; while (num <= weeksInYear) Console.WriteLine("Week " + num); num += 2; [/CODE] Now when my code runs, it produces approximately 26 lines of text as below:- Week 1 Week 3 Week 5 etc..... … |
|
Hi, i'm tryin to use windows authentication to log into an application i have made. I have already worked out how to get the username but i can't figure out how to get the password too. Is this possible ? if so can anyone suggest any ways to do this … |
|
Hi, i'm having a problem trying to print out a list of strings. i can get them to print out using rectangles successfully but when the bottom of the page is reached it wont go onto the next page, instead it just stops printing. I've done this so far which … |
|
Hi, i'm trying to implement a print function and i can print a single string out but i'm having trouble configuring the page setup properly, mainly moving to a new line when the margin of the page is reached and moving to a new lines for each string in a … |
|
|
Hi i need to make a [B]BASIC[/B] HTTP server for a project using [B]JUST[/B] TCP/IP Sockets so please don't suggest anything that would use some of C#'s higher level networking components, Thanks =). [B]Anyway my problem:[/B] i have created the server and it all works so far but i haven't … |
hi i am looking for some code and step by step instructions for the c sharp encryption and decryption process. if anyone is willing to send me some instructions i would be grateful. thanks Neville |
|
Hi, At the moment i'm trying to locate xml files to use their content. I would like to be able find all files that have a particular pattern in their name (for example student_James.xml; student_Chris.xml so "student" would be the pattern). I want to be able to do this using … |
|
Hi i keep getting an exception when i'm trying to update table values within a database. the exception is below but i dont change from datetime to varchar it always stay as datetime. is there any other reasons why this is happening ? "The conversion of a varchar data type … |
|
I am creating new thread everytime in the for loop .. but many times the loop takes the same filename and creates new thread. Doesn't Work: [code] foreach (string s in fileEntries) { t = new Thread(() => Shrink(s)); t.Start(); } [/code] I have tried individually for each file creating … |
|
Hi, Could anyone tell me the best way to implement a propertygrid? currently I'm doing it like this but I'm having truble setting the value of the private variable with the values returned but a single SqlDataReader: [CODE] [DefaultPropertyAttribute("ObjectTypeID")] public class ObjectType { private int _objTypeID; private int _stateType; private … |
|
|
Hi guys, I've been searching for hours now and haven't yet found a good source of C# information for what I need to do. The general gist is this: I have 1 Client app (a simple windows form which gathers data) and 1 Server console app (which holds the business … |
Hi i need to add a combo box to a property grid that can be populated with the result of an sql statement, i can more than likely populate it when i come to it but i have no idea how to add the combo box. Currently i am creating … |
|
Hi I'm pritty new to C# I'm having trouble with items repeating in a combo box This method gets the values from my table and stores it in the list of strings which it does fine . . . I think. [CODE]public class EditStates { public List<string> getStates(CEditStates ced) { … |
|
I have a C# website that includes AJAX. The site has a master page and sub pages. I am revamping the photo gallery sub page to include a jquery function that displays a larger version of a thumbnail image when hovered. The thumbnails are listed in a xaml file, at … |
The End.