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# > april 2006 > threads for thursday april 27

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 29 30

Hashtable - Order of storage
Posted by nithya4u NO[at]SPAM gmail.com at 4/27/2006 11:09:03 PM
Hi All, Currently, am working on converting some part of C# code to JAVA. Am having a problem with respect to the usage of Hashtable in C#. Is there a java equivalent for it? I have searched lots and am not able to get a solution. In the C# code that am working on, there is an arraylist and t...more >>


help me
Posted by thangavelu_usha NO[at]SPAM rediffmail.com at 4/27/2006 10:59:24 PM
how to in crease headertext lentgh by using c# code. ...more >>

Post XML from one C# web app to another
Posted by ramsamant NO[at]SPAM gmail.com at 4/27/2006 10:30:40 PM
Hi, I am trying to push XML files via HTTP using C#. I am using the free Visual Studio Web Developer Express to do this. After transferring about 10-15 files, randomly the files transfer fail and I get [WebException: The remote server returned an error: (403) Forbidden.] I've tried on XP as...more >>

Project fails to load after changing the name of the project folde
Posted by Joachim at 4/27/2006 10:14:01 PM
I needed to change the name of the project folders, e g. |-MyProject | |-MyProject to something else. Now it doesn't matter what I do - even if I rename the folders to the original name the project fails to load. The error message is "One or more projects in the solution c...more >>

Uninstall a service from code without using InstallUtil.exe
Posted by Marcel Brekelmans at 4/27/2006 10:05:54 PM
Hi, I was wondering if it's possible to install/uninstall a service from code without using the InstalUtil.exe tool with the /i and /u flags. As far as I can Google everyone is doing it that way and MicroSoft also mentions this. There's something like the ServiceBase class from which you o...more >>

I am trying to convert a file from C# to VB.NET - need help.
Posted by Learner at 4/27/2006 6:34:48 PM
Hello, Here is the code snippet I got strucked at. I am unable to convert the below line of code to its equavalent vb.net code. could some one please help me with this? [DataObjectMethod(DataObjectMethodType.Select, true)] static public List<RoleData> GetRoles() { ...more >>

I am trying to convert a file from C# to VB.NET - need help.
Posted by Learner at 4/27/2006 6:34:43 PM
Hello, Here is the code snippet I got strucked at. I am unable to convert the below line of code to its equavalent vb.net code. could some one please help me with this? [DataObjectMethod(DataObjectMethodType.Select, true)] static public List<RoleData> GetRoles() { ...more >>

I am trying to convert a file from C# to VB.NET - need help.
Posted by Learner at 4/27/2006 6:34:43 PM
Hello, Here is the code snippet I got strucked at. I am unable to convert the below line of code to its equavalent vb.net code. could some one please help me with this? [DataObjectMethod(DataObjectMethodType.Select, true)] static public List<RoleData> GetRoles() { ...more >>



csharp language idea
Posted by cody at 4/27/2006 5:43:28 PM
currently when trying to change a struct returned by a property, the compiler generates an error. so if you try someControl.Location.Y = 10; you get an error which is logical if one understands how value types work. but wouldn't it be an good idea to allow such a construct and let the ...more >>

Detection of nullable types...
Posted by rubikzube* at 4/27/2006 4:54:15 PM
Hi. I'm trying to write a snippet of code to detect if a variable is a nullable<t> struct, and I can't figure out the right syntax or if such a thing is even possible... Below are the results that I got when I attempted to perform some simple tests. Nullable<int> i = 32; bool isNullable...more >>

XPath get max value
Posted by beachboy at 4/27/2006 4:09:04 PM
can we get the max value of element from xpath e.g: Xpath Query Expression: /Books/Book[@id='3'] to select XMLNode which id is "3" Can I use Xpath to get the MAX Book id? Thanks in advanced. ...more >>

backgroundworker and generics
Posted by Tommaso Caldarola at 4/27/2006 4:06:56 PM
What do I pass as argument in order to get generics type from e.Argument in DoWork? backgroundWorker.RunWorkerAsync(????); void backgroundWorker_DoWork(object sender, DoWorkEventArgs e) { MyMtehod<????>(); } MyMethod<T>(); Inviato da X-Privat.Org - Registrazione gratuita http:...more >>

CheckBox in DataGrid Header Row
Posted by vynerd NO[at]SPAM gmail.com at 4/27/2006 3:03:28 PM
How do I add a checkbox in header row so I can check/uncheck all checkboxes when header checkbox is checked?? Thanks. ...more >>

How to change application scoped settings programmatically
Posted by Mirek Endys at 4/27/2006 2:45:14 PM
Hello all, I have this problem. I have a windows service and I would like to put there Settings for starting this service. Because of this service is running under NETWORK_SERVICE account, what is the best way to use settings? Should I create my own settings or can I use classic applicatio...more >>

RunTime Error - After my web site running 2 or 3 days
Posted by news.citenet.net at 4/27/2006 2:32:13 PM
I keep getting the following error message after my web site running 2 or 3 days I share one folder with about 200 domain names Any one can help? -------------------------------------------------------------------------------- Runtime Error Description: An application error occurred...more >>

DLL does not load Dynamically
Posted by RSS at 4/27/2006 1:20:28 PM
Hi everyone, I have an app that uses some DLL's that are shared across couple = applications. There are reasons existing that prevent me from putting = them in to the GAC. Each of these app's at some point in time loads a DLL dynamically in = this fashion: =20 System.Reflection.Assembly ...more >>

How to read configuration settings in NET 2?
Posted by Art at 4/27/2006 1:00:02 PM
Assume I have this in my app.config file <applicationSettings> <MyApp> <setting name="Prefix"> <value>Get</value> </setting> </MyApp> </applicationSettings> Now, how in the world can I access this setting form MyApp, which this configuration file is suppose...more >>

AppDomain & finding assemblies [.NET 2.0]
Posted by Alexander van Doormalen at 4/27/2006 12:48:40 PM
I have a windows service which calls extensions. In 1 of those extensions I want to load a config file (extension.dll.config). In that config file I defined some ConfigurationSection's. For example: <section name="somename" type="sonenamespace.someclassname, someassembly, Version=1.0.0.0, Cult...more >>

Modulo
Posted by shumaker NO[at]SPAM cs.fsu.edu at 4/27/2006 12:42:52 PM
The VS help files list % as the modulo operator, but I read in another post that someone said it was the remainder operator. I'm getting -2 % 64 = -2, but I need 62 or -62, because I am trying to program a wrap around where I have the difference between an absolute position and a relative pos...more >>

ShowInTaskbar Causing Blank Form/Hang
Posted by Mike at 4/27/2006 12:42:45 PM
I have a winforms application that is hidden using the following code upon prompt: //Remove from the taskbar and also from alt+tab this.Visible = false; this.ShowInTaskbar = false; this.WindowState = System.Windows.Forms.FormWindowState.Minimized; Upon correct DDE prompt from another appli...more >>

close usercontrol
Posted by Hrvoje Voda at 4/27/2006 11:55:50 AM
How to close a userControl on a buttonClick? ...more >>

How can i change columnames in a datatable
Posted by Lars E at 4/27/2006 11:49:23 AM
Hi How can i change the columnames in a datatable. I am not using sql and i get the datatable from a dataset. The columnames in table "CustCont" is today "cc-custno1", "cc-custno2" and "cc-class". I think the "-" in the columnames gives me problem when doing datatable.select() later o...more >>

[C#.NET 2.0] ViewState and EventHandlers
Posted by anders NO[at]SPAM aleborg.se at 4/27/2006 11:23:01 AM
Hi! I have an application that looks something like this: ************************************************************ Order.aspx |--Thanks.ascx |--Step.ascx |--MultiView |--(View1)Whois.ascx (contains EventHandler's) |--(View2)Webbpaket.ascx |--(View3)ContactInfo1.ascx |...more >>

Rotate the world
Posted by Just close your eyes and see at 4/27/2006 10:51:02 AM
Hi All How can I rotate the world in Managed DirectX using mouse drag and zooming using Scroll, like DirectX Viewer did Thx All ...more >>

DataGridView will update & delete but will not insert. (Using auto
Posted by Dave at 4/27/2006 10:40:03 AM
I have a table with 3 fields of which the primary key is a autonumber. I have created my dataadapter, dataset and datagridview using a wizard. However, in the datagrid, the update and delete operation work but the Insert will not work. I know I to make changes to code but it does not seem to w...more >>

GetDesktopWindow() for an "active monitor"
Posted by Al at 4/27/2006 10:36:31 AM
May anybody help with the function GetDesktopWindow (imported from the user32.dll)? How to get the active desktop (monitor) window, i.e., a desktop that contains the active window? The active window handler may be acieved by GetActiveWindow() (imported from user32.dll), but I cannot realize ho...more >>

General Design Question - Class Name
Posted by Mythran at 4/27/2006 10:33:25 AM
I'm in need of some suggestions. Currently, we have a class that is named StringValidator. It has methods such as ValidateMaxLength, ValidateMinLength, IsNumber, IsMatch, ValidateNumeric, ValidateInteger, etc. There is custom validation for each method (such as IsNumber compared to IsNumer...more >>

Can't create instance of Crystal Report
Posted by VMI at 4/27/2006 9:36:03 AM
For my website, I created CrystalReportTest.rpt (through the designer in VS 2005) and I'd like to be able to display it in viewer.aspx (all in the same project). Viewer.aspx has a Crystal Report viewer but for some reason, I can't create an instance of this report. Therefore, I can't set any o...more >>

Can a generic Crystal report be dynamically instantied at runtime?
Posted by Thirsty Traveler at 4/27/2006 9:16:38 AM
The following code will instantiate a specific Crystal report (TestRpt.rpt): public static void CreatePDF() { DataSet ds = TestDAL.GetCrystalDS(); TestRpt rpt = new TestRpt(); rpt.SetDataSource(ds); rpt.ExportToDisk(ExportFormatType.PortableDocFormat, "TestRpt.pdf"); } Ho...more >>

C# Interview questions
Posted by Shark at 4/27/2006 8:52:52 AM
Hi everyone, check this out: http://tinyurl.com/rw8b4 ...more >>

Problem reading an XML string without first writing to disk
Posted by Thirsty Traveler at 4/27/2006 8:46:35 AM
I have a dataset that is returned from a sql server select that contains metadata and a cached dataset saved in an xml column. I would like to recover the dataset for use in generating a crystal pdf file. the rptds.ReadXml method can accept either a string file indicating a filename or a str...more >>

Reading text data to double crlf
Posted by amyl NO[at]SPAM paxemail.com at 4/27/2006 8:30:00 AM
I have an application that is reading data from text files to the first occurrence of a double crlf. I have this working using streamreader and using readline. However, I am hitting 500+ files at a time and this is a bit slow. I was thinking of testing this using FileStream or something sim...more >>

Protect from SYN flood
Posted by wasco77 at 4/27/2006 5:25:07 AM
Hi all, my client/server application crash because of SYN flood. (the tcp port in listening on the server is closed). Anyone know how can I protect my application? Thanks a lot ...more >>

C# calling JAVA web service - results are null
Posted by BluNuit at 4/27/2006 5:23:01 AM
I have a simple c# app that calls a Java (AXIS) web service to perform some operations. The call works fine (the java code fires and the operations are executed), but the response is always null. Other applications (besides the c# ones) are able to execute the web service and get the proper ...more >>

.Net Framework
Posted by JPS at 4/27/2006 5:19:43 AM
When you uninstall the .Net framework, is the ilasm.exe file always removed? I am trying to test for version installations and when a version of the framework is removed, the directory and some files still exist. ...more >>

ConfigurationSection and Class Library
Posted by Alexander van Doormalen at 4/27/2006 3:50:28 AM
Is it possible to load data from a configuration file within a assembly (class library)? The hosting exe file is something completely different which isn't gonna load my config file. I already added a App.config to my project and its copied to my output directory on build. Only it seems its no...more >>

Lotus Files
Posted by apondu at 4/27/2006 3:47:47 AM
Hi, i was searching for some information about Lotus files and C#.Net. I wanted to know whether it is possible to open and read the content from the Lotus files using C#.Net. If anyone does know about how to do it. It would be great if anyone could give me some information about how to do it....more >>

Help on Silent Download of a File from Server To client
Posted by Jay at 4/27/2006 3:25:17 AM
Hi, I have some unique situations where i need to transfer a file from Server to client but without any Open or Save dialog box shown to the user. The file should save itself directly to client machine. I want to transfer word (.doc) file from server to client without open/save dialog box. ...more >>

CSharpCodeProvider: referencing other generated "InMemory" assembl
Posted by Jan at 4/27/2006 1:18:01 AM
I'm using the CSharpCodeProvider to buils some assemblies @ runtime which are never saved as files (cp.GenerateInMemory = true;). The generated assemblies are hierachically dependent on each other so I generate the "bottom" assemblies first. How do I add a dependency to another previously lo...more >>

Type.GetType(String) not working
Posted by Gugale at Lincoln at 4/27/2006 12:34:24 AM
In my code Type.GetType(text) works when text="System.IO.File". However, it doesn't work when text="System.Windows.Forms.Button". In general it works for classes in System.dll assembly. Is there anyway I can make it work for classes in System.Windows.Forms.dll assembly? Thanks SG ...more >>


DevelopmentNow Blog