Home All Groups Group Topic Archive Search About

Visual C# .NET

microsoft.public.dotnet.languages.csharp
Score Add Config File to the Setup Project
Guy Noir - 31 Dec 2005 5:25 PM - 5 messages
Hi, I have built a windows service in VS2005, C#. I am curious about the proper way to add the WindowsService2.exe.config to the setup project? Right now I am adding a custom action to the Application folder for the ...
Score Custom Cursor in Resource will not Load
Paul Cheetham - 31 Dec 2005 4:24 PM - 6 messages
Hi, I have some custom colour cursors which I have added to my c# project, and set them to be compiled as "Embedded Resource" It seems impossible to load a colour cursor using the standard Cursor class, so I have had to resort to loading it using the Win32 API, and ...
Score DataSet in new table of a Access database
Marcel Hug - 31 Dec 2005 1:00 PM - 9 messages
Hi all ! I have datas in a dataset. I would like to save them in a new table (just created). Do I have to run trought all recordsets with an Insert into statement ? (it takes very long) Thanks ...
Score Hashtable Serialization problem in Webservice
Sajid - 31 Dec 2005 11:53 AM - 3 messages
Hi, I 've a problem while creating a web method which returns a class object. The actual implementaion of the class using a hashtable which is not serialized by the webservice.. any pointers would be helpful in resolving my problem ... ...
Score BLOB (sqlserver) and timeouts
Claus Konrad - 31 Dec 2005 11:34 AM - 5 messages
Hi What's the better way for retrieving a very large BLOB field from a SQL 2000 (image-field)? I'm currently usign a SqlDataReader, but it times out before all data is retrieved from the table field Is there any good approach for obtaining parts of the field (like ...
Score C# Unsafe Bug
JS - 31 Dec 2005 10:30 AM - 13 messages
I was writing some routines which could do bitwise boolean operations on byte arrays, and I ran into what I think is a bug with C#'s unsafe code.  I am pasting a console application below.  Can anyone give an ...
Score OleDBDataAdapter => Insert and Update of data values in a Database
Marcel Hug - 31 Dec 2005 10:07 AM - 7 messages
Hi all ! I have a table in my database, which has 3 attributes. IDFailureControl, ControlDate and ControlVersion. In the following function I test, if the date of today allready exists. Then I would like to write the new ControlDate or Version into the ...
Score WSE filters
Mike Schilling - 31 Dec 2005 6:02 AM - 3 messages
Today was my first experience using WSE filters in SOAP clients.    One of the simpler things I wanted to create was an OutputFilter/InputFilter pair that calculates response time by having the OutputFilter store the start time in the SoapContext for the InputFilter to subtract from the end time. ...
Score Converting dataset to dataview and sorting?
Brett Romero - 31 Dec 2005 12:45 AM - 8 messages
I have a dataset with one table, which has four columns.  All are of type INT.  I need to convert this dataset into a dataview so I can sort on the last three columns.  I may sort one of the three or all three at ...
Score Parse MultiCurrency Strings to Decimals...
Navid Azimi - 30 Dec 2005 11:36 PM - 6 messages
What's the best way to parse a currency string to a decimal given the possibility of multiple currencies? That is, my numeric string can be ($12.00) or -£12.00; in either case I want -12.00 to be returned. I ...
Score Exporting date from DataTable to Excel-file
Dries - 30 Dec 2005 11:34 PM - 2 messages
Hello everyone, I would like to export data from a DataTable to an Excel-file. I have tried this using Interop (with the Microsoft.Interop.Office.Excel.dll) but that seems to be a hard job. Does any of you know another way to do this? ...
Score Is User Interface Process App Block still current under .Net 2.0
David Veeneman - 30 Dec 2005 10:15 PM - 2 messages
I have done a little reading on Microsoft's User Interface Process Application Block, and I am thinking about investing a couple of days learning it. Is the AB still current under .Net 2.0, or is it now obsolete? ...
Score Running an executable or class automatically after build?
richard.sutcliffe - 30 Dec 2005 9:14 PM - 2 messages
I've written a class to automatically produce a Google sitemap file for my ASP.NET projects. What I'd like to do is automatically run this when I build my project so that a new sitemap is produced whenever I make changes.  I can make ...
Score useUnsafeHeaderParsing(WebRequest) in Win app.config
MikeZ - 30 Dec 2005 7:51 PM - 3 messages
I use WebRequest.Create/WebRequest.GetResponse to handle HTTP request in a VS2003 project. I got HTTP violation exception on some of the machine. So I did the research, and found to put <useUnsafeHeaderParsing ="true"> in app.config can fix the problem. ...
Score Simple focus Q
Steve B. - 30 Dec 2005 7:02 PM - 5 messages
Form1() has a selection menu for the user.  Form1() calls Form2() with menu selections.  Form2 opens a  Crystal Report viewer.   How do I this.Close() the Form1 properly so the user doesn't have access to the previous selection ...
Score HELP -- ASCIIEncoding Problem
Dino Buljubasic - 30 Dec 2005 6:21 PM - 5 messages
Hi, I am using a function to hash a string value: public string generateMD5Hash(string input) {     MD5 md5Provider;    // MD5 provider instance     // generate byte code for input     byte[] inputData = ASCIIEncoding.ASCII.GetBytes(input); ...
Score How to get the number of nonempty rows in excel application?
Gary - 30 Dec 2005 6:14 PM - 2 messages
Hi, there, I have an xls file, and need to get the number of nonempty rows from one worksheet. How to know what is the last line of this worksheet? I am using Microsoft Excel 9.0 library, Excel 2000, and C#. ...
Score How to do "Compile time" initialization of record array?
John Kelsey - 30 Dec 2005 5:36 PM - 17 messages
Back in the "old" days with C, I used to do something like... struct {    char Description[20];    float price; } Items[] = {    {"Apple", 1.99},    {"Banana", 2.04} }; If I wanted to do something similiar (and I do), does anyone have hints for ...
Score Drawing on CodeWindow - AddIn
Mythran - 30 Dec 2005 4:37 PM - 2 messages
I created an addin and wrote a class that inherits from System.Windows.Forms.NativeWindow.  In the Connect method, I created an event handler to listen for DTE.Events.DocumentEvents.DocumentOpened.  In the handler for DocumentOpened, I call EnumChildWindows.  In the callback ...
Score .NET Lookup Algorithm: Which is fastest?
The One We Call 'Dave' - 30 Dec 2005 4:21 PM - 3 messages
I have a list of DateTime objects stored in a collection: SortedList<DateTime,Object> MyDates=new SortedList<DateTime,Object>(); The dates, which can be accessed via MyDates.Keys, are stored in ascending order. What is the fastest way to find the MAXIMUM date within 'MyDates' ...
Score C# user.config confusion
Bit Twiddler - 30 Dec 2005 4:04 PM - 8 messages
Hi, I have a windows form app which would benefit from the new application settings support in VS2005. Say that my form has a single textbox on it.  When the form closes I would like to save the text in that textbox as part as the user level application ...
Score Name of control
Curious - 30 Dec 2005 3:56 PM - 3 messages
Hi, What the name of the control that is used in Visual Studio for the Properties Window, Solution Explorer, etc Thanks in Advance ...
Score Is there LabelArray (VB6) in C#?
Scott Starker - 30 Dec 2005 3:37 PM - 4 messages
Greetings all. I have a program that I've written in VB6 and now want to re-code in C#. But I have a problem in that there is no LabelArray in C# like there is in VB6. Is there any easy way to do this VB6 LabelArray in C#? ...
Score Renaming files in a directory
null - 30 Dec 2005 3:23 PM - 4 messages
I am a novice in C# and need help.  I want to write a simple program to read a bunch of files from a specified directory and rename those files in a sequential fashion., changing a bunch of image file names. ...
Score [DLLImport] Attribute where is default dll location
Lenn - 30 Dec 2005 3:01 PM - 7 messages
Hi, I have a DLL with unmanaged function written in C. I need to call from managed C# code, where should DLL have to placed, bin folder system32? And can this location be changed. I haven't found anything useful in this regard ...
Score DirectorySecurity IdentityNotMappedException
Nick - 30 Dec 2005 1:02 PM - 8 messages
Hello, I'm trying to add a DirectorySecurity ACL entry to an existing directory (based on some code I found in the msdn). However, this code only works on local machines because I can't specify a server to resolve the identity, so when I try on a remote machine it ...
Score Sqldataadapter not accepting colums containing reserved word
archana - 30 Dec 2005 12:58 PM - 2 messages
Hi all I ma having problem in sqldataadapter. In my sql database i have one table containing column name as 'Name and address'. Here 'and' is reserved word which i am using in column name. In sql server at a time of inserting data into the table it is working ...
Score I LOVE THIS JOB !!!
I LOVE THIS JOB !!! - 30 Dec 2005 12:33 PM - 2 messages
I LOVE THIS JOB !!! For everyone, who needs money. Are you on the search for a lucrative source of income?  Would you like to work of at home out of, without yourself you someone makes directions?  Would you yourself like to ...
Score ACT & HTTP 403
news.usenet.fr - 30 Dec 2005 12:29 PM - 2 messages
Hello, I created a new script in ACT and I started the test for 1 connection and 1 iteration. The result was Ok (HTTP 200 and 302) When I increment the number of iterations the result is still Ok. The problem arrives when I increment the number of simultanous connexions ...
Score AppFriendlyName not applying
Nick - 30 Dec 2005 12:19 PM - 4 messages
Hi Guys, I'm trying to set the property of AppFriendlyName to a IIsWebServerSetting class in an IIsWebServer. However, when I take a look in IIS manager, under the AppPool tree it just says "ROOT" instead of the name I have specified. ...
Score split with no char
Maarten - 30 Dec 2005 12:11 PM - 4 messages
Hi all i'm trying to split a string without a separator example: 0011010 = s(1) = 0 s(2) = 0 s(3) = 1 s(4) = 1 s(5) = 0 s(6) = 1 s(7) = 0 s there a way to fix this ...
Score Q: Document Function
Visual Systems AB (Martin Arvidsson) - 30 Dec 2005 12:00 PM - 3 messages
Hi! This is probably not the right NG but i will give it a go. When i create a document.xml file of my code, it's totaly unreadable for the eye. When i created a document in Studio 2003 it created a HTM, and a XLT file (I ...
Score Strange Situation
Amit - 30 Dec 2005 11:06 AM - 11 messages
Hi I have occured a very strange situation. The scenario is as follows. I have two buttons in the form. First button is Load button and the second one is Delete button. As the name suggests when 'Load' button is clicked, some data is loaded on the ...
Score EnumFontFamilyEx() in c#
a_man - 30 Dec 2005 11:05 AM - 3 messages
Hello everyone, Im writing an application which is printing pricelabels. Im using a label printer which has certain device specific fonts, which are not available through installedfontfamily. I´ve learnt that i must write my own enumfontfamilyex function in c# . ...
Score AppDomain.GetCurrentThreadId() and ManagedThreadId are different
peter.moss - 30 Dec 2005 10:08 AM - 2 messages
I have an application that use log4net for operational logging.  I store some user data elsewhere and need to tie the two together.  To achieve this I pass the ThreadId across on the user table so I can see ...
Score Reasoning for creating an appdomain
Kalpesh - 30 Dec 2005 8:59 AM - 4 messages
Hello All, What is the scenario in which creating & unloading appdomain (other than the default appdomain) is required ? Kalpesh ...
Score Refresh event of Internet Explorer
Sunil Shindekar - 30 Dec 2005 7:10 AM - 3 messages
Hi, I am writing the program which will capture the incoming HTML in web browser and do some modifications in it and then display in IE. It works fine when user gives new URL. But if user clicks "Refresh" button, I am ...
Score Throwing exceptions created with reflection
kaloianm - 30 Dec 2005 2:01 AM - 4 messages
Hi, Does someone know whether it is a bad practice to create exception objects through reflection and throw them? I want to use this in order to dynamically convert from an integer errorCode to an exception (via a map errorCode -> typeof( Exception))? ...
Score where's the .net command prompt?
Jwolf - 30 Dec 2005 1:38 AM - 7 messages
I have .net 2002 edu version and when it installed there was a shortcut to the .net command prompt. My CLR disk is scratched so I can't reinstall and so I just downloaded express. I dont know how to access the command prompt so I can compile basic files ...
Score Timer or threading Q
TheMadHatter - 30 Dec 2005 1:19 AM - 9 messages
Yello, Quick Q: I created a windows service that changes some data every (approx) 1sec, but currently it is using a loop on a separate thread that uses Thread.Sleep(1000). Is that bad programming tecnique? Should I be using a timer instead? Is there ...
Score Help : Redirecting Console results on forms
noor - 30 Dec 2005 1:16 AM - 2 messages
Hi, I'm creating an interface for a network device  basically its a GUI for cofiguring the devices. Configration Commands are working fine on command prompt I just want to make there GUI so my client should not go to that ...
Score Filling a DataSet with an ADO Recordset or Record
James - 30 Dec 2005 12:25 AM - 7 messages
I am writing a web service for a classic ASP application. I need to consume an ADO recordset and then send it to another web service for processing. I found an MSDN ariticle telling how to do this ([link]), ...
Score Controlling focus
Dave - 30 Dec 2005 12:09 AM - 3 messages
Hi -- I have an application where it is very important that i control where the focus is.  Many times the focus gets set to a form that was just loaded or a form becoming visible or just a form that is sitting there ...
Score web drive
freddy - 29 Dec 2005 11:05 PM - 4 messages
I would like to create a drive like (x:\) when the user logs into the site, so the user can save things on the site. ...
Score Refersh parent form and pass new values
Vivek - 29 Dec 2005 10:27 PM - 4 messages
Hi, I wish to refresh the parent form and pass the new values from child form. How can I do it? Thanks ...
Score C# code
Pohihihi - 29 Dec 2005 10:20 PM - 14 messages
I know this is in vs2005 but is there a way to 1- Divide class or move some helper methods on to another file and still be able to use in main file. 2- Is there a way I can move similer files under one folder under a project under a solution and still be able to use that code. ...
Score Handle leak in threading?
Jayme Pechan - 29 Dec 2005 10:14 PM - 4 messages
I was wondering if someone could help me understand why it seems that creating threads using the code below causes handles to seemingly leak. System.Threading.Thread threadRunAsync = new System.Threading.Thread(RunFunc); threadRunAsync.Start(listParams); I have to use ThreadPools in order to avoid the handle leaks. ...
Score WebBrowser
Mel Weaver - 29 Dec 2005 9:42 PM - 3 messages
Hi,    Screwed up on the last one.    Why does the messagebox already appear? private void button1_Click(object sender, EventArgs e) {     WebBrowser web = new WebBrowser();     web.Navigate("[link]"); ...
Score ICSharpCode.SharpZipLib.GZip.GZipInputStream Use with HTTP Request
mwieder - 29 Dec 2005 9:08 PM - 12 messages
I am using the .NET socket class to program a web client.  When I come upon gzip encoded conent, I am having trouble getting the decoded text. I have found the ICSharpCode.SharpZipLib to help, but in using their ...
Score Clearing a dataGridView for reuse
RSH - 29 Dec 2005 8:44 PM - 4 messages
Hi, I have a situation where I have a datagridview on a form.  I am making a dynamic table editor where users select a database table and then it calls this function where the data in the datagrid refreshes with the new table. ...
Score The code to change dateTimePicker control not working.
Alpha - 29 Dec 2005 8:37 PM - 6 messages
I have a DateTimePicker control that originally displays "1/1/1900" on screen.  I want to change it to current date when a user clicks on it.  I use the follow code but nothing is happening.  Can someone tell me what I'm doing ...
Score Context.Items vs Context.Cache
Rich - 29 Dec 2005 8:14 PM - 2 messages
There doesn't seem to be much doc on Items vs Cache in HttpContext. Basically I want to instantiate a class at web application level so that all web pages can have access to it.  The object would have the ...
Score Embedded SQL in C#
VictorReinhart - 29 Dec 2005 8:06 PM - 26 messages
Hi, I am intersted in trying to reduce the cost of C# development, by reducing the number of lines of code.  In my opinion, as a business developer, the biggest opportunity to reduce the number of lines of code is in database access. ...
Score Can't step into?
Brett Romero - 29 Dec 2005 7:32 PM - 6 messages
I have referenced two .NET DLLs in my project.  When debugging, I step into one of aDLL's methods.  aDLL inherits from bDLL.  In aDLL, there is a method called from bDLL.  However, I cannot step into it.  For ...
Score Close connection problem
Varangian - 29 Dec 2005 7:32 PM - 6 messages
Hello there people, I'm having some kind of problem. I have a function that returns a datareader. At some point using the application I get an error "Unspecified error" (ssssoooo helpful) :). I think I know the problem. My Connection remains open. ...
Score static hashtable looses its content
SevDer - 29 Dec 2005 7:30 PM - 8 messages
Hi We have a static hashtable that is located in another tier in our n-tiered web application. And we are storing big but not huge objects in this hashtable and the key to the objects is through Session.SessionID. ...
Score Web sites for C#/.NET
James D. Williams - 29 Dec 2005 7:21 PM - 7 messages
Has anyone of you a list of Web sites that covers articles and techniques about C# and .NET? Br ...
Score How to unload an assembly
Fabio Cannizzo - 29 Dec 2005 7:16 PM - 6 messages
MyEXE loads myDLL at runtime using Assembly.LoadFile("myDLL.dll"). Then I create an instance of a class contained in MyDLL using Reflection. When I terminate the debug session of my EXE file, the DLL remains locked and cannot be overwritten. I can only exit VS and reload. ...
Score Please help with converting a Date and a Time string after concate
Alpha - 29 Dec 2005 7:11 PM - 4 messages
I have 2 strings, "12/28/2005" and "16:44:54".  I need to conatenate them and convert them to datetime format so I can assign them to a datetime field in a datarow.  The time is now being converted to the date "12/28/2005".  and I ...
Score XML Mappers
James D. Williams - 29 Dec 2005 6:43 PM - 2 messages
Are there any Open Source tools available for XML to XML mapping using XSL? I should convert one type of XML message to another type. One solution could be XML Mapping tool. Cheers, ...
Score Listbox question
Matthew Woods - 29 Dec 2005 6:35 PM - 2 messages
Hi, does anyone know how i might make new entries in a listbox appear highlighted for 10 seconds and then change to the same style as the existing lines in the listbox? thanks Matt ...
Score Process.MainModule.Filename is in DOS format
Dave - 29 Dec 2005 6:01 PM - 5 messages
I am writing a C# app in which I need to enumerate the processes running on the PC. I have succesfully done this as follows (assuming the app is running on NT4, XP, 2000 or 2003): ManagementScope ms = new System.Management.ManagementScope("\\\\localhost\\root\\cimv2");      ...
Score Continuing execution following an Exception, and Exiting a Function...
RSH - 29 Dec 2005 4:41 PM - 4 messages
Hi, I have two questions both by a VB programmer that is learning C#... 1) In a VB error trap routine we would commonly trap the error and write it to an error log and then attempt to "Resume Next."  I have set up an ...
Score Streaming MP4 in C#
Nuno Magalhaes - 29 Dec 2005 4:12 PM - 5 messages
Is there any good way to stream MP4 in C#? Are there any samples on how to decode MP4 and stream it over the Internet? ...
Score Cyrstal Reports
Ümit Kavala - 29 Dec 2005 3:55 PM - 3 messages
Is it possible to design a report at Runtime? What I am trying to do is create a very flexible report to have a different amount of columns. The user can choose the fields from a database table they want to show on the ...
Score Close of OleDBConnection in Destructor
Marcel Hug - 29 Dec 2005 3:35 PM - 5 messages
Hi NG ! I would like to close my OleDBConnection in the destructor of the class, but i get a failure, that the handle is not initialized. I read in the msdn, that it is not good the close the oledbconnection in the finalize. ...
Score Generics limitation...
Luc Vaillant - 29 Dec 2005 3:01 PM - 14 messages
I try to compare to values of generic value type T in a generic class as follow: public class C<T> where T : struct {    private T value1;    private T value2;    C(T value1, T value2) ...
Score Disallow focus on form controls
brianbasquille - 29 Dec 2005 2:52 PM - 2 messages
Hello all, Would like to disallow the ability for controls on my form to get focus? Working mainly with a menu system and GDI+ and i would like the user to use the mouse for most operations. But focus still remains on my first ...
Score Whatever happened to ...
Martin Robins - 29 Dec 2005 2:48 PM - 9 messages
I seem to recall, back in the early promise days of Whidbey, that there was talk (and even an early version) of a set of classes for mapping data between objects and a database being a part of the release; alas I cannot ...
Score Database connection
Marcel Hug - 29 Dec 2005 2:19 PM - 5 messages
Hi NG ! I have the problem, that my access to a MS Access 2000 database does not work. I allways get the Exception System.InvalidOperationException with the recommandation to install a MDAC version 2.6 or later....but I have ...
Score how to use dynamic c# code from the database
Antonio - 29 Dec 2005 1:37 PM - 5 messages
hello, I have a data grid being populated from any number of stored procedures.  I need to have the totals in the footer, so I use the ItemDataBound event to sum up and display the results. this works fine, but since each stored procedure has different ...
Score how to debug windows service
TulasiKumar - 29 Dec 2005 1:11 PM - 6 messages
hi all, how to debug windows service in c#.net thanks in advance Regards, Tulasi ...
Score System.CodeDom DLL
Raja - 29 Dec 2005 12:59 PM - 5 messages
Have both .Net framework 1.1 and Framework 2.0 installed in my machine But, am unable to find out system.codedom.dll in my machine, one which, my application needs. Am not finding this dll in entire machine. Can anybody help me in getting this dll? ...
Score switch Case Question
Pedro - 29 Dec 2005 12:46 PM - 11 messages
Hi all, Why this does'nt work: switch(strExtenscao) {        case ((".odo") || (".odo").ToUpper()):                  //CODE       case ((".odb") || (".odb").ToUpper()): ...
Score Q: Do i need a manifest for apps written in Studio 2005?
Visual Systems AB (Martin Arvidsson) - 29 Dec 2005 12:27 PM - 2 messages
Hi! I have written an application in studio 2005, when designing all the buttons and so on are displayed just fine. When i execute the application i get the boring buttons like there were in w2k. Do i need a .manifest file, or what could be the behaviour of this? ...
Score MSHTML and MSXML in VB6
Lucky - 29 Dec 2005 12:22 PM - 12 messages
hi guys,      i need to parse html data that i've got from "Inet" object in vb6. now i want to prase the html data. here i got 2 options. one is MSXML and other is MSHTML. i tried both of them but i didnt get anything out ...
Score how to prepare intaller of windows service
TulasiKumar - 29 Dec 2005 11:28 AM - 2 messages
hi all, i have prepared one windows service in c#.net.This is about TcpIp packets checking.so,my problem is how can i insatll this windows service.please tell me any one. thanks in advance regards tulasi ...
Score Forcing a Windows service to shut itself down
Mark Rae - 29 Dec 2005 11:25 AM - 8 messages
Hi, I wrote a Windows service for a client a few months ago, and the client has now asked me to modify it so that it shuts itself down under certain circumstances e.g. a catastrophic failure of the network, SQL Server ...
Score Software management
Paul Aspinall - 29 Dec 2005 9:19 AM - 7 messages
Hi Does anyone know of a piece of software which can be used to keep track of software sales, customers license keys, e-mailing current customers and potential users etc.... Basically, some software to help a small developer to manage sales etc.. ...
Score Create instance of a class not defined in my code - Urgent
Michael Lev - 29 Dec 2005 9:19 AM - 2 messages
For a class (let's call it Config ) not defined/known in my code, I want create an instance. Specifically, something like: Config config = (Config)serializer.Deserialize(stream); Which parameters does the function need and how to use Reflection properly? ...
Score Reflection on Web Proxy Object
ruchitrivedi19 - 29 Dec 2005 8:40 AM - 2 messages
Hi, I am writting an application in which without running the code I want to know whether WebServiceA is calling WebSerbiceB ? or any other WebService or any other reference. In case of class Library I can get the information using Reflection. ...
Score sending a C# struct through sockets to a c++ client
Abubakar - 29 Dec 2005 7:29 AM - 5 messages
Hi, I am writing a server in C# and client in C++ (pure, not managed). The communication goes on through sockets. In C# I am using NetworkStream to send text data (by converting it to byte array) to the c++ client. In c++ ...
Score Passing information from Unmanaged to Managed code
Tim - 29 Dec 2005 6:36 AM - 8 messages
When there is a need to pass some dynamic information between 2 managed assemblies, the "Dictionary object" in Generic form can be used as a method parameter to pass the information. The information that needs to be passed can be stored as Key-Value pairs, and the method signature remains the same. ...
Score Need Help with regular expression
Lucky - 29 Dec 2005 6:26 AM - 3 messages
hi guys, i'm looking for a RegEx which can find these type of string from the bunch of html lines. if any one can help me here, would be appriciated. <a href="/url?sa=p&pref=ig&pval=2&q=[link]" ...
Score Need one Regular Expression - Urgent
Lucky - 29 Dec 2005 5:49 AM - 7 messages
hi guys,    i'm looking for one RegEx which can find matches from the bunch of lines. i want to find all the matches of "<a * href=*>*</a>". if any one can help me out here, please do come forward. ...
Score Using multiple RegexOptions
pl - 29 Dec 2005 2:28 AM - 2 messages
Hello, I have a quick question, I would like to use multiple RegexOptions like RegexOptions.SingleLine and RegexOptions.IgnoreCase at the same time, but I haven't been able to find any resource telling how to get the syntax correct to make it happen. ...
Score Simple question about complicated questions about Generics.
Michael S - 29 Dec 2005 2:22 AM - 13 messages
Why do people spend so much time writing complex generic types? for fun? to learn? for use? I think of generics like I do about operator overloading. Great to have as a language-feature, as it defines the language more ...
Score Replacing escape character?
Brett Romero - 29 Dec 2005 12:38 AM - 3 messages
I have a string with the following XML and need to remove all of the back slashes "<ROOT><Person PersonId=\"56102\" /><Person PersonId=\"56104\" /><Person PersonId=\"71266\" /></ROOT>" I use ...
Score How to define a delegate with Cdecl calling convention?
Naldo Alcalde - 28 Dec 2005 11:43 PM - 4 messages
Env: W2k SP4, VS2005 Std, Net Fw 2.0.50727     Hi everybody, I have a problem calling to an imported function who has a Cdecl calling convention function as parameter: [link] ...
Score SQL Server does not exist or access denied
Dave - 28 Dec 2005 10:29 PM - 5 messages
I've been running a mobile app for ten months with no problem on three different servers. When I installed the new netframework 2.0 It stopped working on two servers that the new framework was installed on. The program ...
Score currentcell backcolor
melanieab - 28 Dec 2005 9:01 PM - 2 messages
Hi, I have a datagrid & a datatable, and when I use the mousemove event, I run into trouble. private void dgMouseMove(object sender, System.Windows.Forms.MouseEventArgs e) { System.Windows.Forms.DataGrid.HitTestInfo hitInfo = dg.HitTest(new Point(e.X, e.Y)); ...
Score Writing an exception log an opening it with Notepad.exe
RSH - 28 Dec 2005 8:50 PM - 4 messages
Hi all, I have a situation where I am looping through a DataTable and extracting values from that DataTable and inserting them into a SQL database.  The application works fine but now I want to add an exception log to the ...
Score Why can't a new row be added to an array as needed?
MikeB - 28 Dec 2005 8:26 PM - 8 messages
I realize that arrays have worked this way for ages, but why do we have to continue with the old ways? It would really be nice if you could add a new row (element) to an array one at a time (as required). ...
Score How to prevent code from being executed by the Designer?
Fabio Cannizzo - 28 Dec 2005 8:10 PM - 8 messages
How can I prevent a few lines of code contained in the constructor of a Form from being executed by the Designer? Thanks, Fabio ...
Score Listening for dialog box from another program
Opettaja - 28 Dec 2005 8:03 PM - 5 messages
I am trying to make a program that times how long it takes to do something in another program. Is there away to make my timer program listen for a dialog box to open on the other program and then perform ...
Score Configuration / Settings File
Andy - 28 Dec 2005 6:53 PM - 5 messages
Is it possible to use a Settings / Configuration file in VS 2005 / .Net 2.0 in a dll?  Or is this feature limited to an executable? We have some .dlls where a configuration file would be helpful for things ...
Score Why is C# 450% slower than C++ on nested loops ??
Peter Olcott - 28 Dec 2005 6:40 PM - 79 messages
[link] The above link shows that C# is 450% slower on something as simple as a nested loop. Is this because .NET is inherently slower or does the C# compiler merely ...
Score Basic question about login form and passing success back to main form
Ronald S. Cook - 28 Dec 2005 6:34 PM - 6 messages
It's been longer that I remember since writing windows (not web) apps. 1) I want to load a main form 2) User clicks login button which brings up login form (on top of main form) 3) Upon entering successful password and clicking ok, login form should go ...
Score SQLConnection vs OLEDbConnection
Greg J - 28 Dec 2005 6:18 PM - 2 messages
What is the difference when using SQLConnection and SQLX classes or OleDbConection and OleDbXXX classes for database manipulation in multiuser (e.g. 100 users) environment? Can both handle connection pooling etc. or what might be the reason when selecting from these two DB class categories? ...
Score Control breaks when calling it from another class
JPSutor - 28 Dec 2005 5:33 PM - 2 messages
I am trying to contola progress bar on a form from a method that is located in annother class. when I try and instantiate the form Form1 frm = new Form1; frm.ProgressBar1.PerformStep(); I get an error message "An unhandled exception of type ...
Next »