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

how do i change the background image of a button from another form

Hai i have problem i want to change the background image of button that is in another formi did this but isnt working// this is the form that im using form1   menu_ratos f4 = new menu_ratos();...

View Article


what is c#

I am new to dotnet. what is c#

View Article


Cloud Computing

We are working with MVC4,Sql Server. Our client has a private cloud that cannot be accessed by us.We are planning to use another private cloud to host our application on that.Is Windows Azure...

View Article

How to extract the Object from Clipboard in excel 2010 64 bit.

Hi,In my C# application extracting the object present in excel 2003 32 bit is worked by using following code.IDataObject iData = Clipboard.GetDataObject();if (iData != null){    string name =...

View Article

Solving trigonometric equations

Hi ! I am developing a desktop application in c# , intending to solve a trigonometric equation that is stored in a string by a user. string s ="cos(x)+ln(x)-e^x";I want  my application to perform...

View Article


Insert html values into datatable

HiI have a web page that generate some info.I have extracted this info from html code of this webpage. I created a datatable with 5 columns and I would to call each element to be insterted in each...

View Article

Remove password from Word documents

HI!!! I am using this code to remove password from word documents http://ishwor.cyberbudsonline.com/2013/01/remove-writeedit-protectionenforcement.html?showComment=1374659141159#c1604586394111748506...

View Article

2 Classes that share same event handlers

Is it possible to have 2 classes that are slightly different but have the same event handlers?  The classes are quite large and there are quite a few EventHandlers.  Instead of having duplicate copies...

View Article


Any Method in Tracking the index of a value of a variable within a for loop

Hias the title states I just want to know is their anyway to find the specific index of a local variable when in iteration.currently I have a variable which gathers a calculation between two times in a...

View Article


Creating and populating object dynamically - Help

Hi,I am trying to send a sales order to an external web service.  Issue is the lines get overwritten so only the last line gets sent to the web service.How to make sure all order lines are packed...

View Article

Scope of try command in Teradata using loop

Hi,  I'm sure many of you understand variable scope and encapsulation in dot.net so I apologize, I'm self taught and though I consider myself an intermediate c# coder now, I deal with this stuff as it...

View Article

Roman Numerals to Arabic Numerals Project

Hello in my class we are creating a program that converts I,II,III,IV,V to 1,2,3,4,5 using if else if as one part and switch as the other part. If anyone could help i would appreciate it because im stuck.

View Article

Fetching currency value from database and store into salesforce Currency Field

Hi,I have one currency column in MS Access.I am fetching the value from database. But i didnt update in Salesforce. How Can i do this?...

View Article


c# - How to create a shortcut combination of "Ctrl + P"

I am working on some shortcut keys but one of the following won't work (unable to trigger Ctrl + P)Here below is the codeprivate void grid_KeyDown(object sender, KeyEventArgs e)        {...

View Article

system.windows.draw, shapes, media, etc

I am in the processing of learning C# using John Sharp's Visual C# 2020. I'd like to learn more about system.windows.draw, ..shapes, ..media etc. AM ashamed to ask such a dumb question - where do I...

View Article


Error converting data type nvarchar to numeric. (sp runs fine from SSMS)

I have a program that's trapping this error  when calling a SQL 2005 stored procedure.  The stored procedure runs fine from SQL Server Management Studio.  The code for the function is shown below.The...

View Article

How to extract the Object from Clipboard in excel 2010 64 bit.

Hi,How to extract embedded the object(*.m File) present in excel file(excel 2010 64 bit) using c#. Any help would be appreciated.Thanks and RegardsSathish, 

View Article


SMTP Google Gmail

Dear all, I am using below setting but find the error: do you know how to solve???publicstaticstring mailHost="smtp.gmail.com";       publicstatic string mailHostPort = "25";       publicstatic string...

View Article

Windows Form: How do I record textbox to a string only after a button is...

private void Form1_Load(object sender, EventArgs e) { label1.Text = "Input: "; string Playerinput; button1.Text = "Enter"; richTextBox1.ReadOnly = true; richTextBox2.ReadOnly = true; MainChar Player =...

View Article

Build is success, but run test fail with error "Exception from HRESULT:...

Result Message:Error calling Initialization method for test class CodedUITestProject2.CodedUITest1: System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT:...

View Article
Browsing all 31927 articles
Browse latest View live


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