Quantcast
Channel: Visual C# forum
Browsing all 31927 articles
Browse latest View live

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 Article


Is 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 Article


SerialPort 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 Article

If - 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 Article


Page.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 Article

Autoresolve 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 Article

How 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 Article


ShowForm 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 Article


Can'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 Article

General 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 Article

aspx 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 Article

C# 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 Article


Why 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 Article

Best 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 Article


Binding 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 Article

Compare 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 Article


Creating 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 Article

My 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 Article

Space 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
Browsing all 31927 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>