removing word in text using c#
i want to check whether a particular word is present in text file or not .if present in that file i want to remove that word and update it in another file ...please say how to do this in c#?
View ArticleSave Checked Checkboxes changes from DataGridView created Programmaticaly
i have a datagridView Table wich gets filled with rows Programaticaly, i have 4 Columns, one of them with paths and another one of them with checkboxes, what i want is to save the checked checkboxes,...
View ArticleConvert.ToInt32() not working
Hey guys,I'm trying to convert a string to int but it doesnt seem to be working and yet there's no error.I used WriteLine to check if the program even run's past the convert, but it doesn't, it will...
View ArticleASP.NET C# question about passing values between forms
this is a web based application. I would like label1 in form1 copy its value to form2 label1. As a result i would like to check it that everytime i change label1 in form1 , form2 label1 will change as...
View Articleconvert string to SqlDbType
Hi guysI have below method:public void SP_Parameter(string[] InputParametername, int i, SqlDbType[] typein, string[] textBox) { i--; while (i > -1) { SqlParameter inparm = new...
View ArticleVS2012/C# - Collapse methods but not comments
Is there a way to collapse methods to definition but keep comments visible (like in eclipse) ?CTRL M/O collapses everything and this really affects my productivity when navigating through the source...
View ArticleTry Catch - Good Practice?
Hello,When I run my program, sometimes it throw a new exception.Try Catch it's a good practice to solve problems?What kind of "tricks" it can do?For example, in some articles I see people with Try...
View Articleprogram wont display if answer true
Console.WriteLine("Please choose any 3 questions between 0 and 10"); for ( c = 0; c < 3; c++) {...
View Articleusb webcam with snapshot button
Hi,I wanted to use physical snap shot button available in webcam to capture the image. I am able to capture the image from code but i dont know how to get response if someone presses the capture...
View ArticleReferencia a objeto no establecida como instancia de un objeto.
Saludos amigos, estoy haaciendo un gridview en el que pueda actuallizar varias filas de una vez.para ello he puesto un boton en que he puesto el siguiente codigo: private bool tableCopied = false;...
View ArticleHow to bind the values in one combo box depending on other combo box...
please help me...i have two combo box say combo1 and combo2.combo1 displays the country names that is loaded directly from the database using enterprise library.when i select a country name in combo1...
View ArticleAPI to convert string into language invariant string
I would like to know in case there is an API to convert a string to language invariant, without changing its case?
View ArticleSerialPort works from VS2010 IDE, but not from the exe ?
Hello,I have written a modbus-like application, that polls an attached instrument for data via the serial port (a USB to Serial Adapter).While reading from the Slave, in case of no response (read...
View Articleselect all buttons on form
HiI have below code :foreach (Control c in frmM.tableLayoutPanel1.Controls ) { foreach (DataRow row in table.Rows) { foreach (var item in row.ItemArray) { var button = c as Button; if...
View ArticleGraphics driver crash - too many pixels as input?
Not sure if there is a better forum. Had a look at the forums list, this and driver development both seemed suitable.I have an app where we are displaying on the earth/globe numerous data points which...
View Articleoccurance of a particular word in text
i want to count the occurance of word present in document .eg if i give a word ="hai"it has to search in file and count number of times the word occurs in file ..i searched various websites but i get...
View Articlecheck word present in file or not using c#
i have two file A1.txt and b1.txt ...check whether words in b1 is present in txt A1 if present then number of times words present in A1 is calculated and that word should be removed from A1 and...
View ArticleHow do i start a process in runtime code change directories make some...
This is the code:private void Process() { System.Diagnostics.Process process = new System.Diagnostics.Process(); System.Diagnostics.ProcessStartInfo startInfo = new...
View ArticleCommon Language Runtime detected an invalid program for Dictionary
Hi,I am working the project in which i used the Dictionary<Tkey,Tvalue> array.I made the structure which holds the multiple dictionaries into a single one.On some machine it give me the error...
View ArticleFinal Assesment?
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //any file handling or IO needs this namespace using System.IO; namespace assingment2...
View Article