What am i doing wrong in this console application using methods
So I am super new to programming and I was trying to write a program from my book. Here is the assignment: Write a program that allows this school club ability to determine a few things about their...
View ArticleUsing assignment operator to change field in an instance
I am creating a "group" class that represents an integer (number of assigned group). Is it possible to change a single field using an assignment operator? For example, lets say I have some...
View ArticleError: CHKDSK cannot continue in read-only mode
Hi All,I'm getting "Error: CHKDSK cannot continue in read-only mode" message when I run the chkdsk.exe programmatically. But the same will work properly If I run through command prompt.Code snippet for...
View ArticleLimited number of application launched in Session 0 (UI-less) by the Same...
I have a windows service that runs in session 0 (UI-Less). it will be used to launch additional applications in the session 0 using Start() method with the instance of Process, the instance of process...
View ArticleUse sample XML file to generate c# code with values from XML file too
I have an xsd and generated classes from it. I also have a sample XML file with values. Is there a way I can automatically generate/write a c# method that could instantiate classes and assign the...
View Articlepassing strings between functions
Hello i have the following code that takes a date from a text file and format it.The file Contains several lines 1......Date.....2......3........END4......Date5.....ENDI want to take the Date from line...
View ArticleHijacking ftp pipeline
Hi, I have a requirement to have my own ftp handlers to fetch content from a custom web server.I did a similar thing for webdav requests and I made use of Ihttpmodule interface to extend the...
View ArticleXmlDocument KML Placemark Polygon Coodinates
I have a simple kml file where I select a specify node and replace the coordinates in the placemark xPath, However I need to add the polygon to the kml placemark path. So there will be two identical...
View ArticleProblem to get difference of two dates
Hi, I get 0 to Age0 by these DateTime zeroTime = new DateTime(1, 1, 1); TimeSpan span = DateTime.Now - DateTime.ParseExact(tb_birth.Text.Trim(), "dd/MM/yyyy", CultureInfo.InvariantCulture); Age0 =...
View Articlec# send text to a external program via api.
ok i been looking up how to send text via my program to a external program text box but i cant seem to get it to work at all :( this is the code i have got so far. class Api_calls {...
View ArticleHow check these records and set a local variable after evaluating all of them
The code below should set the verificationsComplete bool to true only if the status of every record is "Green". The approach below will ignore previous records, set verificationsComplete and exit the...
View Articleconnection string issue
Hi dear,I'm using this connection string. Can u reveal whats going wrong in this? <add name="LUCKINDIA" connectionString="Data Source=192.111.150.130:1433\luckindia_db;; Initial...
View ArticleSOLID and Design Pattern
From your exeprience when you have worked with lots of project, how far have you used SOLID and design pattern? I have worked C# project from school and sparetime using concept N-tier and MVC but I...
View ArticleA question about C# using
Hello, I copy the necessary files to its path.(mscoree.dll , System.dll and more) But it run need to setup .NET Framework. That's important! How can I do for? I only want to Programming in C#!(My...
View ArticleHow come my data is not updated into the gridview by using this code.....
Hi, need help about this one.I have just starting learn c# by youtube. I have followed all his command, difference is just the number of the text box and cells number. Yet, when i am testing, i want to...
View Articlehow to install Adesso av-200 video capture express
Hi,how to install Adesso av-200 video capture express
View ArticleOpen Form2 to specific record based on selected row of DataGridView on Form1
Hi guys! I have a form called StudentsList with a DataGridView on it. I would like to do the following: When I doubleclick on a row, the formStudentsListDetails will open to the specific record...
View ArticleMake Dynamic Scripting for Insert, Delete, Update SQLite query in C#
Hello Sir/Madam,I have created one windows application for Batch Report using C# in which i am logging the data into Sqlite Database table (BatchDetails) .The issue is i want to use same script in...
View ArticleDataGridView Custom format for phone number
Hello everyone! I am trying to do a phone number custom format for a column in a DataGridView, but nothing I try works! Any ideas on how to fix this? Here's my code: private void...
View ArticleHow can I throw this NullReferenceException
My code as follow,when the loop running, if return null value, it will stop, I tried throw it, or skip, but not success.How can I code itWhen null return, skip it, and keep the loop go on ?Many thanks...
View Article