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

How to insert a tool in c# form that works as a light which goes on and off...

I have two methods. I want to add some tool.. (like a button, or an image or anything appropriate) that works as a light indicator. When I click on one of the buttons, one of the button lights up and...

View Article


How to communicate with microsoft lync and implement IVR system ?

Hiwe are working with asterisk to integrate ip telephony system into our applications. Now, I'm research on the net which can I implement the same project with Microsoft lync?! we want to implement...

View Article


How to Populate an XML Tree for specific files from the File System?

Hello, I'm kind of new to XML processing. I'm trying to populate tree view of specific files:static XElement CreateFileSystemXmlTree(string source) { DirectoryInfo di = new DirectoryInfo(source);...

View Article

ManualResetEvent replacement

I have a piece of code in a telephony application. private ManualResetEvent terminateCall = new ManualResetEvent(false); private void ChanResource_Disconnected(object sender, DisconnectedEventArgs e) {...

View Article

Code to Check FTP Directory Existence not working on Visual Studio 2013

I wrote the following code, quite a while ago, to test for the existence of an FTP directory.public bool DirectoryExists(string directory) { try { FtpWebRequest request = GetRequest(directory);...

View Article


access to the port com1 is denied c#

I use a virtual serial port emulator , but im my application in c# , it still told me that access to the port com1 is denied  and here is my app : public Emission(int i)        {...

View Article

using LINQ to populate a DGV

I have a datatable that I am quering using LINQ: var query = from form26 in form26table.AsEnumerable() select new { site= form26.Field<int>("site"), id= form26.Field<int>("id"), code=...

View Article

Reading multiple lines of text if it starts with a specific token

:61:140411C905282304,76S202002FT1410100293//3221288 3000024426 :86:/CODETYPTR/049 CBNINGLA NONREF SETL/1404111121+0000:90:140411C905282304,76S202002FT1410100293//3221288the code above is a swift...

View Article


shortest path Dijkstra's algorithm between n nodes with directed unweighted...

Hi, i want to find the shortest path for a graph  which bi direction unweighted. and also find indegree for each node. eg: assume a graph: A connected to B B connected to A, C , D C connected to B, D...

View Article


USING TRACKBAR TO CONTROL LED BRIGHTNESS

Good day to all, Please i need your support on how to solve this problem.I am using the Trackbar to control the brightness of Leds but the value of the Trackbar I am getting in(%) does not corespond to...

View Article

Make a button transparent

Hello. How can I make a button transparent? I know i can select color Transparent, but that takes the background color, and i want to be transparent all because i have a video behind it. What can i do?...

View Article

C# Filter large amount of random information?

I have thought About this but no solution.... :( I have a html document with over 1000 data.. Question:Need to get books that are broken : "Adventures of Huckleberry Finn, Chapters 01 to 05" +...

View Article

How to use Flags Enum in my code

I need to implement a xType (I call xType here) use Enum flag, the requirement is: 1. Bits 0 and 1:     0 - TypeAx, which is 00    1 - TypeAy, which is 01    2 - TypeAz, which is 102. Bits 2, is...

View Article


Cryptographic error when signing assembly (please assist ASAP)

Everyone,I'm getting this compilation error after adding a new .SNK file.  The .SNK has been added to the project correctly in the settings->Signing tab. Error 11 Cryptographic failure while signing...

View Article

Problem with my webBrowser HRESULT E_FAIL

Hello,  I have a little problem. When i go on a website and he return to me an error code (like 500 HTTP error), my webbrowser freeze.My code :private void webBrowser1_DocumentCompleted(object...

View Article


c# winform, conundrum game problems

i am trying to create a conundrum game in c# winforms but i have come across a problem my code at the minute should take a word form my word bank and the randomize the letters in it and display the...

View Article

Convert xls to xlsx and xlsx to xls

I've found ExcelPackage, a better library than Excel Interop API to create and mantain programatically excel sheets, but they are generated in .xlsx. Most of people that will see the files have only...

View Article


Column index values from LINQ query

I have the following LINQ query built: var query = from form26 in form26table.AsEnumerable() select new { siteid = form26.Field<int>("siteid"), partid = form26.Field<int>("partid"),...

View Article

Press button on website via webBrowser

I have some problem with click on button on webPage, wich have lot of buttons with the same name, but that which I need to press haveonclick="alleyAttack('some ID')".Tell me please how correct fix this...

View Article

LocalDB connection String

I have created a LocalDB within visual studio to be included into my project but I am getting an error. The error an connection string is below:A first chance exception of type...

View Article
Browsing all 31927 articles
Browse latest View live


Latest Images

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