I am trying to compile a project using the command line compile and I am running into a problem. I have two forms (Form1.cs and Form2.cs) Form2 includes an IE WebBrowser (AxSHDocVw.AxWebBrowser). The program compiles and runs fine when compile within VS.Net; however, when I use csc.exe I compiles, but when I try to run the form with WebBrowser embedded in it, I receive
“Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure “Form2.resources” was correctly embedded or linked into assembly “xxx”"
Try the /compile option on resgen, (resgen /compile Form1.resx).
Also, when VS.NET compiles the resx it gets named [DefaultNamespace].[Form].resources. So the /resource option to csc might need to be changed to /resource:Form1.resources,[DefaultNamespace].Form1.resources.
"It is self repeating, of unknown pattern"
Data - Star Trek: The Next Generation
I'm developing a calendar application for users to schedule events and i was wondering if anyone here knew how we could develop a program for the users to email the system administrator directly from the website
Can anyone please tell me how I can display the columns in my own way?
In my program, I linked the C# program with the database (.mdb) and
used a DataGrid to display the data. However, I realized that the column
headings are in alphabetical order from left to right, which is not what I want.
How can I change the setting? Thank you and appreciate any help!
i'm working on C# and asp.net.i have a link button and when i click on it i want to navigate to the give page.but it is not working.can anybody give a solution to this problem .
i have another problem.is it possible to explicitely convert system.io.directory to system.io.directoryinfo.
how to convert void to string type explicitely?
I have a DLL I wish to call from an application C# Windows app and it works fine. Calling the DLL from a console application also works fine.
However, when I try calling the console application from a web service it won't work. I'm sure this is a security issue. Can someone help ?
First of all thks for the reply. What I did try ( I know this is not a good thing to do ) is make the asp.net user account an administrator. That didn't work.
How do you give execute rights to the asp_net user ? Is this the same thing I did. If so it doesn't work.
From my Web Service I can call OTHER console programs just fine. Its just this one that I can't call. Also, I can only seem to run it from an application or in the console. Is there any way I can impersonate or somehow make the console program think that its being run from the desktop ? Is this possible in Web.config or some other way ?
I've been stuck on this problem for 2 days now .. I can't seem to get it running ..
Do you have any ideas ?
string reg = "^(<group1>.*?),(<group2>.*?),\"(<group3>.*?)\",(<group4>.*?)";
Match m = Regex.Match("BT2921893081,071200000006,\"Duck, Donald\",539485988", reg);
U can now find all matches in "m". i.e. m.Groups["group1"]
Hope it works, i have not tested any piece of the code snipped.
Thanks but I think I need to provide a little more detail. I have several files that will have information in different groupings. But they are all comma delimited with quoted strings in one or more positions. So the expression should split on comma's but not those within quotes.
I just bought a regex book last week but left it at home! Great timing!!
Regulation is the substitution of error for chance.
The simple answer to this question is to use a delimiter you know won't be used within quoted strings when you generate your file in the first place. If that won't work then make sure that all of your fields are surrounded by quotes and use "," as your delimiter. Beyond that, what you want is possible, but it doesn't have a simple solution. You could go through and extract each quoted field first removing the field as you go, and then capture what's left. Or, you could create a regular expression and use it as a template. It seems to me that the data for each row should be the same basic pattern with each, but you corrent me if I'm wrong. For instance, if your record looks like this:
shoudl work. I'm not sure how well you know regex. I am most familiar with a perl regex, but I think that perl regexes is what C#'s were based on. Once you run your string through this expression, you should have the items in your capture variables 1-4. Does that makes sense?
Hope this helps. Good luck.
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.