4,589 Topics

Member Avatar for
Member Avatar for awslc

Hello guys, I (attempted to) incorporate the alpha-beta pruning functionality with Negamax in C# and was wondering if you could review my included code for any obvious errors? Negamax Function: public int NegaMax(int[,] board, int depth, int alpha, int beta) { Interlocked.Increment(ref _negaMaxCtr); if (depth == 0) { Interlocked.Increment(ref _zeroCtr); …

0
259
Member Avatar for UrFace

Write a C# program that searches a file for a string. Pass the string and the file name as program arguments.

Member Avatar for Momerath
-2
40
Member Avatar for Jmerced

Hello guys, I wonder if some of you can help me out with this. Im working on an application in VWD 2010 with C#. I wonder how can I save like 8 multiline textboxes into a Database. Where every single line of this textboxes is a new row in the …

Member Avatar for AleMonteiro
0
35
Member Avatar for SCass2010

Hi everyone, Currently for a university project I am building a server that can send notifications to a mobile device. Part of the project involves building a front end where I can configure everything for the server - updates to send, rules and so on. On the front end I …

Member Avatar for nmaillet
0
256
Member Avatar for Programmer629

Hey Everybody! I'm totally new to this and ligit just signed up here. This is also my first post. I want to create the card game war as my first project in C#. I have Visual Studio.Net 2010 and am a total noob. plz make instructions simple. thx!

Member Avatar for Programmer629
0
445
Member Avatar for XEN0

Rewrote this a few times heres the meat and potatoes. Has a few issues such as flashing when moving in different directions quickly. Thinking of trying to clamp a few values to try to stop the diagonal movement,flashing and smoothing out the sprite. Something along these lines might update this …

Member Avatar for XEN0
0
266
Member Avatar for semicolon

Hi can i apply this in a windows form C#? ![BubbleImage](/attachments/large/3/BubbleImage.png "BubbleImage") this is an html5 is there any in C# windows form

Member Avatar for gtsiga
0
817
Member Avatar for riahc3

Hey I want to Load/read/write a big file (ISO) in C#. Ive tried various combinations (FileStream, BinaryStream, etc) but all of them give me a "OutOfMemory" exception. What is the best way to load a big file into C# to work with it? Ill be using the DiscUtils library if …

Member Avatar for BobS0327
0
393
Member Avatar for gelmi
Member Avatar for gelmi
Member Avatar for pilesos

Hello , I'm trying to make an Update query but keep getting the following exception : "Data type mismatch in criteria expression" Here is the query : UPDATE PatientData SET PatientData.[Transaction Stop Time]='6/26/2010 1:07:12 PM' WHERE PatientData.[Patient ID]=6 AND PatientData.[Parameter name]= 'Temperature' AND PatientData.[Valid start time]='9/7/1999 12:00:00 AM' additionally, when …

Member Avatar for Nijil
0
253
Member Avatar for VasquezPL

I wrote a small program: Thread1 thread: public void ExecuteCommandSync(string argument) { try { var procStartInfo = new System.Diagnostics.ProcessStartInfo("bbb.bat", argument); procStartInfo.RedirectStandardOutput = true; procStartInfo.UseShellExecute = false; procStartInfo.CreateNoWindow = true; procStartInfo.ErrorDialog = false; var proc = new System.Diagnostics.Process(); proc.OutputDataReceived += (s, e) => { if (!string.IsNullOrEmpty(e.Data)) { LogBox.BeginInvoke(new EventHandler(delegate { LogBox.AppendText(e.Data.ToString() …

Member Avatar for VasquezPL
0
312
Member Avatar for keyd

hi, every body i became member of, so i would like to study how greate database in c# could u help me

Member Avatar for ddanbe
0
32
Member Avatar for vindom

Hi! I'm writing little software just to get some practice in c#. I have listview in form 1 where program displays first name and last name form access database. When admin selects name/surname in listvioew and press show usercard(form2) I have a label in form2 and I want it to …

Member Avatar for vindom
-1
1K
Member Avatar for CDRIT

I've inherited a small C# command line program that takes a date and creates several spreadsheets containing data pulled from a microsoft sql server database based on that supplied date and some names hard coded into the program. I'm looking to change the program to pull the data from a …

Member Avatar for riahc3
0
207
Member Avatar for zubair khalil

this is java webservices code and please convert to C# webservices code, just change for me , i think you understand my probelm, and please do for me here is a code below , <div>import java.io.FileOutputStream; import java.io.PrintWriter; import java.net.HttpURLConnection; import java.util.Enumeration; import java.util.Properties; import java.util.Vector;</div> <div>import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; …

Member Avatar for riahc3
0
527
Member Avatar for nemoOooZ

Hi all, I have two xml files and I need to export the result of applying a left outer join between them into a list var result = from file1 in XDocument.Load(f1).Descendants("Contract") join file2 in XDocument.Load(f2).Descendants("Profile") on (file1.Element("CustomerAccID") != null ? file1.Element("CustomerAccID").Value : "") equals (file2.Element("Id") != null ? file2.Element("Id").Value …

0
64
Member Avatar for prasishiva

I need to display the column names from table in the dropdownlist of the application. How to display columns of table from database to application using c#?

Member Avatar for Bhuvan Ram
0
322
Member Avatar for kram54

Hi everyone ; i using to VS2008 -- devexpress V10.1.2 and MSSQL i make to same project .. my project setup is work my computer but same setup doest work to another computer error: ERROR DETAILS Following errors were detected during this operation. * [07.11.2012 02:17:57] System.Deployment.Application.InvalidDeploymentException (SignatureValidation) - Strong …

Member Avatar for Bhuvan Ram
0
778
Member Avatar for Jothe

Hallo good people, Am doing a project in which every time a delete record is done i want it to fire a trigger which then helps me capture who deleted the record and at what time this happened. All this details should be written in a flat file. Any help …

Member Avatar for Jothe
0
94
Member Avatar for meetarun007

I need to display cartons as when it is placed in pallets in C# desktop program. I need to display one by one, after the robo places the carton in pallet. i.e, initally the pallet will be empty. when the robo places first pallet i need to show carton in …

Member Avatar for kattypier
0
372
Member Avatar for xixi.li.7

I have a c# linq assignment to add a data from the csv file, here is my code: struct DailyValues { public DateTime Date { get; private set; } public decimal Open { get; private set; } public decimal High { get; private set; } public decimal Low { get; …

Member Avatar for Momerath
0
245
Member Avatar for Dino000

Hello! I'm creating an app where you can open Settings form and choose the background color, etc. This is how it looks like when one clicks on the color settings button: ColorDialog dlg = new ColorDialog(); dlg.Color = Properties.Settings.Default.bgdColor; if (dlg.ShowDialog() == DialogResult.OK) { Properties.Settings.Default.bgdColor = dlg.Color; Properties.Settings.Default.Save(); bgdColorLBL.BackColor = …

Member Avatar for Dino000
0
246
Member Avatar for spuriousgeek

Hi Everyone, Background: I have recently implemented the A* pathfinding algorithm in C# based on some pseudo code that I found. I need the algorithm to run as fast as possible and at present my code isn't quite cutting it. I understand that the heuristics used can have a big …

Member Avatar for spuriousgeek
0
1K
Member Avatar for itzchakri

HI All, I have a tabcontrol and three datagridviews on each tabpage. i.e tabpage1 have datagridview1, tabpage2 have datagridview2 and tabpage3 have datagridview3. Now when i scroll horizontally on datagridview1 to some postion remaining all datagridview has to scroll to that postion and vice versa..

Member Avatar for Momerath
0
142
Member Avatar for WolfShield

So, While I was working on a project I accidentally closed down my Form1.cs[Designer] window and I haven't been able to find how to open it again. I am using Microsoft Visual C# Express Edition. I have looked around in the program and haven't been able to find a way …

Member Avatar for Momerath
0
1K
Member Avatar for MARKONINI

Hello, I'm now year 12 in a programming oriented high school and I have some 3-4 months to complete a programming based project. I know SQL (completed "Introduction to Computer Science" course), PL/SQL (New to PL/SQL but I'm learning fast), C# (learned it 3 years and had good grades) and …

Member Avatar for Momerath
0
333
Member Avatar for CaptainNick

I'm pretty nee to all this stuff, I have no problems reading from the database but writing new records and updating fields etc is proving to be quite difficult. The following code is just meant to create a new record in a table, I started the field count at [2] …

Member Avatar for segal87
0
2K
Member Avatar for Ismail Issa

Hey guys. i am new to c# and i was wondering if you could give me a hand. it is about sets.So far i have 3 textboxes,one for set a one for b and another for result.i also have 3 buttons one for union one for difference,element found in a …

Member Avatar for ddanbe
0
113
Member Avatar for richjohn.bulante

hi there ahmm, in creating or implementing a face recognition in an system is advisable because we have an onlie poject wherein we must get the time in and out of a user that is register in the system. the problem is we do not have any background in terms …

Member Avatar for JOSheaIV
0
176

The End.