Class definition help please
I got a class that contains countries and the countries contain states and the states contain cities. i populate the class with a XML file. i use this class as an itemsource for 3 comboboxes. up to...
View ArticleParse decimal without decimal point
Hi,I need to parse a price given as a string, with two decimal digits, but without any decimal point. E.g.:"12345" >> 123.45"1234500" >> 12345.00My preferred solution would be something...
View ArticleForm unresponsive
hi there i am starting a thread and updating form element but following code is making form unresposive please suggest what i am doing wrong here thanks private void StartProcess() {...
View ArticleHow to edit,delete data in datagridview using edit,delete link in datagrid
I have write this code for enable the edit & delete link in datagirdview but how can i edit & delete the data using these links.Please any help public partial class datagridview : Form {...
View ArticleMeet some difficulty when using hashtable with parallel.foreach
http://blogs.msdn.com/b/pfxteam/archive/2010/03/02/9971804.aspx 1. Unable to cast object of type 'System.Collections.DictionaryEntry' to type 'Service.Stock'. 2. how to get key...
View ArticleHolding multilayer data
Hi, i need help with holding multilayered data for every player on the server side.Basically in JSON it would...
View ArticleSending and receiving strings over network
I'm working on a game project with XNA 4.0 and I am stuck on the lan part. I only need to send and receive strings over network. This is the code :public class MultiplayerState : IState { Game1 game;...
View ArticleCalling legacy C library from c#, usafe, fixed, two return parameters
I cannot find a way to resolve this.The dll routine is written in C. It accepts one input and returns two values.In the code block that references the routine, as written I get:"Cannot pass 'Socket'...
View ArticleHow to passing the value from reader to other Class ?
Dear All,i had query out the data from db in text box using reader, May i know how to pass the value in other Class ?For example, based on below code, after i query the data from DB, then i click...
View ArticleDoubleClick selected Row in DataGrid
Right now when I double click on a selected row in my DataGrid it populates a second datagrid with 2 rows of data instead of just the one row that is clicked. What I am trying to do is when a Row is...
View ArticleReading or loading a single column from MS Excel into a combobox in C#
Hi I am trying to populate a column from excel sheet into a combo box so that when I select the drop down list from the combo box populated from excel I am able to click a button to open a new message...
View ArticleInserting multiple rows into database using c#
Hi,I have a web form with a customer id and a few checkboxes with different products (productid) and when a user checks the checkbox he must also enter a date for that product. I need to basically do...
View Articleasynchronous task in asp.net 4.0
I've a webpage1 with a Button1.protectedvoidButton1_Click(object sender,EventArgs e) { Button1.Text="Start...."; System.Threading.Thread.Sleep(50000); Button1.Text="End !";...
View ArticleReorder the Fields of a Delimited comma txt File
how to reorder the text file based on the value of the combo box using c#like so Delimited comma txt<a>,<b>,<c>,<d>,<f>,<g>,<m>the value in combo box like...
View Articlec# clean the local saved password
Dear Exprt,How to removed saved password from credential manager. via C sharpSupport@Mytechnet.me
View ArticleAllow user to edit values in a pop-up window or context menu like VS variable...
I'm pretty new C#, but have been coding VB.net for some time. I have a combobox loaded with values and I want the user to be able to cause a pop-up window to display that shows some properties of the...
View ArticleIndex was out of range, must be non-negative error
I am trying to get the Print Preview of this database that shown on DataGridView like the image below: But, when I clicked the Print Preview when the database has been shown on DataGridView, I got...
View Articlereportviewer control causes VS2013 crash
VS2013 crashes when draging a reportviewer control to a form in VB and C# project. Win8.1 OS. Am I the only unlucky one or had anybody this similar issue? Any suggestions?
View ArticleMixed mode assembly is built against version 'v2.0.50727' of the runtime and...
Hello, I have a .Net WPF Application in VS 2013. which contain 25 project. i am using following dll as reference in one of them. 1. Microsoft.SqlServer.ConnectionInfo 2....
View ArticleVisual Studio [Shift + F12] to c# code
Hi,In Visual Studio 2013 if you select a class or method and then hit Shift + F12, visual studio looks for all references of that class or method. You get the full list of how and where it is used.My...
View Article