Answer Questions
Jeff Leite Database Security Failure
Ok, I'm stumped on this one. I created an Access database, located it on my "C:\" drive and can read it with no problem. All of the fields in the database are Text. However, when I try to insert a row I get this rather criptic (to me at least) message (from the catch phrase): Error trying to add new record Error: No error information available: DB_SEC_E_AUTH_FAILED(0x80040E4D) After stepping thru the code, I found the error  ...Show All
JonesEJ20 how to make a paramter optional
Hi how ca i make a optional paramter to a method Thanks!! naa just wondering.. c# doesnt suppport optional parameters as vb does.. But you can use overloading instead of optional parameters if you want void mymethod(string x) void mymethod(string x, int myoptionalparameter) just a sample:) ...Show All
Francis Boivin Wave to text
Hi, I am developing an application, where i got few wav files with UK English ascent. I want to convert these files into text, could you please help me how to achive this. Thanks in advance, Prashant Then take a look at this list, there are some components that supports it. But isn't it so that you can add your own dictionaries to Microsoft Speech Hi Van, Thank you for the response, but t ...Show All
Diamant Creating a Wizard-Style Application
My current project is to develop a wizard-style application, with next, back, cancel, etc. I'm running into a problem with how I should implement the wizard. My first thought was to use panels for each step, but this quickly became overwhelming when I had 30 panels of the same size, all on top of each other. I had to use Send to Back repeatedly until I got to the step that I wanted to work on. My next thought was to use separate for ...Show All
ukesh Remove Junk Characters
Hi, I want to remove junk characters from a string. The scenario is, I have got a rtf string and I want to remove the last para tag in the string ("\par") from the rtf. When I try to manipulate the string , I found some box like junk characters in the string. Please provide me a solution It seems they are line terminator characters. How can we remove line terminator characters from string. ...Show All
gr4nt combobox and WebService dataSet
I have a WebService in wich i have DataSet with one table named "Predmet". So I wrote a method like this: public DataSet1 VratiDataSet() { DataSet1 faca =new DataSet1(); return faca; } in my Win Aplication i have binding combo box with my data table like this: private void Form1_Load(object sender, EventArgs e) { DataSet mojDataSet = mojServis.VratiDataSet(); comboBox1.DataSource = mojDataSet.Tables["Predme ...Show All
jimmieBV Adding a .cs file to vs.net solution and Inserting code into it
hi , iv created a application to have a custom menu item "MyAddin" in the tools menu in the vs.net ide.....when any new .net project is opened "MyAddin" will be available on the click of which a windows form with a simple text box and OK button gets launched...... Now my requirement is that when text is entered into the text box and when the OK button is clicked a .cs file has to get added to the solution of the project ...Show All
Samant B Jain Accessing POP3 EMails ******
Hello everybody, what is better component to access emails (pop3), is there microsoft component or any other freeware component is available, if any plz tell me. regards GV Ramana sounds good, thanks for the help check here for samples http://www.codeproject.com/csharp/smtppop3mailserver.asp hope this helps I believe you are looking for a POP3 client, not a server, if so, try ...Show All
JHMiller Type-safe Collections and Duplication
Is there any way to write type-safe collections for different types without repeating code The best way I know of is to just write separate classes deriving from CollectionBase and add the required methods but this leads to a lot of code duplication. In C++ there is no such problem because of templates. Is there some way to get the same functionality in C# It calls "Generics" and it's a feature of C# 2.0: ...Show All
Kenia SaveFileDialog
Ok. I am using a SaveFileDialog object. What I would like to know is how to save a certain file from a location. For example..maybe a file from my website. http://www.intelvision.net/ebook/hello.txt. The SaveFileDialog is just that, a dialog for browsing your local system to find a local to save TO. It doesn't provide the file you're saving, and it certainly doesn't deal with the Internet. Hi, Yes, cgraus is right. You can't ...Show All
Dan Stevens Get all files from a folder on someone's computer and place in a String[]
I have a method that gets the names of files in a folder on an ftp server and that works fine. But the same code (slightly tweeked) will not work for getting names of files in a folder on someone's computer. The line that fails (because it does not exist) is: request.Method = WebRequestMethods.File.ListDirectory; where request is a FileWebRequest. I then thought I could do Directory.getfiles() but I realized that sometimes the folder or a file i ...Show All
Julian Heal Query Database
Ok. I am problem with querying my database. When I use the query command "SELECT * FROM TableName", then I have no problem. It shows the results as expected. But when I try to choose a certain field as follows: "SELECT * FROM TableName WHERE Song Name = 'Ben Stuart - A moment'; It doesnt work. Can someone tell me what the problem is Everyone's answer was correct. So I am not going to mark one as the answer. I would just like to let every ...Show All
Natebone Reading the registry...
Hi there, I know how to get gernal information out of the registry, but I'm having trouble getting the main-memory. It's located in : HKEY_LOCAL_MACHINE\HARDWARE\RESOURCEMAP\System Resources\Physical Memory The field name is : .Translated The field type is : REG_RESOURCE_LIST I tried : RegistryKey rk = Registry . LocalMachine ; rk = rk . OpenSubKey ( "HARDWARE\RESOURCEMAP\System Resources\Physical Memory" , false ); Console ...Show All
mamadero Count Line
How to CountLine in notepad file Atilla Koklu wrote: How to CountLine in notepad file You could read blocks at a time and count the \r\n occurrences. That way you avoid having to load the entire file into memory all at once. Hi! TextReader tr; ... while(tr.ReadLine()!=null) counter++; ...Show All
Jason Perez wierd label problem
Hi. This is a wierd one. I installed VS.NET 2005 pro on my laptop a while ago (when VS.NET 2005 was released) and I did not have the issue... a label component does not allow me to make it any size I like. If i click on the component that has been dropped on to the WinForm - I see no handles on each corner of the component. I installed VS.NET 2005 on my main computer today and I noticed this issue. However, continuing on a project from my laptop ...Show All
