Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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# > august 2006 > threads for friday august 4

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 31

Come with us
Posted by omar.abid2006 NO[at]SPAM gmail.com at 8/4/2006 11:37:03 PM
hi, This is the real workgroup of Visual Basic 2005 express goto : http://groups.google.com/group/VB2005 thank you ...more >>

soapsuds and configuration file
Posted by Gugale at Lincoln at 8/4/2006 11:04:03 PM
Hi, I used soapsuds tool to create an interface assembly for a SAO. I created a client which uses this SAO and added a reference to the interface assembly. The client program worked well when I used RegisterWellKnownClientType method to register the SAO. However, when I used a configuration...more >>

Convert large XML file to UTF-8
Posted by bbb at 8/4/2006 9:29:40 PM
Hi, I need to convert XML files from Japanese encoding to UTF-8. I was using the following code: using ( FileStream fs = File.OpenRead(fromFile) ) { int fileSize = (int)fs.Length; int buffer = fileSize; byte[] b = new byte[buffer]; using(StreamWriter sw = new StreamWriter(toFile, ...more >>

Console/Windows application
Posted by wheels619 NO[at]SPAM gmail.com at 8/4/2006 9:09:34 PM
Hi, I have a program that has options to run as both a GUI and a console. The program entry point has a c# file with the "static main...." It checks some parameters, if no parameters, it launches the GUI by: if(args.Length == 0) { Application.Run(new MainForm()); } If I double click on ...more >>

Is there an MFC 'CMAP' equivalent in C# ?
Posted by Bishman at 8/4/2006 7:21:58 PM
.....Or can any one suggest a method of searching an array and retrieveing an object associated with the value I am searching for ? I have an 'Advisor' object holding info about... Sales Advisors. I need to hold these in an Array, but need to be able to retrieve and update the object value...more >>

Finding which interfaces an instance implements
Posted by amaca at 8/4/2006 5:47:14 PM
Given: interface ICompass{} interface INorth : ICompass{ ... stuff ...} interface ISouth : ICompass{ ... stuff ... } interface IEast : ICompass { .. stuff ...} interface IWest : ICompass { .. stuff ... } interface Box{ ... stuff ... }; interface Carton { ... stuff ...}; interface Bag { ....more >>

How to process and categorize bounced email?
Posted by Frank at 8/4/2006 5:00:33 PM
Hello All, I am exploring and developing a plan for a C# web app or windows app to handle bounced emails. Basically, I need to develop a system where I weed out bad addresses in our db...but after reading the articles listed below, I see that there are various responses the server will ...more >>

Retrieving identity value from SQL Server
Posted by Dave at 8/4/2006 4:18:01 PM
I have a form with a label that should show an invoice number. The invoice number should be generated by sql Server using an autoincremented technique. However, after reading several articles, it seems that I can only retrieve this value after an INSERT has been done in the database. I want to...more >>



Click Once
Posted by DBC User at 8/4/2006 4:17:27 PM
I am trying to find out where does Click Once put the files in Client Machine. I can not locate them in the Program files. Only trace I can find is under userid.local documentation. Could someone help me on this? Thanks. ...more >>

Confused about x64 and c#
Posted by Frank Rizzo at 8/4/2006 4:10:21 PM
Hello, I need to port a fairly large app to x64, as it needs access to more than 2GB. So I ported the app to VS2005 (from vs2003). Now the Project Properties have a Build Tab, which has a Platform Target dropdown. There is AnyCPU and x64. I've been reading that AnyCPU means that the app ...more >>

Network access for DTC
Posted by mehdi_mousavi at 8/4/2006 4:02:13 PM
Hi folks, Consider a client program that uses .NET Framework 2.0, and the Transaction namespace, to do some update/insert against a given database using the SQL provider: using (TransactionScope ts = new TransactionScope()) { //Do some update/insert commands against some tables... ts.Co...more >>

why float [again]
Posted by Martijn Mulder at 8/4/2006 3:09:11 PM
System.Drawing.Drawing2D.Matrix comes in two flavors, int and float. When doing graphics, you will you use float. Type double would be better, since it is, when well applied, simply more acurate then float is. But things are that there is no constructor for Matrix that accepts float. But th...more >>

Visual C# Express and Web Services
Posted by terry.trent NO[at]SPAM gmail.com at 8/4/2006 3:01:26 PM
I'm new to c# and Visual C# Express, and to normal programming in general (some background in web programming), and i have a question vital to my current project. Basically, i have been asked to learn how to create new extensions for a web application, and turns out that i need to use Visual S...more >>

.NET and C#
Posted by komes at 8/4/2006 2:15:45 PM
Hi everybody. Is in .NET any class, which converts .NET data types to c# types? (i.e. gets a variable of one of .NET data types and returns native c# type?). Rgds, Komes ...more >>

Tree View Question
Posted by sianan at 8/4/2006 2:01:50 PM
I am having a problem with the TreeView control. What I am trying to do, *should* be simple. When the user selects a node in my TreeView, I first check to see if the data for the object referenced by that node has changed. If it has, I want to give the user the option of either selecting the n...more >>

Dynamic casting at runtime
Posted by DaTurk at 8/4/2006 1:53:04 PM
Hi, This is a question brought about by a solution I came up with to another question I had, which was "Dynamic object creation". So, I'm curious if you can dynamically cast an object. If you have two object which have a common base class, they can both be cast up to the base class, but if ...more >>

Bitmap from binary file
Posted by gsmith NO[at]SPAM bach-simpson.com at 8/4/2006 1:03:13 PM
Hello, I am developing a video recording (mjpeg) system which records large binary files. I need to read the JPEG data from the binary file and create a bitmap object to be displayed. Unfortunately I cannot find an efficient way to do this in C#. I need to do this at 10fps+ with 1hour+ data ...more >>

Memory Compression
Posted by Extremest at 8/4/2006 12:29:43 PM
I there a way to compress the data that I have in memory so I can hold more. My program eats a lot of memory and would like to have it do more but can't because of the memory issue. ...more >>

generics collection question
Posted by cwineman at 8/4/2006 12:23:05 PM
Hello, I'm hoping to do something using Generics, but I'm not sure it's possible. Let's say I want to have a bunch of business objects and a data access class cooresponding to each business object. For each business object, I would have something like below: public class Apple { //...more >>

inheritance not working properly -- Help please!!
Posted by ThunderMusic at 8/4/2006 11:47:55 AM
hi, I have two classes in C#, one is the base, the other inherits from the base class... both are generics... Here is the definition of the second class : public class CNetworkServer<PlayerInfos> : CNetworkClient<PlayerInfos> where PlayerInfos : CPlayerInfos, new() { } Here is the pr...more >>

This UI on this forum sucks!
Posted by dba123 at 8/4/2006 11:26:02 AM
Who can I contact to complain about this entire newsgroup UI? It's horrible, and half the time, the right pane doesn't load...even in other browsers. It's sluggish as well, just very choppy. -- dba123...more >>

The method or operation is not implemented
Posted by dba123 at 8/4/2006 11:25:01 AM
I took the code from here and tweaked it to our needs. One of the methods is erroring out throwing an exception and I'm not sure why: object IConfigurationSectionHandler.Create(object parent, object configContext, XmlNode section) { throw new Exc...more >>

Larger images in a treeview
Posted by pigeonrandle at 8/4/2006 11:13:37 AM
Hi, Has anyone seen any examples of how to create a treeview with 'big pictures' in it instead of the normal 16x16 images? Thanks in advance, James Randle. ...more >>

Dynamic object creation.
Posted by DaTurk at 8/4/2006 10:35:24 AM
Hi, I have three interfaces lets call them parent, child-A, and child-B. I want to have one variable, that can be either child-A, or child-B at run time. I just can't seem to figure out how to do it. They both inherit from parent, and I tried holding a parent variable, and then casting it ...more >>

How do I to include ".Net Framework 2.0" in my application intallation?
Posted by Carlos VillaseƱor M. at 8/4/2006 10:20:36 AM
Hi Everybody! I just developed my first application in C#.Net 2005, but I encounter thatif I create a simple deployment application to install it in other computers, when the deploymentapplication is executed, always appears the message that asks for ".Net Framework 2.0" actualization in the t...more >>

Help with enable/disable save button
Posted by Rick Shaw at 8/4/2006 10:11:42 AM
Hi, can anyone help? I am fairly new to C# and need help with a functionlity in my app. What I need to accomplish is to be able to enable the SAVE button as soon as the user modifies a data in the form. Data could be in a datagridview or textbox. All data are connected to the tables/dataset...more >>

Convert StringWriter to StringReader
Posted by das at 8/4/2006 9:45:14 AM
hello all, might be a dumb one, I have a StringWriter to which I write some text, after doing this I want to read this into a StringReader so that I can manipulate the data ex: while(strRdr.Peek() > -1) { // Read data and load into a Physical File - StreamWriter } I know that this ca...more >>

pausing system clock
Posted by Carlos Lozano at 8/4/2006 9:22:02 AM
I have requirement to pause the system clock until a certain event (Win XP). Then the clock will be resumed to the real time. I think it can be done using core functions and/or redirecting the time/date call to a temporary service routines, then redirect to the original. I will appreciat...more >>

Visual Source Safe
Posted by M.Siler at 8/4/2006 9:18:39 AM
Two Questions: 1. Can you install Visual Source Safe on one box and the database (the code) stored on another. I know there might be a degree of latency over the network, but we only have 3 developers. 2. Does anyone know of any gotcha running Visual Source Safe on a cluster. Windows 2003 ...more >>

string.IsNullOrEmpty() - is it always enough?
Posted by anonieko NO[at]SPAM hotmail.com at 8/4/2006 8:44:26 AM
string.IsNullOrEmpty is a very flexible function but watch out sometimes you really mean to test not just for 'empty' strings but also 'blank strings'. In other words, if you use string.IsNullOrEmpty on string containing just spaces it returns false. Which is a correct behaviour but not yo...more >>

hoto get screen resolution of a pocket pc...
Posted by Jan at 8/4/2006 8:07:01 AM
Hi How can i get the screen resolution of a pocket pc? ...more >>

Problem with IDataObject
Posted by dmeglio NO[at]SPAM gmail.com at 8/4/2006 8:00:06 AM
I have the following code: foreach (System.Type type in this.slideModules.Values) { IDataObject ido = Clipboard.GetDataObject(); if (ido.GetDataPresent(type)) { slide = ido.GetData(type) as RC.Objects.RCSlideBase; break; } } The GetDataPresent returns true. However, the GetData...more >>

How to know the base class of a control?
Posted by osmarjunior at 8/4/2006 7:58:12 AM
I wanna check if a control is inherited from an specific class, how do I do this? Example: I wanna check if a control is inherited from ContainerControl class. ...more >>

Threadpool question!
Posted by DBC User at 8/4/2006 7:53:13 AM
I was trying to do a batch process, where I have all the requests in a table. I need to scan the table and for each entry I need to run a thread (since it is long running process). This table get added dynamically while this batch process is running. So I am trying to findout the optimal way to...more >>

Carriage returns in Word Document
Posted by Doug at 8/4/2006 7:48:38 AM
How do I add a carriage return in a Word Document using C#? When I try the \r\n it doesn't work, it prints the character that represents a carriage return, but doesn't actually do a carriage return. ...more >>

How to delete first row from an Excel Sheet using C#.Net
Posted by B.N.Prabhu at 8/4/2006 7:18:02 AM
How to delete first row from an Excel Sheet using C#.Net. Please Help. Its very urgent. ...more >>

DLL-Function with Variant used in C#
Posted by Heike at 8/4/2006 6:37:01 AM
Hello everybody, I have a Problem with C Sharp. I have to use external functions in DLLs. This Functions are written in Visual C++ 6 like this: int (__stdcall *GetGlobalValue) (VARIANT Appl, VARIANT &vRetVal); Now for the first time I want to use C Sharp and I find some examples to use ...more >>

Pulling Software Information using WMI
Posted by esparkman at 8/4/2006 6:29:19 AM
Hey guys I am working on a application, that will pull our inventory campus wide. I'm having troubles getting it to pull our software serial numbers. It keeps throwing a Exception when it gets to that point. Below is the code I am using. If someone could give me a few ideas. The app is in Consol...more >>

MasterPage
Posted by Tom at 8/4/2006 6:22:01 AM
I have a VS.NET 2005 WEB application where I place all of my common controls (ie header, nav, footer) into a mater page template. Then all of my web forms inherit from the mater page template. All is well. In the code behind in my materpage I have tried to code the isPostBack and the Page.Mas...more >>

Crystal Reports Viewer question
Posted by glbdev NO[at]SPAM yahoo.com at 8/4/2006 6:09:54 AM
I am running Crystal Reports in Visual Studio 2003. I have CR version 11 installed on my system. I noticed on the page that the CRviewer has no "print" button in the toolbar. I went into the HTML and tried to manually install the "HASPRINTBUTTON" but this doesn't work. The "HASPRINTBUTTON" d...more >>

How to add "ToolTip on toolTip1" to a property grid
Posted by Mark Collard at 8/4/2006 5:38:02 AM
I've noticed that when you add a ToolTip component to a Form (or UserControl) the other controls on the form display a property in the property grid called "ToolTip on toolTip1", so you can set the tooltip text on the selected control. I'm currently writing my own component, and I want to add ...more >>

Printing Document using print preview control...
Posted by sachin at 8/4/2006 5:17:47 AM
Hi I am working on report using print preview dialog control in windows application. Report is displayed properly in control. With paper size 850X1350 (Legal)(Lanscape mode=true) . But when page goes to printer for printing. It consider it as A4 size. and truncate printing document...more >>

Closing forms!
Posted by ahmad.humyn NO[at]SPAM gmail.com at 8/4/2006 4:53:43 AM
How do you see what forms are running in your app. And how do you close them, even if the form you want to close is not owned by the form you want to close all the forms from. Thanks to anyone who can help. Regards ...more >>

How to put a web page as a web control
Posted by Josema at 8/4/2006 3:39:01 AM
Hi, I have a page called control.aspx and another called general.aspx I would like to know, if its possible put the control.aspx inside general.aspx as a control dinamically by code. -- Thanks a lot. Regards. Josema...more >>

Async TCP Socket Problem with bells on
Posted by pigeonrandle at 8/4/2006 1:36:43 AM
Hi, I'm looking a TCP guru, so i apologise for any campanologists i may have attracted by my title. I'm using the following example code from MS (perhaps i am doomed from the outset!) .. Server: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconnon-blocki...more >>

Accessing running Assembly
Posted by GizMo at 8/4/2006 1:14:18 AM
Hi all, I'm wondering if it is possible in C# ( + Reflection ) to do something like this : Assume that a Server.exe ( which is a .Net assembly, let's say WindowsApplication ) is running on th PC. >From a Client.exe, Load the Server.exe assembly THAT IS RUNNING. I mean without creating a ne...more >>

serialize haschtable
Posted by Lamis at 8/4/2006 12:37:02 AM
Hi, I have a tree structured object. Each node of the tree has a haschtable. I need to XML serialize my object... what is the best way to xml-serialize haschtable -- LZ...more >>

Is it good or bad practice to prefix private class variables with underscore in C#
Posted by PromisedOyster at 8/4/2006 12:33:07 AM
Many in our development team have came from a C++ background and are in the practice of prefixing private class variables with an underscore to improve readability and avoid naming collisions with local variables and parameters. This has become our standard. ie private string _name; as opp...more >>

Notified when system date has been changed.
Posted by Sin Jeong-hun at 8/4/2006 12:15:53 AM
My application displays today's date on the form like; Friday August 4, 2006 This information is determined at the form's constructor. But what about the user has kept the form shown so long that the next day comes ( in this case, Saturday August 5, 2006)? One simple way is to check the today...more >>

how to read word document in ASP.Net & C#
Posted by Jay at 8/4/2006 12:03:41 AM
Hi, I need to read word document file in ASP.net and place it in a text box . How to do it ? i tried : Word.Application app = new Word.ApplicationClass(); object nullobj = System.Reflection.Missing.Value; object file = @"C:\Suneetha\Ques.doc"; Word.Document doc = app.Documents.Open( ref ...more >>

Newbie: Is it possible to create an EventHandler for DataSet.HasChanges()?
Posted by nvx at 8/4/2006 12:00:00 AM
Hi, I'm new to C# so please tell me in case this is completely wrong... I need to catch the change of DataSet.HasChanges() to indicate that data has been modified in any databound control. If this is possible to code, please, add some sample code. Maybe I could catch changes in all these databoun...more >>

Detect file type
Posted by Alan T at 8/4/2006 12:00:00 AM
Is there a way to determine what type of file it is? eg. MyDoc.doc returns Word MyDoc.xls or MyDoc.csv returns Excel MyDoc.ppt returns PowerPoint .... etc ...more >>

Need help to convert the following c# code to vb
Posted by Vikas Kumar at 8/4/2006 12:00:00 AM
Hi, I'm not able to convert the following dll import statement in C# to VB.NET. Can any one please help me in this respect? [DllImport("iphlpapi.dll", ExactSpelling = true)] ...more >>

@ design time or @ runtime ?
Posted by Janiek Buysrogge at 8/4/2006 12:00:00 AM
Hi, Is there any kind of check like #if DESIGNER ... #endif I don't want my control's OnLoad code to execute whan I drag it onto a parent container, only when I run the application. Thanks, JB...more >>

Check assembly for integrity?
Posted by Martin Carpella at 8/4/2006 12:00:00 AM
Hello, I'm currently developing a Windows Service that should dynamically load assemblies ("plug-ins") for special tasks. As the service runs with Local-System privileges I am not willing to load arbritrary code without verifying it first. My idea was to check if the assembly is signed with t...more >>

ListBox and List
Posted by Ian Semmel at 8/4/2006 12:00:00 AM
If I have a List<> and a ListBox.DataSource = List then it initially displays OK, but if I change the order of the List, the displayed text in the ListBox doesn't. How do you make this happen ?...more >>

HowTo...
Posted by Jacek Jurkowski at 8/4/2006 12:00:00 AM
.... programically: 1) Bring to user list of an e-mail in outlook express inbox or sent items. 2) Choose a message. 3) get an raw message or eml file to my application. Any links? ...more >>

Redirect to error page
Posted by Dylan Parry at 8/4/2006 12:00:00 AM
Hi folks, I've been searching for this for some time, but all I seem to be able to find are pages describing how to set custom error pages, whereas what I want to do is simply redirect the user to a standard error page. This pseudo-code demonstrates what I want to do: if (condition) { ...more >>

Fast streaming via Remoting
Posted by victor at 8/4/2006 12:00:00 AM
Hi, Is it possible to do fast data streaming, for example displaying images with a pace of 15 or 30 frames per second, thru a Remoting-TCPIP channel? (Images can be 512x512 or 1Kx1K). Thanks, victor...more >>


DevelopmentNow Blog