4,588 Topics

Member Avatar for
Member Avatar for MasterBerd

Hey Guys! Below is my code of Battleship game. I keep getting "Process terminated due to StackOverflowException." error. It keeps pointing to [CODE] char[,] Grid = new char[10, 10]; [/CODE] and i have no idea what it's asking to fix. Please help me. Thanks! [CODE] using System; using System.Collections.Generic; using …

Member Avatar for MasterBerd
0
1K
Member Avatar for sourav_kings

Hi experts, I am trying to figure out code working for an auto testing as follows: (in C# code, SQL database used) 1. Check whether database (having credentials) is working fine or down? 2. If working, run a select query in it & check for succesful execution. 3. In any …

Member Avatar for jfarrugia
0
145
Member Avatar for dashby

I have a bmi application that was written in Java via netbeans but now I am trying to convert the Java to C#, I have pasted a sample of my Java and under that what I have so far for my C#. I would be grateful for some help with …

Member Avatar for dashby
0
183
Member Avatar for drax12

hey everybody, i'm developing a small utility to change chrome browser search provider to some thing else (ex. google to yahoo,bing,etc...).i want to do this programmatically using c#. its settings are located inside C:\Users\"username"\AppData\Local\Google\Chrome\User Data\Default\ most of the settings are saved in preferences file.i could not find how to change …

0
72
Member Avatar for Sandmann

Hi there!... i was seeing some codes in Python, but i can't understand it, so... i really don't want learn phyton, by that reason i want to know some things (specific things) for try convert it, now... if someone can convert it for me, i'll be sooo glad :P. Here's …

Member Avatar for vegaseat
0
165
Member Avatar for wyzbs

Hi guys, I have a windows form frm1 that calls another form frm2 by the following code: [CODE] this.hide(); frm2 new_frm2 = new frm2(); new_frm2.ShowDialog(); this.Close(); [/CODE] it takes about 5 sec for the frm2 to show so I'd like to use waitcursor. I found that the waitcursor can only …

Member Avatar for skatamatic
0
208
Member Avatar for vuyiswamb

Good Day All I have a Generic function that in my Static Class. i have this Class in Silverlight [CODE] public static BitmapSource LoadImage(Byte[] imageBytes) { BitmapImage bmpImage = new BitmapImage(); MemoryStream mystream = new MemoryStream(imageBytes); bmpImage.SetSource(mystream); return bmpImage; }[/CODE] Now this looked fine for me until i had to …

Member Avatar for vuyiswamb
0
2K
Member Avatar for papanyquiL

Hi, here's the site I'm currently working on: [code]http://www.johnernaut.com[/code] Under the 'contact' tab I have some behind the scenes C# code that SHOULD send me an email whenever the submit button is pressed and all fields are validated. This isn't working for some reason. The host I'm using is GoDaddy. …

Member Avatar for aspproject
0
713
Member Avatar for dmizz002

Hi all, I am quite a beginner to C# and ASP.NET development so if you can help out it would be really appreciated: I wish to build a small library of custom functions to be used throughout the entire website. For example say I need to build 5 functions which …

Member Avatar for aspproject
0
174
Member Avatar for himvj

Hi, I want to know while creating setup how to put serial key form and validate it during the setup installation in c# vs2005. Thanks in Advance.

Member Avatar for abelLazm
0
369
Member Avatar for apanimesh061

[CODE] using System; using System.Reflection; using MathWorks.MATLAB.NET.Arrays; using MathWorks.MATLAB.NET.Utility; [assembly: System.Reflection.AssemblyVersion("0.0.*")] #if SHARED [assembly: System.Reflection.AssemblyKeyFile(@"")] #endif namespace dotnet { /// <summary> /// The dotnetclass class provides a CLS compliant interface to the M-functions /// contained in the files: /// <newpara></newpara> /// C:\Users\User\Documents\MATLAB\waveCS\wavread.m /// <newpara></newpara> /// deployprint.m /// <newpara></newpara> /// printdlg.m …

Member Avatar for abelLazm
0
692
Member Avatar for dotancohen

I am replacing some very small bash scripts with Mono (C#). I have noticed some differing practices in C# tutorials online regarding convention. I'd like to know the reasoning behind them. If I should break this question up into multiple questions, let me know. 1) Use a namespace? I see …

Member Avatar for dotancohen
0
144
Member Avatar for Nurder

Hi everyone ... I've a problem with fill color. I just want to fill a part of it. For ex.: if we have a face with eyes and red mouth, i wanna to color each part of the face when the user click down the mouse. Thanks for your advice....

Member Avatar for Nurder
0
354
Member Avatar for drax12

Hey i'm developing a role based user authentication in my desktop application.i need to add few roles like Admin, operator, etc... i can get users role if i have user name of the logged in user.but after logging in the username cannot be retrieved again.So it has to be saved …

Member Avatar for jfarrugia
0
1K
Member Avatar for DaemonToad3

Greetings to all. I'm using visual C# express, just starting to learn C#. I want to build a reminder system for a console App, how do I go about it? I want to be able to check the DateTime and for each different date read the string attached to it.

Member Avatar for DaemonToad3
0
116
Member Avatar for judithSampathwa

hi i am creating a login page in C#.net windows application and i have a remember me checkbox in the login interface. can some one give me a tutorial to code the remember me check box in the C# windows application thank you

Member Avatar for C#Jaap
0
2K
Member Avatar for samueal

HI, I am new to webBrowser tool in C#. If i use this code to navigate, and get the page source. Webbrowser1.Navigate("http://www.google.com"); HtmlElement he = Webbrowser1.Document.Body; string pagesource = he.InnerHtml; But i am not getting the webbrowser fully loaded and i am not getting the full pagecontent. Help me?

Member Avatar for sandeepparekh9
-1
280
Member Avatar for apanimesh061

[CODE] using System; using System.Diagnostics; using System.Threading; using System.Runtime.InteropServices; //using System.Windows.Forms; using System.Reflection; using System.IO; namespace Record { /// <summary> /// Uses reflection to set up test information available in the Assembly. All classes /// containing a public static method named TestProc will be enumerated. /// </summary> public class MainTest …

0
46
Member Avatar for SLaSH1Z

can i find out how much memory(pysical) a specific process(application) will consume befor launching it? i wrote aan app that manage the memory usage and say i have 10% memory left to use i want to predict approximantly how much mem is needed for an app befor launching it... and …

0
65
Member Avatar for thato21math

can someone show me how automatic propeties work um learning C# and its kinda of confusing since i program better with java

Member Avatar for ddanbe
0
46
Member Avatar for apanimesh061

[CODE] public class WAVEHDR : IDisposable { public const int whdr_done = 0x00000001; public const int whdr_prepared = 0x00000002; public const int whdr_inloop = 0x00000004; public const int whdr_endloop = 0x00000008; public const int whdr_inq = 0x00000010; public const int wf_PCM = 1; public IntPtr lpData = IntPtr.Zero; public uint …

Member Avatar for abelLazm
0
203
Member Avatar for brentgabel

Hello Everyone! My problem is this. I have a VBscript encrypting passwords using capicom.dll RC2. I want to use C# to decrypt this password. Which I can't get to work for the life of me. Keeps coming back saying 'Specified key is not a valid size for this algorithm.' (but …

Member Avatar for skatamatic
0
576
Member Avatar for ChrisHunter

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 …

Member Avatar for ChrisHunter
0
121
Member Avatar for tawboiid

I am trying to read a long integer value from an Access database, do some math to the number, and save the result back to the database. I've never had a problem doing this with VB6, but with C# it is throwing an error when it tries to Update the …

Member Avatar for tawboiid
0
2K
Member Avatar for apanimesh061

I have a .wav file .... I want to plot the Time-domain signal and then its Fast fourier transform (fft) using the matlab commands. Please Help ... ! :) Thanx

0
79
Member Avatar for apanimesh061

This is a program for recording sound from an Audio Input device. I have taken help from the MSDN website ..... ! I did as they had mentioned .... [CODE] //wave.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Runtime.InteropServices; namespace Record { public class wave { …

Member Avatar for apanimesh061
0
733
Member Avatar for Sajeelchaudhry

I am just trying to get some information. Currently we have a C sharp code,looking into a trading, which drags real time date of a stock and stores it into a data base as a CSV file. However I require this live data to be autopopulated into an Open excel …

Member Avatar for jfarrugia
0
140
Member Avatar for music613

I need to tackle the question of threading in Visual C# application development. In its most basic use, I will need to "branch out" to SQL SPs (for example), but need to be able to inform the user that "I'm doing something" - such as the following outline: 1- user …

Member Avatar for abelLazm
0
304
Member Avatar for apanimesh061

What libraries do I require so that I can make an application for recording a sound through the microphone ? I there is something else please do let me know ..... 'cause there are code snippets available on the net .... but I wish to develop it myself ! Thanx …

Member Avatar for cshgurunot
0
88
Member Avatar for ahmedshayan

[CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Data.Sql; using System.Data.SqlClient; using System.Configuration; using System.Linq; using System.Text; using System.Windows.Forms; namespace Eventmanagement { public partial class Registration : Form { SqlConnection aConnection; string firstname= string.Empty; string lastname= string.Empty; int aid; string date = DateTime.Now.ToShortDateString(); SqlDataAdapter da = new …

Member Avatar for abelLazm
0
157

The End.