4,588 Topics
| |
I need help with .net c# screen scrape. I can't seem to find an example in c# that works. I have this one in VB that wors but feel like an idiot bc I can't convert it correctly... <%@ Import Namespace="System.Net" %> <script language="VB" runat="server"> Sub Page_Load(sender as Object, e … | |
Hey guys, I've struggling to implement this solution for about a week now. We are using word templates that have inline shapes drawn inside. The inline shapes are used as a place holder to programatically insert image bar codes into the document. Previously we were using Ms.Interop.dll libraries to achieve … | |
for example. name of field: f1 = "field1", f2 = "field2", f3 = "field3", f4 = "field4" how can I update the value of f2 and f3 without changing the value of f1 and f4. f2 = "new field2", f2 = "new field3" the new value of fields are. f1 … | |
Hi Im a newbie in asp.net, im a php programmer though, and i've been working on a pop up div with a search engine on it, in php i have no problem working with json but in asp it took me already two days to find a similar problem, yet … | |
I am trying to make a MP3 player using axWindowsMediaPlayer, and I am running into some issues. When the song stops playing, it is supposed to go on to the next song in the list, but instead it locks up. I don't know how to fix this, I tried googling … | |
Hi , i need some help in completing a small task . " How to insert,update,delete record in data grid view using inline i.e (suppose if we update a record in the data grid then after click on the next row the data which is updated should be save directly … | |
i want to find efficency of cluster...I am using three clustering techniques kmeans ,dbscan ,hiearachical.How can i calculate best cluster am implementing in c# | |
I have 2 buttons name as "Build Start" and "Build Stop". what i want is when i click the stop button it will stop the execution of Building of all the projects. I have tried the Backgroundworker class but when i use the RunworkerAsync() function it will build only one … | |
Do we have any TDD experts here? I have some questions but need an expert. | |
i want to do the following :- transfer file from client to server using sockets in a windows based application. I am stuck at the server side code. Server side : ------------- my problem : how to receive file from multiple clients and save file on server c:\folder following is … | |
Snap Shot Take Automatically in Particular Interval Store in Local PC D-Drive in c# | |
Hi guys, I have to create a C# application which is able to mask images but I don't really get on with it... I thought I will use this example for the project: http://www.camera-sdk.com/p_248-how-to-implement-image-masking-in-c-onvif.html Any ideas or experiences? Has anyboby here used this? Any help would be appreciated. Thanks!! | |
Hi all, Want to write some data from C# to Excel. Code enough I thought, here at DANI's and on the web. So I managed to come up with this : [CODE=csharp]private void DoExcel(string Fname) { Microsoft.Office.Interop.Excel.ApplicationClass excel = null; Microsoft.Office.Interop.Excel.Workbook wb = null; Microsoft.Office.Interop.Excel.Worksheet ws = null; Microsoft.Office.Interop.Excel.Range rng … | |
private void Form1_Closed(object sender, System.EventArgs e) { // Create a PDF document object PDFDocument doc = new PDFDocument(); // Creates a PDF page PDFPage page = new PDFPage(this.Width, this.Heigh,PDFMeasurementUnit.Points); page.MeasurementUnit = PDFMeasurementUnit.Points; // Parses controls on the form for (int i = 0; i < this.Controls.Count; i++) { Label label … | |
I am trying to solve a simple problem. But I am stuck by a simple problem I am confused by "context" in c#. So for this simple problem I am solving Euler problem 1. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; using System.Timers; namespace Euler … | |
I want to deploy a database application in C#. I should write a script for creating a database and its tables. The script should work only at install time and setup the database automatically. Or tell me if there is another better way to do that. Actually I wanted to … | |
I am trying to store a value from a selected row from one table into another. My code is as follows. string CustomerID = textBox1.Text; SqlConnection con1 = new SqlConnection(ConfigurationManager.ConnectionStrings["ConString"].ConnectionString); con1.Open(); SqlCommand myCommand = new SqlCommand("Select CustomerID, Name from TableCustomer WHERE (CustomerID like '" + CustomerID+ "')", con1); SqlDataReader rdr … | |
I made client & server programs in C# based on this example code. c# client program: IPHostEntry ip = Dns.GetHostEntry(tbServer.Text);//"MyComputer-MSI" string addr = ip.AddressList[0].ToString(); TcpClient clientSocket = new TcpClient(addr, 1234); At the last line above, I got the message: An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in System.dll Additional information: … | |
recently ive seen video of a man which showed on how A* works, that is some algorhythm for pathfinding in 2d in games, to show this he made a game in c# (visual studio only), where he could explore the "maze" board in 3d and could see the red square … | |
hello, i m working on connecting sqlData with C# form showing data detail on text boxess like ID,name,occupation.and doing the search by entering the ID on textbox then clicking the button to show the details i'm just a beginner in C# so i did the the coding like this and … | |
Hi,I would like to do a sorting when i had add new record,the new record must shown on the top of datagridview.It will always show latest record on top of the others old records.I had try several method that found from website but still cannot work!!! **code for load database … | |
Hi, i am developing an application in C#,i have create database1.mdf by right clicking on my project,add item then creating a database. my intial problem was,i was able to execute query correctly but those modification wasn't reflected in main database finally after lot of surfing i changed copy to output … | |
Hi, in my project i need to update the attn_dateTimeOut in database.After i updated it will automatic delete the specific row record that had been updated. I had two question: 1) in my database there are a few table is assign not null."attn_dateTimeOut" is a table that haven insert any … | |
What is the `advantage` and `disadvantage` of the two loops? I don't know their `deferrences` to `each other`. the truth is I don't know where will I use the `for loop` or the `foreach loop`. | |
Good night dani people. I'm current developing a project that needs an web API to list all directories and files, and also provide a method to search by name. I already got it working with Sytem.IO.DirectoryInfo at real time. //Folders foreach (DirectoryInfo info in _dirInfo.GetDirectories()) { } //and files IEnumerable<FileInfo> … | |
Hi, I have two projects; First one is a asp.net web project and the second one is embedded http server library project. Embedded http server project is taken from : embedded http server project I want to save a video file from user's local to user's shared storage. I'm getting … | |
I need a timer of some sort so that my program will send a batch of files every 10 seconds. Not sure if I can do this using threading? or maybe theres some other method. Just looking some advice as to what would be the best option. At the minute … | |
I’m working on a little matrix class for my own use and because for me, it is just fun! Now I noticed a lot (10 and more) of the methods always seem to follow the same pattern: - Iterate over the rows - For each row iterate over the columns … | |
having problems with this codes. When tested it keeps giving me the error message "Your message failed to send, please try again. " using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Net.Mail; using System.Net; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, … | |
Hello, I am currently doing my 8th sem project,my project is tracking of surgical instrument in hospital. what i am doing is i will be storing all the details of instrument which are used in operation, in local database. So after operation i will be sending all the instrument name … |
The End.