Home All Groups Group Topic Archive Search About

Visual C# .NET

microsoft.public.dotnet.languages.csharp
Score What is [STAThread] what does it mean? what does it do?
garyusenet - 2 Dec 2006 10:31 PM - 5 messages
I am at a loss with this. I tried to go back to basics, and start learning all i didn't understand, starting at the top of the code file generated by VS. But I can't seem to get any sort of start on this ...
Score Remoting and circular dependencies
nyhetsgrupper - 2 Dec 2006 8:42 PM - 9 messages
I have written a windows service and want to expose a web based user interface for this service. I then wrote a class library containing a ..net remoting server. The class library have a method named StartRemotingServer(). To be able to call this method from the windows ...
Score Getting correct value from Interlocked operations?
Anders Borum - 2 Dec 2006 7:44 PM - 24 messages
Hi! I am implementing a threaded producer / consumer pattern just for fun. I am using an internal counter to keep track of the produced / consumed items and am logging that information. I am using the Interlocked class to increment a ...
Score converting system.dbnull to system.string
Robert Bravery - 2 Dec 2006 5:53 PM - 10 messages
HI all, I have a column value returned to a string variable in my c# app. But the return type is of system.dbnull. How can I convert that to a system.sting Thanks Robert ...
Score asp.net and Micromeda DreamWeaver
SemSem - 2 Dec 2006 5:40 PM - 3 messages
hi iam making an interface for my project using asp.net using MS visual studio pro edition. sometimes iget angry because i can't make what i really want to do using this tool . itry to use dream waeraver as he support asp.t using c#  and he gave me what ...
Score asp.net using C# and dream weaver
SemSem - 2 Dec 2006 5:31 PM - 2 messages
...
Score Ideas for how to enumerate all folders on XP and determine size?
garyusenet - 2 Dec 2006 3:47 PM - 13 messages
I want to write a program that lists all folders on my local hard drive in order of size, any ideas for how I might do this? Thankyou, Gary. ...
Score design issues
csharpula csharp - 2 Dec 2006 3:29 PM - 3 messages
I have a command line arguments (possible 6 of them but not a must) and according to them I should call a function. what is the best way to design such application? *** Sent via Developersdex [link] *** ...
Score Firefox vs IE6 (web display)
dale zhang - 2 Dec 2006 1:45 PM - 3 messages
Hi All, I have been doing some work on a C#/VWD based application. It looks good in IE6 but when browsed by Firefox has some problems. The display in FF messed up as you can see (pcmfx.com). I did try to validate my code at ...
Score How to generate a alpha a - z randomly
ad - 2 Dec 2006 10:08 AM - 8 messages
Hi, How can a generate an alpha a - z randomly? ...
Score Find & Replace Question
inpuarg - 2 Dec 2006 9:47 AM - 15 messages
I want to find a & character using Regex. But not && How can i manage this in c# Quickfind window ? -------------------------------------------------- ne kadar yaþarsan yaþa sevdiðin kadardýr ömrün :( ...
Score Still playing with bitmap images
Earl - 2 Dec 2006 7:21 AM - 8 messages
I have an image issue that I do not understand. When I try to save a bitmap created from a picturebox image, I can save without exception so long as the bitmap was retrieved from a file and loaded into the picturebox. But if I ...
Score How to determinate if an character in a string
ad - 2 Dec 2006 5:42 AM - 8 messages
I want to determinate if  there are alphabets in a string. (not all  number) How can I do? ...
Score GUIDs, snks, reflection and ILMerge
JT - 2 Dec 2006 3:16 AM - 4 messages
Hi, I am having trouble finding information about GUIDs and strong-names and don't really know what I need.  If that's too ambiguous, please tell me where to look for info on these. Here's what I am trying to accomplish:  I need to know what assembly is ...
Score Pausing the console program before it returns
Marin - 2 Dec 2006 2:38 AM - 6 messages
Right now my solution to this is adding Console.ReadLine at the end but I'm wondering if it's possible to do it automatically? If I chose "Start without debug" it does just that, it pauses right before the console window closes, but "Start with debug" closes the window right ...
Score Passing an long array from C++ to C#
markburnside - 2 Dec 2006 1:22 AM - 3 messages
I'm trying to pass an array of longs from my C++ DLL to C# but I'm not having much success any help would be great. Here's what I'm doing and when I compile the C++ I get the error: ...
Score Entry point
csharpula csharp - 1 Dec 2006 11:17 PM - 3 messages
Hello, I am trying to add few projects but i want that only one of the projects will have an entry point. How can I do it? *** Sent via Developersdex [link] *** ...
Score 2gb Limit
Andrew Robinson - 1 Dec 2006 10:52 PM - 5 messages
My understanding is that strings and xml documents are limited to 2GB. Not that this is a good practice, but I have a client that wants to parse / convert (in memory) a document that is larger than 2GB. I don't think it can ...
Score "How do I code" does not compile
johnincroyde - 1 Dec 2006 10:51 PM - 4 messages
The following code is copied from "How do I?" for Microsoft Visual C# 2005 Express  but it will not compile, why not? using System; using System.Configuration; class Program {     static void Main()     {         ConnectionStringSettings settings; ...
Score Remoting Singleton Issue
Palvinder Singh - 1 Dec 2006 10:45 PM - 7 messages
Hello google group peeps, I am new to remoting, but have a grasp of it. I am trying to create a server/client application, which will be deployed over an intranet.  I have upwards of five clients that connect ...
Score Can I not pass DataView across .NET Remoting?
Ronald S. Cook - 1 Dec 2006 10:27 PM - 2 messages
Can I not pass DataView across .NET Remoting? Thanks, Ron ...
Score Strange problem
Larry Smith - 1 Dec 2006 9:45 PM - 20 messages
Hi there, When I run the following on my app's primary thread: System.Type.GetType("System.Windows.Forms.Form") It works as expected. If I then launch a thread via the "BackgroundWorker" class immediately after the above call, and invoke the above again as soon ...
Score P/Invoke, CreateFile and SafeFileHandle
Bob Gray - 1 Dec 2006 8:13 PM - 3 messages
Hi, Can anyone explain how P/Invoke is able to cast the 32-bit HANDLE value returned from CreateFile (for example) to a SafeFileHandle object? Have a look at this code snippet from the .NET Framework Reference: ----------------------------------------------------------- [DllImport("kernel32.dll", SetLastError = true)] ...
Score DirectoryServices: How to remove user from AD
killbill - 1 Dec 2006 7:35 PM - 2 messages
Hi All, I cannot figure out how i can delete user in AD with DirectoryServices using ldap query? Thanks ...
Score How to create thumbnail from a vedio file in asp.net
Mahesh K. Anajni - 1 Dec 2006 6:48 PM - 2 messages
hi i am working on blog where member can upload his/her video. when member's viewed his blog it should show the thumbnail of video uploaded by him. so the problem is how to create a thumbnail from video file in ...
Score Editable Datagrid C# Windows Application Help
seanmle - 1 Dec 2006 6:33 PM - 2 messages
I want to build a windows application that has a datagrid filled with data. When a person modifies information on a single cell, it updates the database without the user having to click on a save button. Any ideas on how I can accomplish this? ...
Score How to locate assembly-qualified name
Larry Smith - 1 Dec 2006 6:05 PM - 3 messages
Hi there, How can I convert this: "System.Windows.Forms.Form" to this: "System.Windows.Forms.Form, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Note that I'm dealing with native .NET types only. Thank you. ...
Score Command-shell parsing of Process arguments
Dave Booker - 1 Dec 2006 5:13 PM - 6 messages
I want to use Process.Start(string command, string arguments), but I need the arguments to be put through the Windows command-line preprocessor/parser. E.g., if I call Process.Start("echo", "%date%") I need the %date% converted to "Fri 12/01/2006" like it would on the commandline, not passed through as ...
Score Problem with multi-line const strings and Environment.Newline
rossum - 1 Dec 2006 5:06 PM - 12 messages
I want to declare a const multi-line string inside a method, and I am having some problems using Environment.NewLine. I started out with: class foo {   public void PrintStuff() {     const string multiline =       "The first line." + Environment.NewLine + ...
Score BinaryReader problem
Gintautas - 1 Dec 2006 4:52 PM - 3 messages
Hi I'm trying to make read binary file to the data array, but a problem is that the user is choosing either to read 1 byte(sbyte) or 2 bytes(Int16). So i need to make smth universal. My code: ...
Score sockets
segue - 1 Dec 2006 4:23 PM - 7 messages
I'm trying to test a tcplistener winsock app..  I have two projects, the listener and a tcpclient that creates a local connection with the same port as the listener and sends packets the listener should pick up.  I thought I ...
Score Problem using System.Diagnostics.Process to launch Internet Explorer
garyusenet - 1 Dec 2006 3:19 PM - 7 messages
I have been trying for some time now to launch Internet Explorer from my code. I have read the MSDN notes on this way of starting processes and used their example but couldn't get it to work. I then searched the forums and made ammendments suggested to previous ...
Score Process existence
csharpula csharp - 1 Dec 2006 1:43 PM - 9 messages
Hello, I am writing an executable (in c#) that relies on a fact that some process is up. How can I check (by using process name or some other attribute) that process is running? Thank you! *** Sent via Developersdex [link] *** ...
Score BISYNC
MobileBoy36 - 1 Dec 2006 1:43 PM - 2 messages
Hi all, Does someone have a free or commercial set of classes to set up BISYNC communication from C# to a UNIX machine? Or maybe a good link showing how to realize this using C#? Thank you. Best regards, Mobile boy ...
Score Document style web service?
Jens Jensen - 1 Dec 2006 1:20 PM - 4 messages
Does Microsoft now support Document style web service as part of .NET 3.0 (Windows communication foundations)? ...
Score ABOUT ASP.NET2.0
devi - 1 Dec 2006 1:09 PM - 3 messages
hi,   i am new to .net so please give some guide tips about .net2.0 please tell any books in basiclevel  nd detailed inASP.NET 2.0 CONSIDER THIS... ...
Score Render or RenderControl
Peter Kirk - 1 Dec 2006 1:09 PM - 3 messages
Hi, if I am writing a web custom control, do I override the Render method or the RenderControl method - and what is the difference? Thanks, Peter ...
Score Tracking mouse wheel events.
Jesper, Denmark - 1 Dec 2006 1:05 PM - 7 messages
Hi, I would like to implemet some zoom functionality in a some graphics. How can I track mouse wheel events over a Panel control? reagrds Jesper ...
Score Class library
Dave - 1 Dec 2006 12:37 PM - 5 messages
hi, I wrote class library that contain a struct stX and a new class library that get the first class library as referance and implement a function foo that one of its parametrs is of type of the struct stX; ...
Score ProducerConsumer Threads
Daniel - 1 Dec 2006 12:27 PM - 3 messages
Hi all I wrote an App that checks some Emailaddresses from our Database ( more than 500'000). So I wrote a Multithread App. I have a Queue defined as follow: ProducerConsumer prcEmailProcess = new ProducerConsumer(); I start the Threads with the following Command: ...
Score Type scope confusion.
garyusenet - 1 Dec 2006 11:56 AM - 6 messages
Hello everyone. I have a project at the moment which is working fine. I originally coded my code in form1.cs, as this was the default code file generated by Visual Studio. However now i'm trying to organise it better, so have ...
Score SELECT MAX(*) TO A VAR
David C - 1 Dec 2006 11:25 AM - 5 messages
Hi, I'm newbie on C#... Can anybody tell me with a code example how to make a select max(*) and put it on a variable. Thnks a lot! David C. ...
Score webbrowser and security alert no catch...
Steph - 1 Dec 2006 11:11 AM - 2 messages
hello, i testing webbrowser (c# .net2) , and my webbrowser take a random website in google (to test). and.... i found a problem with a security alert.... in this site : [link], cause : this site want install a ...
Score C# Call back function - Evalcom2
Josh M - 1 Dec 2006 10:35 AM - 2 messages
Hi, I am trying to use the EvalCom2.dll to validate a MSI - [link] I have the following code so far... using System; using System.Collections.Generic; ...
Score Unmanaged API returning an array of pointers
gbraux - 1 Dec 2006 8:29 AM - 3 messages
Hello, I am using the Advapi32.dll CredEnumerate function through P/Invoke. The CredEmunmerate is declared like this : BOOL CredEnumerate(   LPCTSTR Filter,   DWORD Flags,   DWORD* Count,   PCREDENTIAL** Credentials ); As you see, Credentials returns an array of pointers ... I know how to ...
Score Boost and C#
Jon Slaughter - 1 Dec 2006 7:23 AM - 4 messages
Is C# generics programmatically compatible with Boost and C++ templates or is there such a difference that one cannot possible convert C++ templates into generics? I'm wondering but I just looked at teh boost spirit library and would love ...
Score General Question About DataSet
shachar - 1 Dec 2006 5:39 AM - 4 messages
hi all. in my dev team we have an argument about retrieving Records from DB to DataSet. the big question is: should i retrieve all the records from my table (max 4000 records) to my DataSet, and then, inside the client i'll filter a ...
Score can i get next ReadLine Value of currentStr
PointMan - 1 Dec 2006 5:01 AM - 4 messages
what i know is...       while ((currentStr = sr.ReadLine()) != null)       {         in this area,         can i get next ReadLine Value of currentStr ...
Score Derived class Interface method needs to call Base Class Interface Method
Kevin Frey - 1 Dec 2006 2:01 AM - 3 messages
In a derived class I am trying to redefine the implementation of a interface method defined in a base class - the base class interface method was not declared virtual. I have yet to actually test this approach, but it looks ugly. Is there any ...
Score Time-consuming ListView adding
Kadett - 1 Dec 2006 12:29 AM - 11 messages
Hi all, I have following problem: I'm creating a ListView (Details) control at run-time and filling it with some records (let's say 10 000). This operation seems to be quite fast, but when I call Controls[x].Add(list), ...
Score Adding images to the database
Earl - 1 Dec 2006 12:09 AM - 5 messages
Looking for an idea here. I've got a .Net app connecting to SQL2005 where I allow users to add pictures to the database. But I don't want them adding gigantic images, so I'm looking for an idea on how to control how big of an ...
Score WMI in my c# app to get mac & IP address
Jason - 30 Nov 2006 11:55 PM - 5 messages
Hello I'm writting  a c# app, and I've got a computer that has two built in nic's. One is a Intel Pro/100 and the other is a Intel Pro/1000. I want to get the mac and ip address assigned to the Intel Pro 100. ...
Score Opening Large Binary file efficiently
Gina_Marano - 30 Nov 2006 11:48 PM - 12 messages
Hey all, I need to validate a large binary file. I just need to read the last 100 or so bytes of the file. Here is what I am currently doing but it seems slow: private bool ValidFile(string afilename) ...
Score How can I iterate through a component collection of securty log's
Pucca - 30 Nov 2006 11:04 PM - 3 messages
How can I iterate through a component collection and read the text of each of the compnent?  I'm getting error with the following code                     ComponentCollection compcol = new ...
Score Valid Characters
preport - 30 Nov 2006 11:01 PM - 14 messages
I'm trying to ensure that all the characters in my XML document are characters specified in this document: [link] Would a function like this work: private static string formatXMLString(string n) ...
Score Q: Is there a C# equilent to vbs ComClass?
Martin Arvidsson - 30 Nov 2006 9:48 PM - 2 messages
Hi! I have done a couple of ComClasses in vb, and from now on i want to code ComClasses in C# is there an equilent of this in c#? If not how to proceed to get the same functionallity to be able to expose the com class? ...
Score Access to a printDialog from a PrintPreviewDialog
choupi - 30 Nov 2006 8:54 PM - 10 messages
Hello, Is there a way to call a printDialog from a printPreviewDialog (from print icon for example)? Indeed, the print icon in the printpreviewdialog prints directly the document without lunching the printdialog (i.e. the user can't choose the ...
Score Generics - Interface Syntax question
Gonza - 30 Nov 2006 8:24 PM - 4 messages
Hi group, i need a bit of help with this: public abstract class BusinessComponent<TData, TDataMapper> where TData : BusinessEntity,new() where TDataMapper : DataMappers.DataMapper<TData>, new() I want BusinessComponent to implement an interface i created, however i ...
Score Dealing with @ in ReadString
Laurel - 30 Nov 2006 7:56 PM - 7 messages
I've written a function that might return multiple e-mail addresses. I've been returning them in an XML string, and parsing it using ReadString, but I get the error below. (Code for ReadString is also included). Does anyone have any advice as to the best way to proceed? ...
Score Is it possible to intercept an attempt to access of a property before it happens?
martin - 30 Nov 2006 7:56 PM - 4 messages
just wondering.... Say i have a class with 3 nonstatic properties P1, P2 and P3. Now somebody creates an instance of my class and calls any of them (instance1.P2) Is it possible to execute some other function say (checkIfLoaded) ...
Score Determining if it is design time or runtime
Joe Bacon - 30 Nov 2006 7:53 PM - 13 messages
I'm having a problem where a form will not come up in the designer.  I need to be able to determine in the code if I am in design time or runtime.  I believe Delphi had a conditional compilation constant that allowed me to ...
Score How to find first XML occurrence of <elementName> via SelectSinglenode?
sherifffruitfly - 30 Nov 2006 6:33 PM - 6 messages
Hi, Last question (promise). I want to write out a new XML row, tacked onto the end of everything contained under the first <elementName> section. I can do the write, I'm just not sure what the xpath is to complete the ...
Score TinyInt or Char(1)?
Ronald S. Cook - 30 Nov 2006 5:58 PM - 8 messages
In a database table we will have a column "Round" for which round of feeding the record applies to at a cattle ranch.  The  value will always be either 1, 2, or 3 since we feed just that many times per day (kind of like ...
Score Generics and return types
andyblum - 30 Nov 2006 5:11 PM - 3 messages
AM I missing something?  How can I create a method that returns a generic data type without making a formal declaration.  For Example: public List<> getData { } I want my function to be able to return any data type that a caller ...
Score Looking for a dll type solution
Jason - 30 Nov 2006 5:03 PM - 3 messages
Greetings, When my data is updated in my sql server database there are a number of jobs that my current process performs that analyzes the new data. This only happens once a day very early in the am. When I want to add a new job I have to add new code to the current process. ...
Score Web Reference URL
Tim Gee - 30 Nov 2006 4:58 PM - 4 messages
Hi Is it possable (and if so how) to change a Web Reference URL at runtime. I am developing an app for multiple customers who will each have their own web servers but running the same web service all be it connected to different ...
Score how to use a 2-dimension string array?
fAnSKyer/C# newbie - 30 Nov 2006 4:57 PM - 9 messages
I know this question is stupid, but I really don't know how to do? I am trying string[][] s = new string[10][10] and it is wrong? Can someone give me a help? Or tell me where I can find answer,  Thanks ...
Score Confused on reading attributes of an XML element.
sherifffruitfly - 30 Nov 2006 4:53 PM - 5 messages
Hi, I have an xml file with structured like this: <?xml version="1.0" encoding="UTF-8"?> <Soldiers>     <Soldier  name="Billy Smith" rank="Private" serial="34" /> (a bunch more soldiers) ...
Score bind a dropdwn box to 2 tables - one fills it and the other records it.
Harry - 30 Nov 2006 4:29 PM - 2 messages
I have two tables in a database. One fills the drop-down and the other records the selection. Filling the dropdown with another table seems to be breaking the binding with the table it records to. VS2005 with SQL2005. I have a lot of these to do, and don't want to hard code each box. I can ...
Score WCF and JMS
webrod - 30 Nov 2006 4:27 PM - 2 messages
Hi, I'm a newbie with WCF, I would like to know whether it's possible or not to send a message to JMS (on a JBOSS Server) with WCF? Thanks for your help Rod ...
Score Creating a Select/Deselect all checkbox in a datagrid
VBNovice05 - 30 Nov 2006 4:00 PM - 2 messages
I run a search on my database and get  items that fit that search in a datagrid.  There are checkboxes already for each item.  I need to create a select/deselect all checkbox at the top of the column and be ...
Score Regex first match
Al - 30 Nov 2006 3:33 PM - 6 messages
Hi, I have the following code : string sData=@"{\*\bkmkstart adresse1} FORMTEXT }{\rtlch \af0 \ltrch \f1\fs22\insrsid16733897\charrsid10567516 {\*\datafield 000000000000000008616472657373653100000000000000000000000000}{\*\formfield{\fftype0\fftypetxt0{\*\ffname adresse1}}}}}{\fldrslt {\rtlch \af0 \ltrch \f1\fs22\lang1024\langfe1024\noproof\insrsid10567516 \u8194\'20\u8194\'20\u8194\'20\u8194\'20\u8194\'20}}}{\rtlch \af0 ...
Score Streaming data to a database
Xarious@gmail.com - 30 Nov 2006 3:14 PM - 2 messages
Greetings and salutations.     The project I am currently working on is nothing more than a dummied down Access replica.  My problem is that I cannot figure out a way to stream changes made to database so they will happen in the ...
Score Currency class
Eric - 30 Nov 2006 3:11 PM - 6 messages
Java has this. Anyone know of a .Net equivalent? Thanks, Eric ...
Score Transparent ListView
Aleksey - 30 Nov 2006 2:36 PM - 2 messages
Hi, guys! How can I make ListView to be transparent? Transparency in C# seems to be a problematic part at all. It's not truly transparency I used to in Delphi. Thanks a lot ...
Score Passing object with null member
news - 30 Nov 2006 2:25 PM - 8 messages
..Net 2.0 Hi, I'm getting a nullreferenceexception when calling a function from a worker thread: private void CallbackProc(string response, Exception ex) {     if (this.InvokeRequired)     {         this.Invoke(new MyCallback(CallbackProc), new object[] { ...
Score BenchMarking and Profiling .NET Application Tools
lava - 30 Nov 2006 2:07 PM - 5 messages
BenchMarking and Profiling .NET Application Tools>>>Which should be World class providing accurate output. The Tools should Benchmark MY ..NET Remoting Server/Client and SQL Server Database. ...
Score Timer and EventLog
jez123456 - 30 Nov 2006 1:44 PM - 2 messages
Hi I have a c# program that runs another process every 10 seconds. All is fine unless the other process fails, in which case an eventlog is created. The problem I have is that the timer continues to poll the other process and thus ...
Score Winform Login Help
Tim - 30 Nov 2006 12:14 PM - 2 messages
I am currently trying to build a front end login form for my VS2005 C# Winform application and cannot get past this. Can anyone make some suggestions as to how to complete this task? I have a db table that contains the uid and pwd but I'm not sure how to ...
Score WPF
Peter Morris [Droopy eyes software] - 30 Nov 2006 11:40 AM - 3 messages
Can anyone tell me which group to use to discuss WPF? Thanks Pete ...
Score I've got the timer blues
Adam Benson - 30 Nov 2006 11:32 AM - 2 messages
Hi, We have figured out that System.Timers.Timer should be avoided because it occasionally stops firing. So, we dutifully began switching over to System.Threading.Timer but somebody at work now says that System.Threading.Timer can also be unreliable. ...
Score Simple program not producing output
garyusenet - 30 Nov 2006 11:30 AM - 5 messages
Hi. I am trying to learn about array lists, and found an example on MSDN. I tried to compile it but it's not producing any output. I can't see why. Any ideas? Here is what I did. 1. Started new windows application. ...
Score flatten multi-dimensional array to on-dimensional array
per9000 - 30 Nov 2006 11:13 AM - 9 messages
Hi all, I have a two-dimensional array of data, f.x int's. We can imagine that the array is "really large". Now I want the data in it and store this in a one-dimensional array. The obvious way to do this is a nested for-loop - but we all know ...
Score Append rtf content to a richtextbox
Fab - 30 Nov 2006 10:48 AM - 2 messages
Hi, I have a two richtextbox with  rtf content. I just want to add the content of the 2 richtextbox into a third one. When I use the code below, the richTextBox3 remains empty. richTextBox3.Rtf += richTextBox1.Rtf; richTextBox3.Rtf += richTextBox2.Rtf; ...
Score Displaying a Powerpoint presentation on a PC without Microsoft Office installed
vegvegko - 30 Nov 2006 10:14 AM - 4 messages
Hi, Is there any way to build or distribute a C# application with a Powerpoint component, so that the application can display Powerpoint presentations on PCs that do not have Microsoft Office installed? Thanks for any insight! Rgds, Manny ...
Score using ref keyword performance
semkaa@gmail.com - 30 Nov 2006 9:50 AM - 12 messages
Can you explain why using ref keyword for passing parameters works slower that passing parameters by values itself. I wrote 2 examples to test it: //using ref static void Main(string[] args)         {             List<TimeSpan> times = new List<TimeSpan>(); ...
Score How do i build my own code 'library' (not .dll!)
garyusenet - 30 Nov 2006 9:18 AM - 6 messages
Hi, As I continue to explore C# , Visual Studio, and Programming in general I am becoming increasingly hooked. I see myself definately studying and learning c# with visual studio over the next year or two and am frequently finding pieces of code i'd like to save for later use. ...
Score strategy pattern instead of switch
Nick - 30 Nov 2006 8:51 AM - 2 messages
Hi, I read somewhere recently that the strategy pattern could be used instead of using switch command on an enum (for example).  How would this work? A small example would be great. Thanks, Nick ...
Score Repost of question about User Interface contents
AAJ - 30 Nov 2006 7:53 AM - 4 messages
Hi all I posted this ina different group, but have had no responses, I wonder if anyone here can suggest and products... cheers Andy ------------------------------------------ Hi all In my screens, I make a lot of use of datagrids that in turn, make use of ...
Score Newb question: drawing a sprite
Carl - 30 Nov 2006 6:34 AM - 3 messages
I'm new to C#, and I have only limited programming experience.  I've been doing the video tutorials at MS's website, and they're very helpful, but I decided to experiment with GDI+ and have gotten stuck.  ...
Score Is this the correct way to send a Bitmap over sockets?
eliss.carmine - 30 Nov 2006 5:50 AM - 15 messages
I'm using TCP/IP to send a Bitmap object over Sockets. This is my first time using C# at all so I don't know if this is the "right" way to do it. I've already found out several times the way I was doing something ...
Score Really simple regex problem
mikeachamberlain - 30 Nov 2006 5:07 AM - 2 messages
Hello there. This should be very simple for someone to solve. string s = System.Text.RegularExpressions.Regex.Replace(   "King Henry Viii", "\bViii\b", "VIII"); Console.WriteLine(s); I think the above code should write out the string "King Henry VIII" ...
Score How force VS2005 to use older version of .NET Framework?
Ronald S. Cook - 30 Nov 2006 3:37 AM - 7 messages
I have been asked to write a ..NET Windows app using the 1.1 framework.  I have both 1.1 and 2.0 on my PC.  When I create a new project in Visual Studio 2005, it shows initial namespaces under references (System, ...
Score Unloading appdomain and freeing memory
RickN - 30 Nov 2006 3:36 AM - 6 messages
In my .Net 2.0 project I am creating a new appdomain, loading an assembly and then unloading the appdomain when finished. However, even though the appdomain successfully unloads, the memory it consumed when being added is not released.  In fact, if I load the same ...
Score Designer serialization of non-default values
Charlie - 30 Nov 2006 2:20 AM - 4 messages
Imagine I subclass Panel into MyPanel and set a few property values to my own defaults as shown below. Eg. I set BackColor to by LightYellow. When I add MyPanel to a form, it will write the non-default property values ...
Score Easy question
Jake Forson - 30 Nov 2006 2:05 AM - 18 messages
Hi there, Is there a syntactically cleaner way to do this: if (!(MyObject is Whatever)) {      // ... } Thanks. ...
Score XmlSerializer Hexadecimal question
INeedADip - 30 Nov 2006 12:43 AM - 5 messages
I have a webservice that returns data from a database. Our services (the clients) have been blowing up because of illegal character problems.  Is there anything I can do on the server side to work around this problem.  I'm OK with deleting all the "bad" ...
Score when i use Process.Start() and dos command < or >
somequestion - 30 Nov 2006 12:19 AM - 7 messages
there are some dos command < or > it can use like this if there is a batch file as sample.bat sample.bat  < parameter sample.bat  parameter  > result . i just wanna use this when i use Process.Start() method. ...
Score c# oledb - multiple inserts to access (mdb) VERY slow - help!
dan - 29 Nov 2006 11:55 PM - 12 messages
within a loop i am building a sql insert statement to run against my (programatically created) mdb. it works but it seems unreasonably SLOW! Sorry, dont have the code here but the jist is very standard (I think!); e.g: ...
Score ComboBoxes in DataGridViews bound to DataSources
jjsavage - 29 Nov 2006 10:47 PM - 6 messages
Hi all,      I've got a DataGridView bound to a DataTable, and I need to make some of the columns into ComboBoxColumns.  I've tried some of the solutions listed here, but I can't seem to make them work.  They might ...
Next »