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

Instantiating values from main to constructor.

I am fairly new to programming. So I am slowly learning and enjoying it. I have this assignment that i have been working on the last 4 days now. I have gotten a bit far just stumped at the last step. I...

View Article


Disable Popup on Right Mouse Click

I am using VS Express 2013 with C#.I have a textBox with a MouseDown event.  I don't want to see the popup menu when I right mouse click.  How do I disable the popup but still get to handle the...

View Article


How to query a dataTable using Linq -- Where EmpName In ("A", "B", "C") ?

Let's say I have a dataTable (DataTable dt;) which gets populated with 100 rows of data of which one column in dt is called EmpName and is unique and dt contains 6 columns (EmpName, col2, col3, col4,...

View Article

How to use the following list as a datasource for a datagridview?

In the following procedure I load a datatable with 100 rows of data that include 5 different employee names (for the EmpName column of the dataTable).  Then I use a Linq query to retrieve only rows...

View Article

Name of thread

Hi,I give a name to a thread when i start one.But how can i loop through all the active threads and retrieve the thread with a specific name ?Kind regards

View Article


Accept "quit" command anytime

I am debugging a console application. Now I force stop my application by click the red square button. However some resources are not disposed.So I want to the program to accept "quit" command to quit...

View Article

C# and HTML pages

For some reason the events cannot be detected in C# whenever using a mouse and html page. Please, give one example, we are not interested in java scripts

View Article

.Replace Not Replacing

I have this code to find all query's in a workbook and replace the database name with the "new" database name.  All values are being passed appropriately with acceptable values and the code executes...

View Article


C# - SOAP webservice fails when string variable is too large

Hi everyone, just to post a problem that we've now identified which baffed 4 of us for a day.Long story, but we have a website which talks to a webservice that then talks to SSRS, and the webservice...

View Article


C# Assign a double precision decimal value to a DateTime object and specify...

Please can someone explain how to achieve the following in C#....Take a double precision decimal value which represents a date and time e.g. 41411.583333, instantiate a DateTime object and then specify...

View Article

Software License

I want my application can be run only three times in trial mode and after running three times my customer buys license and then uses the application for ever. How can I do this in C#?

View Article

How to convert plain text file to RTF file using c#

I have a set of license text files, which i need to concatenate and save as an rtf file. Can anyone help me how to convert text string to corresponding rtf file.

View Article

compile cpp programatically

Hi,Can I compile cpp files programatically like I do with c# *.cs and visualbasic *.vb ?I read that I have to invoke the cl.exe using the Process class. And the first step in doing that is to find...

View Article


Create a child task or thread

I have a project that is similar a producer/consumer pattern. The code:using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Text; using...

View Article

how to send bit to digital power meter by use cable

hello ,i  want to use the c# code to test whether my digital power and my simple program is  working or not, can anyone help me, teach me how to write the code.?

View Article


Issue resolving Sender and e

I've got an MDI parent window (archaic technology, I know, but I still gotta support it) whose menu has to be able to respond to changes made on child forms.  Controls which have selected text, for...

View Article

gcServer="true" and GCHandle madness

Hello,I have a server application that uses gcServer mode of GC. I'm trying to release GCHandle that is used in m_SocketAddressGCHandle field of SocketAsyncEventArgs to avoid pinning of data for a long...

View Article


C# visual studio 2010 Dice program

i want to create an application in C# that rolls a die 60,000,000 times and displays 1's,2's,3's,4's,5's,6's but im not how to start it.

View Article

Why Wont My Code Work Right?

Im Writing this code and im using labels and i cant get my code to go to the creator part instead of the Admin part Heres my codeusing System; using System.Collections.Generic; using System.Linq; using...

View Article

Application keeps looking for zip file in bin\debug

Hello,I wrote a C# Win-forms application that allows the user to import various .mp3.zip audio files, and utilizing the ICSharpCode.SharpZipLib library to decompress the files and copy them to specific...

View Article
Browsing all 31927 articles
Browse latest View live


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