Saving scores in winfoms game [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
This is the first time I am making a game in winforms c#. I have a memory game and I want to save the scores so whenever a button "Show Scores" is clicked, it will list the 10 top scores.
The only thing I want to ask you is if this is only possible with connecting the winform with databases or is there another way?

Well there's many ways to sava your data :
Xml or Text file
local Database
Here's a good example on how to save game data from Saving Data to a Save Game File
Shared server database : I would suggest either using SQL Server Compact Edition or SQLite.
Microsoft SQL Server Compact 4.0 is a free, embedded database that software developers can use for building ASP.NET websites and Windows desktop applications.

Related

Generate C# code from drawn table [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Right now I am developing C# desktop application for some insurance company. Their reports have a lot of unusual tables with a lot of fields and I have to draw all that tables by using C# drawing class which takes a lot of time.
So I was wondering if there is any tool that can generate C# code for that table after drawing that table using mouse? Or if there is any way I can insert some data in already drawn MS Word table?
You can use COM to write in MS-Word tables:
https://learn.microsoft.com/en-us/visualstudio/vsto/how-to-programmatically-populate-word-tables-with-document-properties
Microsoft SQL Reporting Services is the best Tool for Reports (if you are already at the microsoft side)

SQL Server database for c# application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am new at programming and I want to make an app which uses a SQL Server database. Most important feature of this database must be usable for every computer which has the app installed.
I mean, when I give this app's setup file to another person, this person should be install my app without installing SQL Server program, extra things etc. I don't know it is possible.
I created a database with "SQL Server Object Explorer" inside of "(localdb)\MSSQLLocalDB" but when I tried to add new connection, server name was empty. So I didn't import a database to my project.
So how/where can I create and import a database ?
If you want a local SQL database with your application, that is: data is not shared between devices or users, you'll want something like SQLite which is designed for embedding in distributed applications.
To use it you need to link against the binary and include the binary in your application package. Or, you can use the SQLite team's native C# SQLite library. See here: https://system.data.sqlite.org/index.html/doc/trunk/www/index.wiki

How I can create a SETUP for C# App [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I create an application using C# and SQL Server database, when I try to create the setup I realized that I need to install SQL Server and create the database in every computer that I install my app on.
Is there any way or software can create the setup with the database without install the SQL server in other computers?
If your storing data locally you are better off to use SQLite (as Flat Eric mentioned, it needs no installation and it efficient on small DB's) then you can just copy the .mdf files instead of having to install the entire SQL server on every machine. Visual Studio provides great functionality to help you set up a LocalDB.
Here are two useful links, They really helped me in these situations:
Upgrade to LocalDB
Creating a Local Database File in Visual Studio
Connecting to Data in a Local Database File (Windows Forms)

Quickbook Data in to Sql server using SDK [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need to all data of quickbook file (.qbw) conveted to my SQL Server database. these data should be driven using SDK. is it possible using asp.net.
You can use SQL Server Integration service (SSIS) tools for your idea. In SSIS you can have script component that write with C# language as a source of data and use OLD DB as a destination that connected to you destination table on the SQL Server database.
EDIT
You can use C# and VB Language for script component
Samples:
Script Component as Source - SSIS
SSIS – Using a Script Component as a Source
Creating a Source with the Script Component

I Have a windows form application in C# and want to publish it in a LAN via ASP.NET ?? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have made a C# Windows Forms application and connected it with Microsoft SQL Server.
I want to allow all machines in the LAN to use the program and connect to the SQL server but without having to set up the program on all the machines.
I wondered if I can do this with ASP.NET.
How do I do it? Are there any tutorials for this sort of task?
Anything on the difference between web forms, MVC Web API .. ETC.
It's very easy! Create an empty Web Forms project, drag controls onto it in the same manner you did with your desktop application. Then add your code, objects, logic, etc => see what you've got in the browser and if you like that publish it to the server and guess what?...RIGHT! Now it's accessible over the network without any need to install the desktop version.
Hope that answers your question.

Categories

Resources