c# best way to improve
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace OwenJ { class Program { public static int cusCost; public static int...
View ArticleIs there a free web service on SSL for testing purpose?
I know there are lots of free "http" web services out there like currency converter. But is there a free "https" web servcie?If not, how can I test my client code, which is intended to call a "https"...
View ArticleSerialPort Data Receive gradualy slowing
hi, i am in product which interact between software and hardware. I have a windows service which receives data from serial port and save as xml file. Another service reads this xml and insert the data...
View Article'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
I have created a WPF application using VS 2012. it working fine in my system and some other system also.But when i run the project in some other system i got exception like this."An unhandled exception...
View ArticleIf - Else in Visual Studio 2010 (Windows Forms App.) - Else is not working.
Hi!I'm working on WFA and I trying to show a message box when the user enters username/password wrong but I can't find where is the mistake. { if (textBox1.Text == "usario" &&...
View ArticlePage.AutoSize property doesn't change
Why is there no effect of this command in C#?AxMicrosoft.Office.Interop.VisOcx.AxDrawingControl canvas; //... Visio.Page p = (Visio.Page)canvas.Window.Application.ActiveWindow.Page; p.AutoSize = true;...
View ArticleAutoresolve dependency to the mixed mode assembly with the correct architecture
Hi,I'm writing an architecture independend C# assembly which references the SharpSVN dll. SharpSVN is mixed mode, but exists for both x86 and amd_64 architectures.Now, it seems that I did not find a...
View ArticleHow to copy a file from one Remote server to Another using C#
Hi Experts,Please give an idea to implement in C#We have two servers one is Source and one is Destination.I want to copy the files from source to destination servers using the C# codeThanks,Abasaheb...
View ArticleShowForm in BackgorundWorker
Hi,I am trying frm.show(); in backgroundworker1_Dowork But I can not see anything without new form borders (i.e. no content inside - just a blank white form) if I use frm.showDialog(); then I can see...
View ArticleCan't change controls from other class ?!
So I've made an event which execute some code that adds a item to a listview, but it doesn't add an item to a listview nor I can't change any other controls on the form like label etc..But it does work...
View ArticleGeneral question concerning Application- Class, in use with WPF
Hey!I have a WPF project WITHOUT the app.xaml in Visual Studio and I am trying to control my application with a custom made class. This looks something like that: class ablaufSteuerung { [STAThread]...
View Articleaspx page using c#
Hi,I'm a novice at this, not sure if this is the most appropriate forum so apologies if not.I am trying to build a string in a web page on sharepoint 2010 using output from a query made against an sql...
View ArticleC# program keep on running despite no error
Am working in a project where i should give a crystal reports RPT file as input and get the properties of that report.But am facing a problem in loading the report itself so i have used isLoaded()...
View ArticleWhy do we need to use Abstract Classes & Interfaces ??
In OOP why do we need to use abstract classes, Interfaces . kindly explain with real time examples.Fahad Ali Khan
View ArticleBest Way To Obtain CheckBox Data?
I have a form full of 48 check boxes. Dependent upon ticked or not, they all will submit true or false into a database. I only want 8 to be ticked for them to submit and I have been having trouble...
View ArticleBinding ListView to database
I have a problem with binding Listview to my database using entity framwork. This code only shows the first row of the table but the records do not show:var item = (from p in db.tbl_film select...
View ArticleCompare Textbox with SQL
Hello. I have a Textbox. There the user inserts a text that it has to be compared with a DataBase. If it's true it has to create a new GridView and show all the results of the consultation. My code is...
View ArticleCreating an PowerPoint process is throwing COM Error "Creating an instance of...
Hi,When I try to create an PoerPoint process using PowerPoint.Application pptApp = new PowerPoint.Application()I am getting the folowing error.Creating an instance of the COM component with CLSID...
View ArticleMy Program Has Stopped Working!
My program was working fine but suddenly this error is preventing me from compiling and I can't figure out why! Error1 A field initializer cannot reference the non-static field, method, or property...
View ArticleSpace invader game
Hello everyone. I'm about to make a space invader game, and I've forgotten how to get the shipet not to disappear from the screen. I would be very happy if someone could help me.
View Article