- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
35 Posted Topics
Hi, I've the following html/javascript/css code that I'm trying to execute. But it doesn't work. What I'm trying to do is similar to this: http://jsfiddle.net/FsPSZ/16/ (i've even tried this and the problem is the same) ` <!DOCTYPE html> <html> <head> <title>test</title> <style> #preview{ position:absolute; border:1px solid #ccc; background:#333; padding:5px; display:none; …
Hi, I'm getting the error at the doc.close in the last argument; type mismatch error using object 11 com addin; for which the doc.close takes 3 arguments. thx [code] Microsoft.Office.Interop.Word.ApplicationClass wordApp = new ApplicationClass(); object file = textBox1.Text; object nullobj = System.Reflection.Missing.Value; Microsoft.Office.Interop.Word.Document doc = wordApp.Documents.Open(ref file, ref nullobj, ref …
Hi, I've written a code to count vowels and consonants. But it hangs and doesn't do anything when a function call is made or even before that at get statement. When I try to get a string from user to pass to the function to count vowels or consonants. Here …
Hi, I'm doing the following code to connect to Access Db. The db1.mdb is placed in c:\db1.mdb. It giving me error "couldn't find file" [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; using System; using System.Data.OleDb; namespace CustomerDB { class OleDbTest{ public static void Main() { //create the database connection …
[COLOR="Green"]Trying to take input from user, put it in array and do the sorting[/COLOR] The code is: [CODE] #include <stdio.h> #include <conio.h> #include <stdlib.h> class Sort { static int array[5]; static int index; static int i; public: void insert(int num) { array[index] = num; index++; } int sortarr(const void *x, …
Dear guys, Can anyone help me out to open up a windows default dialog box in C# to browse folder and the folder path be displayed in the lab/edit box. Regards, Ali
How can I read the contents (separate paragraphs) of a .doc /.docx file in C#
I've been trying to use substring to get the last three digits as part of the extension but wasn't successful. Can anyone tell me how I can extract the extension from the file name? Rgs
Hi, I've been trying to capture video from webcam using openCV functions and openGL for rendering. The code is working fine and I can acquire and display both the cameras. Now I'm trying to record the captured video's and saving them to a file using openCV createvideowriter object. I can …
Hi, I've been trying to read the file content from the file path entered by user at run time. However i always end up in error. Help needed... char name[100]; ifstream infile; cout<<"Enter filename to open"; cin.getline(name,100); infile.open(name); if(!(infile.is_open())) { cout<<endl<<"File Not Found"; } i'm not using relative path, instead …
How to break or get out of foreach loop while searching folder for files or something like that
Is there a way to read MS Office document word by word in C#. I could read the whole stoyr like [code] doc.ActiveWindow.Selection.WholeStory(); doc.ActiveWindow.Selection.Copy(); IDataObject data = Clipboard.GetDataObject(); [/code] However then can we use any method using data object to read the ms word documents word by word?
Hi, how can i open and show a folder in windows using C#. like after complting some task i want the app to open the particular folder and present it to the user. like we open any folder by double clicking on it. I want to do it the same …
hi, One of my freind is asking for bpsk modulator and demodulator. It's out of my domain knowledge and i'm not sure what is it about. Can you refer to some C language example codes of the above. will appreciate your quick reply thx
Hi, I've wrote a small application which browse a folder and rename the files within that foldrer. However if the folder more then 500 files then the app tends to take a while to process. I somehow or the other needs to show some sort of text displaying "processing..." or …
Hi all, I'm trying to display an image in C# using openCV library. I've installed the openCV 1.0 and have downloaded the opencv wrapper dll file for the c#. I've tried the following code but it isn't showing any image. just an empty window, can anyone help thanks [code] IplImage …
Hi, I was just wondering if anyone could help me out with reading a movie in Csharp. and secondly what format does CSharp supports. Regards, A
Hi, How can I show a long value returned from a function to a textbox on a dialog box. Void CVideoDlg::OnBnClickedFrames() { m_AMC.get_FramesDrawn(); // retunrs long } I want to display the returned value in textbox as well as a messagebox. I tried MessageBox(CString(m_AMC.get_FramesDrawn())); But it didn't work out anyone …
Hi, How can I send http request for authentication? My current code returns 401 unauthorized access HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://128.39.141.213/axis-cgi/com/ptz.cgi?camera=1&move=right"); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Looking for a quick reply Regards, A
Hi, How can I play the webcam video (live feed) using C#.net? Thx A
Hi, I have setup a network dome camera on a LAN, which I can access in C# using its API's. I can even capture the image. However I would like to know how can I capture the images and save it in a folder at regular intervals. i.e. Like every …
Is there any way to insert an empty line in a string type variable. string textFile = "abc"; textFile = textFile + string.Empty; textFile = textFile + "def"; This is what I'm trying. But the string.Empty has no effect. This also neither works textFile = textFile + "\n"; Any suggestions?
Is there any method to find the number of elements that are filled in an array lets say i have the following array defined string[] text = new string[50] and i fill the first 8 elements/indexes Is there any method that could return the number of elements/indexes within an string …
Can anyone help me out with the code. I'm getting the Null Reference Object Exception at the following line textFile1_Paras[paraNumber] = line; I'm trying to separate paragraphs from a text file into string array [code] int paraNumber = 0; string[] lines = File.ReadAllLines(filePath1); foreach (string line in lines) { while …
Is there a way to keep the text formatting as it is while reading content form word into richtextbox control in C#?
I'm using the writeAlltext method to save a text file with the contents saved in string variable namely textFile1. File.WriteAllText(saveFileDialog1.FileName, textFile1); However for each blank line i'm getting two boxes in the output text file. I need to keep the formatting as it is while saving a file. the blank …
Is it necessary to have the "All files" option in the dialogBox. I tried removing it but it won't compile. gives some sort of error this.saveFileDialog1.Filter = "Document Files - (*.txt)|*.txt|" + "All files (*.*)|*.*"; Tried removing the [+ "All file ] onwards string. this.saveFileDialog1.Filter = "Document Files - (*.txt)|*.txt|"; …
Which method can be used to set the values in combo box from within code?
Getting the following error Error `'System.StringSplitOptions' does not contain a definition for 'RemoveEmptyEntires'` string[] lines = File.ReadAllLines(fileName); char[] delim = new char[1]; delim[0] = ' '; foreach (string line in lines) { if (line != string.Empty) { string[] words = line.Split(delim, StringSplitOptions.RemoveEmptyEntires); // here you've got all your words in …
Is there any way to type casting from NumberUpDown to string?
How can I call another form from within one forms control events. like initiating a form on button click?
Greetings, How to change a file name using C# code with fixed path to the subject file? Do I need to copy/create a new file with new name and delete the old one or is there a way to change the name without doing above. Rds
Is there any way to type casting from NumberUpDown to string? Couldn't get much help from msdn :(
Hi, This is my second post in continuation to my previous one. How can I loop through all the files in a folder. Cheers! Ali
Dear guys, Can anyone help me out to open up a windows default dialog box in C# to browse folder and the folder path be displayed in the lab/edit box. I am new at C#. Just created a simple form application and now looking to do the backend coding Regards, …
The End.
shazzy99