Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008


all groups > c# > february 2005 > threads for wednesday february 2

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

AppDomain vs Process
Posted by benben at 2/2/2005 11:59:12 PM
What is exactly the difference b/w an AppDomain and a Process, they seem to me very much the same -- boundary for an execution context with protected resources. ben ...more >>

html checkboxes in datagrid
Posted by a NO[at]SPAM b.com at 2/2/2005 11:37:23 PM
i have a datagrid with a column of html checkboxes which are created dynamically. The id/name of the checkboxes comes from a value in the database. on a postback, i would like to get all the checked checkboxes, in the same way old asp would. i.e. for each control in Request.Form... i am do...more >>

Any VOIP SDK's that work with C#?
Posted by tovivek NO[at]SPAM gmail.com at 2/2/2005 10:01:30 PM
Any one knows VOIP SDK. The SDKs should be in .NET. If .NET is not available, then an ActiveX (ocx file) will do. I know on company which is vaxvoip company but requirement is that everything should be royalty and license free! this was a problem with vaxvoip. Thanks Vivekanand...more >>

chromeless(?) window in c# form?
Posted by Mark Reed at 2/2/2005 8:33:21 PM
Is there a way to make a form "chromeless" meaning no titlebar, border, etc... mainly none of the windows dressing...just the form itself? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

My Namespace and C#:
Posted by Stefano Del Furia at 2/2/2005 8:08:54 PM
Hi all, i have downloaded and installed the new version of C# and VB inside the Visual Studio.NET 2005 suite (beta) I have try to build some simple test's program and i have found that in VB i can use the My namespace like My.Application or My.User or My.Forms I was not able to find they in...more >>

Displaying forms in an array without closing each form
Posted by JW at 2/2/2005 7:45:17 PM
Dear NG, Still working on my .NET CF C# forms application ... I have an array of forms that I wish to display in array order, and thus have created a loop to run through them. Due to functional and speed reasons (this app. will be deployed to a PocketPC) I want to merely Hide() each form w...more >>

Proposal: Default Parameters/Named Parameters
Posted by cody at 2/2/2005 7:40:44 PM
Why doesn't C# allow default parameters for methods? An argument against I hear often is that the default parameters would have to be hardbaken into the assembly, but why? The Jit can take care of this, if the code is jitted the "push xyz" instructions of the actual default values can be inser...more >>

Help creating MSI file
Posted by Keith Smith at 2/2/2005 6:33:36 PM
When I create a setup file (MSI) for my app, I get the following error when I try to run the MSI file... The folder path '.' contains an invalid character Does anyone know a solution to this? I have looked on Google and have not found an answer. ...more >>



Rotate Firewall logfile
Posted by ZoombyWoof at 2/2/2005 6:25:16 PM
HI all. I would like the same behaviour on the Microsoft Firewall logfile that you have on logfiles under unixes, you can make them rotate so that once a week or once a day the system renames the logfile to 'name'.1 and creates a new one. How can I do this from C# ? I have looked in the...more >>

acess a control in a MDI parrent form from a MDI child form
Posted by authorking at 2/2/2005 6:12:44 PM
If there's a control in a MDI parrent form , how can I make it accessable in a MDI child form? Is there any sample code? ...more >>

' character in c#
Posted by dakkar NO[at]SPAM sylveria.gen-dot-tr.no-spam.invalid at 2/2/2005 5:58:42 PM
when i write something like this char[] arr = {'a','b','''} its giving the Error 2 Empty character literal error how can i add the ' character to an char array *---------------------------------* Posted at: http://www.GroupSrv.com *---------------------------------* Posted Via U...more >>

A to Z buttons
Posted by freddy at 2/2/2005 5:51:02 PM
I am creating an inventory program, I would like to know how to create A to Z buttons on runtime and than save data to the letter. Like if I hit F I will get all the names that start with F...more >>

Drop users connected to my PC?
Posted by pnp at 2/2/2005 5:47:39 PM
Hi all, from computer management|shared folders|sessions I can see all the users in a network that are connected to my PC and how many open files they have. Is there a way to monitor this through C# and drop the users that I want? thanks in advance, Peter...more >>

list files in subdirectory trouble!! please look at this snippet
Posted by RML at 2/2/2005 5:11:45 PM
hey guys, i am looking at this piece of code that lists numbers of files in a directory. i want to convert it so it lists the files in th directory that end with .doc. i cant seem to get it to output correctly, i have included the original code, my modified code, and the output from my modi...more >>

Dynamically compiled assemblies and strong naming
Posted by Thomas W. Brown at 2/2/2005 4:47:02 PM
If I am using the CSharpCodeProvider to dynamically compile an in-memory assembly from some C# source, do I need to worry about signing this assembly if I'm doing the compilation, instantiation, and invocation of a dynamic object from a strongly named assembly? If so, how do you strongly na...more >>

Application Startup Directory
Posted by David at 2/2/2005 4:24:44 PM
Can anybody tell me how can I get application startup directory in C++? ...more >>

Obfuscating SQL stored procs
Posted by Paul Aspinall at 2/2/2005 4:19:23 PM
Hi I have developed a C# app which uses SQL Stored procs... which I plan to deploy as a single / low user version on MSDE. My SP's all have 'meaningful' names. However, as I want to protect my app as much as possible, is it possible to 'obfuscate' the SQL SP names?? I know I could do this m...more >>

Obfuscators
Posted by Paul Aspinall at 2/2/2005 4:14:30 PM
Hi I am interested to see the opinions on the various Obfuscators available. Some seem to be very expensive... are they that much better?? Are there any free ones (other than the VS included one), how does this compare to others?? Any views appreciated. Thanks ...more >>

array of string
Posted by Francois at 2/2/2005 4:13:44 PM
Hi, In c#, is it possible to have an array of string declared as being constant: something like: protected const string[] OptionsGameFilterValues = new String[] {"Tom", "Jon", "Henry"}; but this code does not compile. However the MSDN documentation says that const modifier keyword ca...more >>

RightToLeft.Inherit
Posted by Mohammad-Reza at 2/2/2005 3:47:07 PM
I wrote a component using class library wizard. In my component i want to in order to RightToLeft property do some works. I can find out if user set this property to Yes or No, But if He/She set it to Inherit I must examine its parent RightToLeft property(if i`m wrong please tell me) but in t...more >>

C++ grammar in Lex/Yacc source
Posted by EKEY at 2/2/2005 3:46:28 PM
Hello, sorry this is not a qt-related question. I need the C++ grammar ( .y file and .l file) in Lex/Yacc source. Could someone help me ? Thanks EKEY...more >>

error
Posted by Hrvoje Voda at 2/2/2005 3:18:03 PM
Object reference not set to an instance of an object. What does it mean? Hrvoje ...more >>

C#, ASP.NET, MS Excel
Posted by Denis Brkljacic at 2/2/2005 3:04:22 PM
Hello, Please, if enaybody could help a little bit... Namely, I need to build C# ASP.NET Web that opens some Template.xls, write something to it and then closes it (and releases the objects). Well, what actually happens is that I simply manage to open the Excel file (somewhere in the filesys...more >>

Short filename format returned as temp file name
Posted by Claire at 2/2/2005 3:03:59 PM
When I call the Path.GetTempFileName() function I'm getting the following file path returned. C:\DOCUME~1\CLAIRE~1.JFM\LOCALS~1\Temp\tmp51.tmp For some reason, when the temp file's opened, it's creating the following path "C:\documents and settings\claire~1~jfm\locals~1\temp" It should be ...more >>

Changing a char to another char in a password
Posted by dakkar NO[at]SPAM sylveria.gen-dot-tr.no-spam.invalid at 2/2/2005 3:03:16 PM
I want to make a password system like this every character will have an equal character for example a will be equal to g and b will be equal to f when person writes ab it will change automaticly to gf is something like that possible if it is how? *---------------------------------* Posted ...more >>

WSE 2.0 - web reference wrong
Posted by Michael Rodriguez at 2/2/2005 3:01:06 PM
My web references won't use the WSE extensions. I've installed WSE 2.0, SP2. I right-clicked my web project and clicked WSE 2.0 Settings and enabled both options. The project then compiles fine. However, when I add a reference to it, it always appears like so: public class DataServ : Sy...more >>

Bug?! throw vs. throw ex
Posted by GoogleNewsReaderMan at 2/2/2005 2:47:48 PM
I want to "rethrow" an exception so as not to lose the original stack trace information. I understood that I could use throw, like: try { DoIt(); } catch (Exception ex) { DoSomeExceptionStuff(ex); throw; } However, this apparently does NOT preserve the stack trace--it loses it just l...more >>

Coding Standards, why if ( boolVar ) over if ( boolVar == true )
Posted by Alfred Taylor at 2/2/2005 2:47:24 PM
I've been flipping through various coding standards documents for C#/.NET and all of them say to use: if ( boolVar ) {...} instead of if ( boolVar == true ) {...} For the life of my I can't figure out why. If anything, I would guess the opposite would be better to use since the ! operator i...more >>

Need built in obfuscation support in C# compiler
Posted by vincent at 2/2/2005 2:45:03 PM
I made the suggestion "Need built in obfuscation support in C# compiler" to Microsoft. Anyone here agree with me? If yes, please cast your vote on this suggestion to raise its priority....more >>

Web Services & Classes
Posted by Demetri at 2/2/2005 2:31:02 PM
I have created a solution with three projects. The first being a library of classes. The second being a web service which references the library and implements web methods whos return types are classes in said library. The third project makes a web reference to the web service. The problem ...more >>

Reflection and 'is' operator
Posted by Tooc at 2/2/2005 2:20:13 PM
I am trying to pass the type of an object to a method, and then check object references against it to see if they are of that type, using the C# operator is. However, my syntax is wrong - see below. // Main { .... CountByType(typeof(Circle)); CountByType(typeof(IStraightSided)); .... ...more >>

Convert IHtmlDocument to PrintDocument
Posted by Sean McKaharay at 2/2/2005 2:18:05 PM
I am having a major issue trying to print html document in landscape mode. you can us I.E. page setup when you get prompted for a printer but I don't want to prompt the user. I want to be able to change the orientation then print all in code. Is there a way to convert an IHtmldocument to a P...more >>

SmtpMail with content id
Posted by Ohad at 2/2/2005 2:16:37 PM
Hello, I'm trying to send an email message using c#'s SmtpMail class. Everything, including attachments, is working properly. My problem is this: I need to assign a content id to one of the parts of the multipart email, for example, in order to show an embedded image: <img src=cid:xxxx>. ...more >>

Check if a virtual directory exists in IIS ??
Posted by gogutz_71 NO[at]SPAM hotmail.com at 2/2/2005 12:43:15 PM
Hi: Is ther a way to check at runtime if a certain virtual directory already exists on a certain machine? Thanks in advance. PS: I use C#, VS 2003, .NET Framework 1.1, W2003....more >>

Handling the System.Net.WebException ....
Posted by genc_ ymeri at hotmail dot com at 2/2/2005 12:42:48 PM
Hi, I'm trying to recieve the response status code rather than the message in the below code : try { responseArray = myWebClient.UploadValues(uriString,"POST",myNameValueCollection); } catch (System.Net.WebException ex) { // I'm excpecting 401 error (SC_UN...more >>

Binding DataGrid
Posted by PawelR at 2/2/2005 12:37:20 PM
Hello group, I my apps I have two dataGrids - dgParent, dgChild to show rows from two tables. Tables are relations one to more in dataBase. I use sqlDataAdater (sdaParent, sdaChild) to fill myDS. DataSource in dgParent I have set myDS.Tables["Parent"] (for dgChild myDS.Tables["Child"]); My q...more >>

Adding to an existing NameSpace
Posted by Davinci_Jeremie at 2/2/2005 12:23:02 PM
After creating a namespace in one file how would I add to that a new object in the same namespace in a diffrent file? IE FILE1 contains namespace FINANCE FILE2 has object that want to exist in the FINANCE namespace Can this be done without adding the classes to FILE1? Thanks Davinci ...more >>

String Formatting
Posted by Ohad at 2/2/2005 12:16:48 PM
Hello, I have a const string, who looks something like this: const str = "abc {name: ohad phone: xxxxxx} {0} {1} {2}"; and i'd like to do this: string a = string.Format(str, 1, 2, 3); It's not working. I guess that the problem is that the c#'s Format method looks at the string betwe...more >>

Can we use thread.start on function that has return value?
Posted by Tee at 2/2/2005 12:09:27 PM
Hi, Can we use thread.start on a function that has return value? I have a function that will take sometimes to run and it will return a string value, and I want to use thread.start to call this function and get the string, is this possible? Thanks, Tee ...more >>

Find last row in a database
Posted by bardo at 2/2/2005 11:59:02 AM
Search thru all my books and MSDN database I can't seem to find a easy solution to my problem. What I would like to know if there is a fast and easy way to get the the amount of rows that are in a Table in a Database. Without needing to load the table into a DataTable / DataSet or needin...more >>

Datagrid Custom table/column style...
Posted by Darryn Ross at 2/2/2005 11:47:54 AM
Hi, I am trying to display a long integer value from my access table in a Datagrid with a custom style applied to it and the value is not coming through correct?? database value = 0.00000 % datagrid value = 0.00 % How do i get my column style to display the details as they are in the ta...more >>

Reading File Documents
Posted by AlanS at 2/2/2005 11:21:04 AM
I am reaing files of different format (PDF, XLS, CVS, XML, HTML). I will take the output and store in in an image field in a database table. The following is the code I am using to read the files. public byte[] getBinaryFile(string pOutputPath) { FileInfo fi = new FileInfo(pOutputPath); ...more >>

Will C# run on a Pocket PC?
Posted by Keith Smith at 2/2/2005 11:18:26 AM

scheduled task
Posted by mp at 2/2/2005 11:16:58 AM
I am trying to put these 2 commands in a .bat file and I get an error if I have them in i .bat file. however if i separate them out to 2 .bat file they work fine. what do I need to put both comands in 1 .bat file? NET STOP "Service1" NET START "SERVICE2" Thanks ...more >>

Which is the right Collection for me?
Posted by Tiƫsto at 2/2/2005 11:02:39 AM
Hi guys, I've trying to find a collection for a very common task without = any luck. I only need a collection of Key/Value objects, cause I need to check = whether a key as been added and if not, get it in. I thought a HashTable would be enough. The problem with HashTable and = with SortedLis...more >>

AssemblyKeyFile Attribute
Posted by Ram at 2/2/2005 11:01:03 AM
Hey, Whenever I add the "AssemblyKeyFile" attribute to a ClassLibrary project I created on my Win XP computer, the "Rebuild" take almost a minute! When I mark that line, the rebuild time is merely a second! The same project with Win 2000 computer works perfectly well - with or without this at...more >>

!Page.IsPostBack
Posted by Tim at 2/2/2005 11:01:02 AM
I have dropdown list in Login page. The data is adding twice because the Page_Load event is executing twice. But I am checking !Page.IsPostBack property. First time the value for '!Page.IsPostBack' is 'true'. When it goes for second time it is not setting to 'false'. Please remember the '!' b...more >>

Memory management problem
Posted by Brandon Langley at 2/2/2005 10:35:06 AM
I have this structure that I am using in conjunction with NetLocalGroupAddMembers: [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)] public struct LOCALGROUP_MEMBERS_INFO_3 { [MarshalAs(UnmanagedType.LPWStr)] public string lgrmi3_domainandname; } I am having failures that...more >>

Help! "the folder path '.' contains an invalid character" error (Setup question)
Posted by Keith Smith at 2/2/2005 9:41:43 AM
When I create a setup file (MSI) for my app, I get the following error when I try to run the MSI file... The folder path '.' contains an invalid character Does anyone know a solution to this? I have looked on Google and have not found an answer. ...more >>

csc preprocessor defines
Posted by Harold Howe at 2/2/2005 9:30:04 AM
Is there a preprocessor define that identifies which version of the compiler is processing a source file? Something analogous to _MSC_VER, __BORLANDC__ and __GNUC__. H^2...more >>

scroll + DrawImage
Posted by krishnan at 2/2/2005 8:57:01 AM
Hi Guys My project is to dispaly the image in a usercontrol. and user will be able to scroll it. But when the image is too large (say width = 2592,Height=1952) the scrolling becomes slow.. means repaining become slow. Am using DrawImage for displaying the imag. and used TranslateTransfor...more >>

Reflection to get a public property
Posted by Eric Sabine at 2/2/2005 8:48:57 AM
This is for a web app but I figured it's more of a lanugage Q: I have a user control which is going to be used by multiple web pages. In the web control I need to get the bool value of a public property. All of the web pages implement an interface with this property. In the user control, I w...more >>

Counting file handles on a file
Posted by conradfripp NO[at]SPAM hotmail.com at 2/2/2005 8:36:02 AM
Hello all, I am waiting for receipt of files in a directory. I use the FileSystemWatcher to detect when files arrive in said folder. I need to read the data from these files ASAP but the files are created and detected before writing completes and so I cannot read them until the file handle us...more >>

Can I monitor PrintDocument.Print?
Posted by trint at 2/2/2005 8:29:54 AM
I want to do something like this to interrupt the print process (But this does not work because the error is "cannot implicitly conver type void to bool"): while(pd.Print()) { pCounter++; if(printerSettings.Copies == 2) { pd.DefaultPageSettings.PaperSource = pd.PrinterSettings.PaperSour...more >>

Is it possible to combine two PrintDocuments or...
Posted by trint at 2/2/2005 8:01:14 AM
add them into one PrintDocument: PrintDocument pd1 = new PrintDocument(); PrintDocument pd2 = new PrintDocument(); PrintDocument pdCombined = new PrintDocument(); pdCombined = pd1 + pd2; pdCombined.Print(); Thanks, Trint ...more >>

Active Directory Sample Errors
Posted by Frank_00001 at 2/2/2005 7:05:04 AM
I'm going to need to get a list of users for an upcoming project and Active Directory seems to be a good place to get it. I'm trying to get the "Walkthrough: Viewing Local Directory Objects" example to work; but I keep getting... An unhandled exception of type 'System.Runtime.InteropServic...more >>

Writing to a spesific line
Posted by dakkar NO[at]SPAM sylveria.gen-dot-tr.no-spam.invalid at 2/2/2005 7:00:35 AM
I have a txt file like this ClientFirstLaunch=no NextLoginKey=255 LastServerID=1 PlayerName=Dakkar DefaultChar=0 LastTip=3 ShowTips=no Password= SavePassword=on AcctID=dakkar and i want when my program executed it will change the savepassword line to off how can i do that? T...more >>

Update Combobox Contents
Posted by A. Chiou at 2/2/2005 6:41:06 AM
Hi: I have a combobox (in form 1) whose items are populated from a table. In form 2 there is a data entry for the same table. How do I reflect the changes to the combobox in form 1 as soon as the data entered in form 2 is saved in the table? Thanks in advance....more >>

Getting "Object reference not set to an instance of an object" err msg when trying to add panel
Posted by tJ at 2/2/2005 6:38:46 AM
Hi I'm working on a form with a splitControl. In the RHS panel2, I need to add a panel to drop radioButtons onto. But when i do this, I get the following error message: "Object reference not set to an instance of an object" Can anyone please tell me how i can solve this problem? Thanks ...more >>

Array/ArrayList Performance
Posted by Craig at 2/2/2005 6:19:01 AM
Hey Everyone - I'm trying to determine the fastest way of moving array information around and could use some help. Here's the setup: Class A stores a DateTime and an amount (a payment). Class B is functionally an array of A objects (representing a cashflow). Class C is functionally an arr...more >>

functions
Posted by juli jul at 2/2/2005 6:13:28 AM
Hello, I would like to know if there is a function which is running during the runtime of my program all the time and where I could place events overloading and things I need to check during the run(Like if some tab page been pressed )? Thanks! *** Sent via Developersdex http://www.developer...more >>

events problem
Posted by jima80 NO[at]SPAM gmail.com at 2/2/2005 5:01:07 AM
Hello, I am trying to react to a selection change in a combobox which is filled dynamicly during the run of the program. I am trying to do the following: 1)Declaring the comboBox 2)Initializing it (it is empty). 3)Filling it with data private void Fill_Menu() { for(int i=0;i<command_name.Co...more >>

Variable question
Posted by Keith Smith at 2/2/2005 4:40:48 AM
What is the difference between these two statements? public static string var1; public string var1; ...more >>

Calling a dll in C#??
Posted by stanley stanley at 2/2/2005 3:53:31 AM
i am developing an application that communicate with a card terminal(used in POS system), so i need to use the dll provided by the terminal vender. The problem is , i dont know how use the dll in my application. I dont know the dll is develop by which language. How can i know , what functions a...more >>

How can I send multiple documents to print (As a printjob)?
Posted by trint at 2/2/2005 3:24:10 AM
Instead of just sending one document at a time, I need to send multiple documents as a print job because our laserprinter will only stack and staple one printjob it receives at a time. I need to use some of this code: PrinterSettings printerSettings = new PrinterSettings(); printerSettings.Maxi...more >>

simple question
Posted by DAMAR at 2/2/2005 1:19:03 AM
I have forgotten how to write that simple thing: I have app.exe.config file with my custom section where I initialize a variable used then in application. User can chande a value of this variable so I would like to save it in the app.exe.config file. when user starts the application next time...more >>

Helpppppppppppp
Posted by tota at 2/2/2005 12:57:01 AM
what is wrong with that code i only want to replace any Null Value in the DataGrid to a space value it tells me object not set to an instance this.DG_U=new System.Windows.Forms.DataGrid(); this.DG_U.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] { ...more >>

Crystal Report
Posted by Islam Elkhayat at 2/2/2005 12:45:37 AM
I have problems with crystal Report... i use SQL query to fill dataGrid, i use checkboxs to select the column to return and build my query.. I want to create a report with the data of the datagrid (Use the same Query) 1-How can i bind it to the report?? 2- i need more information about worki...more >>


DevelopmentNow Blog