Groups | Blog | Home


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
May 2008
June 2008


all groups > dotnet framework > december 2006

Filter by week: 1 2 3 4 5

Retrieving DataTable results programmatically
Posted by Barry at 12/26/2006 12:00:00 AM
Hi I am using DataTable/DataSet in VS 2005, The sql statement is coded in script, i want to know how to retrteve results by changing the SQL commandtext progrmmatically something like this (possibly) dsSearchOperators.Operator.Select("State='CA'"); or using the SQL Statement modifie...more >>

How to invoke a function in dll dynamically in .NET?
Posted by Bill Gates at 12/26/2006 12:00:00 AM
The path of the dll will be known in run-time. Thanks! ...more >>

Configuration problem
Posted by Rastko Soskic at 12/25/2006 3:24:33 PM
I have trouble reading configuration files (configuration for class library (dll) project). Although I've added configuration file and properly added configuration file, when I try to obtain settings via configuration manager.... simply I can't. For example ConfigurationManager.ConnectionStri...more >>

How to create an application that support modules
Posted by Ben at 12/24/2006 8:35:00 AM
Hey, I want to create an application that supports modules, similar to what ERP systems offer. For example, ERP systems typically consist of modules such as finance, accounting, production, human resources, marketing, sales etc. What is the general architecture for such an application? S...more >>

generate TypedDataSet with custom DataTable via designer
Posted by orenl at 12/24/2006 6:07:45 AM
Hi, Im using the VisualStudio 2005 designer to create typedDataSet (drag & drop from the service explorer). All the DataTables in the generated code inherit from System.Data.DataTable, I would like the dataTables to inherit from MyDataTable (a custom DataTable) instead. How can I do that witho...more >>

Temporarily installing .NET Framework 1.1
Posted by Howard Kaikow at 12/23/2006 4:01:50 PM
I have an OS that has VS .NET 2002 installed, so it has .NET Framework 1.0. Can I install .NET Framework 1.1, for several months, use a particular app requiring 1.1, then uninstall 1.1 without affecting the current VS .NET 2002 installation? ...more >>

System.Diagnostics.Process throws System.NotSupportedException
Posted by Joe K at 12/22/2006 1:57:02 PM
I just recently ported an application from .Net 1.1 to .Net 2.0 and am getting the below exception. Basically it looks like Process.TotalProcessTime and Process.StartTime now throw an exception when I try to retrieve these properties from a remote system (in this case remote system in Win2K). ...more >>

difference between a .dll and .ocx????
Posted by giddy at 12/22/2006 11:54:51 AM
Hi , i'm a C# with programmer with a prety good background , but i'm embarrased to admit i'm still not clear about dlls and ocx's i've seen a good set of links and i did'nt get much out of them.. .so could someone tell me : the difference between a .dll and .ocx???? .... also. .are ocxs ac...more >>



Sign an Assembly
Posted by abhimanyu at 12/22/2006 5:04:34 AM
Hi, Can I sign an assembly(DLL) after building it. I do not want to use VS and check the sign | Delay Sign option. I want to sign it using some utility like al.exe or sn.exe but could not get the exact syntax. Is it possible to sign it after it is built ? I am not using any of the options for...more >>

2.0 Generics - Feature or Bug?
Posted by Zachary Turner at 12/21/2006 8:24:35 PM
Consider the following generic class class MyClass<T> { private MyInterface _SomeInterface; private string _SomeFormatString; public string GetSomeFormattedString() { T[] ArrayOfTs = _SomeInterface.GetArrayOfTs(); return String.Format(_SomeFormatString, Ar...more >>

HttpListener BeginGetContext does not seem to handle more than 2 request simultaneously
Posted by Kunal at 12/21/2006 2:41:15 PM
Hi Friends, I'm trying to host a webservice that will receive/process multiple client requests simultaneously. For this purpose, I wrote the following code, but it does not seem to be handling more than two at a time. I put in a few console prints and have also attached the output. Here it go...more >>

detecting 12 or 24 hour support for DateTime
Posted by freddyboy at 12/21/2006 11:52:19 AM
Hi I'm trying to detect if the current culture support 12h or 24h? I need to change string values based on the hour formatting. I tried to DateTime dt = new DateTime(1,1,1,14,0,0,0); string s = string.Format("{0}:00", dt.Hour.ToString()); // I want s to output 14:00 when using 24h and...more >>

Framework 3.0 Installation Problem (99% CPU Utilization)
Posted by gk1962 at 12/21/2006 8:22:34 AM
I am attempting to install the .NET Framework 3.0 and it is pegging the CPU when trying to load the installation components. I ran the installation without any problems on my desktop, but cannot get it to run on my laptop. For the last 30 minutes the setup has been displaying "Setup is loading i...more >>

List of shortcut keys for RichTextBox
Posted by peterbf at 12/21/2006 3:53:21 AM
Hi I have been looking for a list of shortcut keys for the RichTextBox. I need this because I use a RichTextBox which must only contain text. So I have been capturing the shortcut keys Ctrl+v to make sure that only text would be pasted in the RichTextBox. Big was my suprise one day when I h...more >>

Call Graph from Assembly or Code
Posted by Aamir Mahmood at 12/20/2006 7:11:00 PM
Hi guys, I need a tool that can create a method call graph from analysing my C# code or assembly. I actually want to list functions being called by each function recursively (whether same or different class, public or private or protected or static functions). And it should be done by lo...more >>

Rule Engine
Posted by Ram Shankar Yadav at 12/20/2006 4:41:56 PM
Hi guys! I'm planning to to my MS Software Systems Thesis on Rule Engines. Although I searched a lot on the we I'm not able to get any specific help on XML based Rule Engines in .NET C#. Please help! Thanks in adavnce ram :) ...more >>

Problem with network share FullTrust since IE7 install
Posted by Steve Mowbray at 12/20/2006 1:30:03 PM
Hi I setup FullTrust on a network share using caspol so I could maintain my code on a network share and also build and run from the same place using caspol. Since installing IE7 yesterday the network share security level has been dropped and I cannot reinstate the FullTrust using caspol com...more >>

Debug or Release ?
Posted by mikemeamail NO[at]SPAM net2000.ch at 12/20/2006 12:13:21 PM
Hi everybody, Is there a simple way to know from the code if an assembly is in debug or release mode ? Concretely, when my application is running, i'd like to know in which mode it is configured. Any help appreciated. Mike ...more >>

typecast array of object to bindinglist of object
Posted by param NO[at]SPAM community.nospam at 12/20/2006 10:49:07 AM
Hi all, I have a Web Service that returns a bindinglist of objects. However, on the client side it comes across as an array. Is there a way in VB.Net to typecast the array back to a bindinglist? TIA! ...more >>

How to detect a handle leak with a GC
Posted by joproulx NO[at]SPAM hotmail.com at 12/19/2006 6:42:15 AM
After trying to investigate a handle leak problem in my application, I found out this post which pretty much describes the behavior that I have experienced: http://www.dotnet247.com/247reference/msgs/51/255221.aspx And here is part of my code: private void Socket_AcceptConnectCallba...more >>

Reflector not running under correct framework version
Posted by TomC at 12/19/2006 2:51:54 AM
Hi I have written a plugin for Lutz Roeder's Reflector tool. The plugin requires framework version 2.0. On my machine at home and my machine at work (XP SP2 and SP1 respectively) the plugin works correctly - I have both 1.1 and 2.0 of the framework installed. However a colleague at work wh...more >>

saving collections in Settings.Settings
Posted by Irfan at 12/18/2006 3:51:33 PM
hi, I wanted to save a simple collection in Settings.Settings but i am not able to retrieve it. Although no errors while saving it but no value are retrieved either. Do i have to do something different.Am i missing something? This is what i do; SortedList x = new SortedList(); x.Add(1...more >>

problem in data logging from within HttpListener
Posted by Kunal at 12/18/2006 2:27:11 PM
Hi friends, I have tried to host a web service using HttpListener of .NET 2.0 (with help from the article http://msdn.microsoft.com/msdnmag/issues/04/12/ServiceStation/default.aspx). The server runs fine, accepts and responds to requests just fine. I'm using the synchronous model (GetContex...more >>

Handling multiple web requests parallely
Posted by Kunal at 12/18/2006 2:24:22 PM
Hi friends, Can anybody share with me code snippets of handling simultaneously multiple http requests from different clients ? I'm using the HttpListener for this purpose. Have used the BeginGetContext model but it does not seem to work. Requests are still being handled sequentially. I tried ...more >>

Problem with format of msmq messages, .net
Posted by Peter Hurford at 12/18/2006 8:47:16 AM
Hi, First time using msmq in .net environment and I think I am missing something obvious. I am using the System.Messaging classes Message & MessageQueue to send a message. I want to send a plain-text message (e.g. "Test"), but by default the Message class serializes it to xml (e.g. "<str...more >>

Why is XML the core part of .Net Framework?
Posted by Hooyoo at 12/18/2006 3:35:09 AM
I think it's easy to understand CLR is the core part of .Net Framework. Bute how to understand XML is the core part of .net framework? Can you talk something about it? ...more >>

regarding shared assemblies in .net
Posted by AVL at 12/18/2006 1:15:01 AM
Hi, How do we refer a shared assembly in a web application/ Any samples.......more >>

Control Reference from String
Posted by Barry at 12/18/2006 12:00:00 AM
Hi I have programmatically create about 5 TextBox controls on a Windows Form , their name are "txt1", "txt2", "txt3" etc which method/function return a reference to the TextBox control given the name "txt1" etc; something like TextBox txtBox1 = (TextBox)Control.FromName("txt1"); TIA...more >>

XML document in a treevie needs 57secodns
Posted by remo at 12/16/2006 9:16:59 PM
Cant believe it: Loading an XML document (150kb) in a treeview using .net 2.0 using 2.0 seconds!!! That is unusable!!! Loading the same document in Iexplore, it needs 1/100 of a second That could not be .net That is incredible, and non usable. What in the hell do ms wasting the time... re...more >>

"Safely Remove USB" via .NET
Posted by Alex Maghen at 12/16/2006 11:11:00 AM
I'm trying to figure out how, from a .Net Windows Forms application, I can programmatically do the "Safely Remove Hardware" functionality to unmount (or make ready for unplugging) a USB device - specifically, a USB-connected storage drive....more >>

Encoding in Textboxes
Posted by Ferdinand Zaubzer at 12/15/2006 4:35:09 PM
Hello, What character encoding is usually used in Textboxes in the .Net Framework? Regards, Ferdinand Zaubzer...more >>

Nullable types problerm
Posted by oscar.acostamontesde NO[at]SPAM googlemail.com at 12/15/2006 6:05:33 AM
Hello: I'm tryn to detect if a type is a nullable type. I'm using the following code: using System; using System.Reflection; using System.Collections.Generic; public class Test { public static void Main() { Nullable<int> n = 0; Console.WriteLine(IsNullableType(n....more >>

Enterprise Data Blocks and command timeout
Posted by MarkusJNZ NO[at]SPAM gmail.com at 12/14/2006 11:01:57 PM
Hi, I am using 2.0 DAB to return a datareader (ASP.NET 2.0) // Create a database object Database db = DatabaseFactory.CreateDatabase("ConnectionString"); I then use the following to return a dataReader IDataReader _reader = db.ExecuteReader(CommandType.StoredProcedure, "spStor...more >>

Problems with COM-Objects
Posted by Greg Cyrus at 12/14/2006 9:34:21 PM
Hi, I am using a COM-Object within a dotnet v1.x application. The COM-Object works quite "fine" on the computer where the deveoping environment runs. BUT when I launch the application on another Computer the COM-Objekt slows down dramatically. (each interaction such like sending or getting...more >>

Terminal Font ?
Posted by JerryWEC at 12/14/2006 4:55:47 PM
We have used Terminal Font in the past with Microsoft tools like VS6 / VB6, etc... We need to use the Terminal Font in .net and on Windows XP machines. It appears that the Terminal Font is no longer available for use. Can anyone shed some light on this subject? There are some ascii chara...more >>

Problems with Session.IsNewSession - Please Help
Posted by rsouza at 12/14/2006 5:27:45 AM
Hi. Recently here in my work we added the following code in the Global.asax file to handled the session expired and redirect users to the home of the site explaining them the occurred (some thing like "Your session has expired, please restart your navigation."). public void Session_Start(Ob...more >>

Connection trough MarshalByRefObject
Posted by Krys at 12/14/2006 1:05:47 AM
When i invoke a method (which tries to create a database query) from = client on server, server throws COMException. this code is in dll used by server and client: public class zdalne_objekty : MarshalByRefObject { public string testowa() { Reco...more >>

Keys.Oem1 etc to real character
Posted by Pieter at 12/14/2006 12:00:00 AM
Hi, How can I convert KeyCode's to the real character? For instance: the row of keys on a keyboard under the F-keys return as Keycode the Keys.Oem1, Keys.Oem2 etc... Depending on the keyboard layout it is another character (and also depening on the fact if you have used Shift or Alt Gr). ...more >>

Retrieve data from nested repeater?
Posted by Zamael at 12/13/2006 12:04:44 PM
Does anyone know how I would go about doing this? I've tried numerous things... but none seem to work. Here's some code of what I've done: I'm trying to retrieve these label values: Dim FVProdPartNum As Label = CType(frmProduct.FindControl("lblProdPartNum"), Label) Dim FVProdDesc As Label =...more >>

Windows registry access permission problem
Posted by Pe2per.Ro2nie NO[at]SPAM gmail.com at 12/13/2006 12:00:26 PM
Hi, I am trying to read the 'Protected Storage System Provider' sub keys and it requires access permission. I would like to access this key thorugh my program, how do I do this? My code is Dim RegKey as RegistryKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Protected Storage Sy...more >>

Change the local port of a server connection after connection is established
Posted by Samik R. at 12/13/2006 11:57:12 AM
Hello, I am trying to write a multi-threaded server app, where the server listens at a particular port and creates a new thread each time a client connection has been received. The new thread then handles some handshaking and some file transfer. The problem is as follows: if 2 or more cl...more >>

How do I capture the output of a command line app in .NET?
Posted by kellygreer1 at 12/13/2006 10:23:12 AM
I know I can execute another app using System.Diagnostics.Process.Start. But how do I execute an app where I expect output and capture that output in a String variable inside of .NET? Thanks in advance, Kelly Greer kellygreer@nospam.com change nospam to yahoo ...more >>

please, please help - can't access HTTPFileCollection
Posted by pbd22 at 12/13/2006 9:09:13 AM
hi. i am having probs accessing the HttpFileCollection. the count/length is always zero. the file upload parameters passed to the page that should be getting the httpfilecollection looks like this. uploadprogress.aspx?&video_2=C%3A%5CDocuments%20and%20Settings% 5CAdministrator.FTP-SERVER%5...more >>

Assembly
Posted by Roop at 12/13/2006 12:26:25 AM
Hello All, Please consider this Query ... I know i am asking a very silly thing, but as the Beginner of .NET Frame Work, ? i would like to know the path of my project Assembly.I found in bin directory but unable to get the Assembly. Regards Roop ...more >>

How to produce native code in .net 2005?
Posted by Hooyoo at 12/12/2006 7:51:38 PM
Hi, guys Is there any settings in .net 2005 that can produce native code in .net 2005? I need to deploy my application in a machine without CLR. Thanks. ...more >>

Intermediate Language troubles (Advanced Question)
Posted by Mark Ingram at 12/12/2006 5:55:58 PM
Hi, I am trying to track down a very odd bug that only occurs when it is built on one machine. I try to calculate the width of a piece of string (needed to calculate the width of a button). On one PC upto 2 letters are missed from the text string, however on the other PC it works just fine. ...more >>

A Solution with Multiple Projects
Posted by Samuel Shulman at 12/12/2006 5:19:45 PM
Hi all I am trying to add more than one project to a solution in .NET 2005 How can that be done? Thank you, Samuel ...more >>

Load XAML in "Sub Main" in (WPF)?
Posted by Horst Klein at 12/12/2006 4:15:10 PM
I try to load a xaml on this way the XAML-Window is shown. But if I close the Window the process does not stops! What's wrong? <Application x:Class="App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Startup="AppSta...more >>

.Net LDAP Authentication Problem (ADAM)
Posted by steve_ager NO[at]SPAM yahoo.co.uk at 12/12/2006 3:24:26 PM
Hi I am trying to test LDAP authentication with ADAM from .NET v1.1 I am using the System.DirectoryServices objects as per an example that is available on the microsoft support site (VB) and MSDN (C#). http://support.microsoft.com/kb/326340 and http://msdn.microsoft.com/library/default.a...more >>

Optional Parameter Dataset default Value
Posted by mianiro at 12/12/2006 10:45:11 AM
Im setting up a procedure with an optional dataset parameter in VB.net. You must set a default value for optional parameters. Does anyone know how to set the default value of a dataset to nothing? I tried DBNull but that did not work. Any help would be appreciated! Thanks ...more >>


DevelopmentNow Blog