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

Thread running correctly but not waiting for user input!

Hi everyone!I've made a database application. When a user chooses to run a report, it takes time to load up. In that time, the user cannot click anywhere else otherwise the program says its not...

View Article


Register COM interop , creating an Interface?

Hello All,This is my very first time building an application which requires registering COM interop. The output of this application should be a library so as to load it into a different XYZ application...

View Article


Using Asp.net & C# sql server if the row exist it update if the row new won't...

I am working with Asp.net and C# and using SQl Server, I insert a row in one plase and works fine but when I try to update the same row it woudn't do anything, I try to update an existing row it works...

View Article

Reading a mailbox

Hi,I need to maintain an old C++ implementation that reads from a mailbox by using the address of the mailbox, the mail server and the credentials to access to the mailbox.I'd like to know how convert...

View Article

Image may be NSFW.
Clik here to view.

Microsoft TechNet Wiki C# Guru - Winners for January!!

The results for January's TechNet Guru competition were posted!http://blogs.technet.com/b/wikininjas/archive/2014/02/16/technet-guru-awards-january-2014.aspxPost your FEBRUARY contributions...

View Article


Get 64 Bit Registry Value

This is my code that works fine on 32 bit computers: public static string GetRegistryKeyValue(string keyPath) { using (var shell = AutomationFactory.CreateObject("WScript.Shell")) { var keyValue =...

View Article

printing - terminal services

Hi Guysquick question , our application allows printing some internal documents for that we store printer names user selects for easy of use which works fine. But having bit of an issue with printing...

View Article

Printing to network printer from windows service

I have created a windows service with C# that is running as Local System. I would like to print from that service to a network printer. For printing the service should use the default printer for the...

View Article


Webresponse Statuscode

I have read several posts in a variety of websites that say catching a 404 error in a WebResponse simply means assigning the webresponse.statuscode to a variable. Fine.But when I write that line into...

View Article


Fade in an object C#

Hello, I have a label that I want to fade in my Windows Forms Application.Is there a library that could help achieve this thing?

View Article

Delegation - Is my understanding correct?

Hi guys,I've been programming for years but I've never really used delegation but I've seen it in Microsoft's code, etc.I've read a few guides, documents, etc on http://msdn.microsoft.com - which is a...

View Article

Visual C# 2010: left click on a treeview note brings up a dialog box

I have a treeview control placed on a form, populated at design time. Here's what I would like to have happen: at run time when user clicks on any node, a dialog box opens with more information(created...

View Article

Convert text to xslt

Hi,I want to convert a txt file with variable schema into an xslt file. Here is the example of a file:ID   Number   City1   23   New York2   54   ChicagoThe fields are tab separated and the number of...

View Article


Namespace not found

Using Visual Studio 2012, I have a C# solution with several projects. These projects belong to one of two namespaces, say Alpha.Beta.Gamma.Delta and Alpha Beta.Gamma.Tau. The default project in the...

View Article

search on a textbox

Hello everybody , well , i have got one textbox which is multiple lines where i want to search , another one to write what i want to find out , a button by clicking on it search progress starts and a...

View Article


Demonstrable bug in C#

I've found a demonstrable bug in C# regarding at least the boolean XOR operator.Consider the following code:int i = 381; int j = 529; j ^= i ^= j; i ^= j; Console.WriteLine("i=" + i.ToString() + "; j="...

View Article

Accessibility of parent's class fields from child class

So I've got two classes as follow :public class A { public int a; } public class B : A { public int b; } when I create an Istance of B, i'd like to be able to use ONLY the fields in the B child class,...

View Article


Image may be NSFW.
Clik here to view.

Trying to read from text file and put into a dataGridView

Hello,I am trying to read from a text file that contains just three items per row: "Name1,ProfileID1,GroupID1". I have already set the column headers of the data grid view to Name, Profile ID, and...

View Article

Textbox search and highlighting

Hello everybody .Well , I want to make an app to search , highlight and write the number of results, consists of :richtextbox :  the text i will search on it and highlight the results.textbox      : to...

View Article

Getting Current Row Index from DataSet

how can i get current row index in dataset as i have used primary key for dataset and when same key is enters it replaces itat same position and i want to know that position in dataset.Thanks

View Article
Browsing all 31927 articles
Browse latest View live


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