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# > january 2006 > threads for monday january 30

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

Displaying XML-File in Webbrowser Control
Posted by Stropher at 1/30/2006 11:52:00 PM
I have just created a Word document, saved it as XML-file. Now I have created a WebBrowser-Control and would like to use it to display the file, but how? Could anyone give me some clues on how to do this? Thanks in anticipation, Stropher ...more >>

Winsock and C#
Posted by Jefe at 1/30/2006 11:21:26 PM
Hi Guyz well I wanna implement a tcp chat program with C# and winsock, and I know that I should use Asynchronous methods so my windows program won't be blocked, but in my application both clients could send and receive messages at the same time, which means I can not begin recieving after sen...more >>

ConfigurationManager not accessible
Posted by robertino at 1/30/2006 11:16:27 PM
Hi All, (VS 2005 Pro, Win XP Pro) I'm trying to read some app settings from my app.config file (normal Win app), have included the System.Configuration namespace in my app, but when I try to access the ConfigurationManager class, I find no mention of it at all! According to the online help...more >>

Resizing Form
Posted by Dino Buljubasic at 1/30/2006 9:16:09 PM
Hi, My form has a number of panels that define layout of the form. These panels are either docked or anchored and contain number of controls such as other panels or other controls. When I resize my form, it takes some time untill it gets refreshed, I assume due to number of panels I use on...more >>

File size is larger after beginwrite
Posted by Chi at 1/30/2006 8:45:02 PM
I am a newibe of C# and async programming thx for your help. I think most likely is my logical problem but i cant figure it out using System.IO; using System.Text; using System; class Class1 { static void Main() { Class1 a = new Class1(); a.Run(); Console.ReadLine(); }...more >>

Same namespace in EXE and dll
Posted by peeping_t NO[at]SPAM hotmail.com at 1/30/2006 8:37:34 PM
I=B4m currently writing an application that will have some plugin functionality and therefor I=B4ve created two projects one that will build the exe and one that contains the "framework" for the application as a dll, which also contains reusable controls that the application and "plugin develope...more >>

Design Pattern?
Posted by pitachu NO[at]SPAM gmail.com at 1/30/2006 8:12:51 PM
Hi, I'm not an expect in .NET, so would anyone know an answer a design pattern for the following? There are many customers that require minor customizations to the program I will be developing. I would like to reuse the majority of the functionality of this program since each customer is ...more >>

.NET 2.0 DateTime conversion error??
Posted by Tim at 1/30/2006 7:13:30 PM
Hi, I am trying to do something simple. Convert a string date to datetime but it is not working and is giving me a baffling error! System.Convert.ToDateTime("Jan 30, 2006") 'System.Convert.ToDateTime("Jan 30, 2006")' threw an exception of type 'System.IndexOutOfRangeException' base {System...more >>



Sync Access
Posted by Danilo Rizzo at 1/30/2006 6:22:31 PM
Hi, i should access to the same XML file from 3 application. I use System.Xml for load, save ecc ecc... so, i would access to file in synchronized mode and handling the queue. have you an idea? thk...more >>

Indirect method calls ... how to?
Posted by Gaetan at 1/30/2006 6:02:56 PM
Is is possible in C# to have the equivalent of an array of function pointers in C? I have a situation where a top level class exposes methods like Add, Delete, ... and a few child classes with the same methods. Depending on a configuration parameter, the child method will be invoked when the to...more >>

How to restore a system tray process from another program
Posted by scottt at 1/30/2006 5:16:29 PM
I asked a question along a similar line about a week ago and didn't get any replies. Let me try to ask the quetion again a little bit different to see if I can get some help on this problem. Is there a way (API function) from one program to restore another application that is running in the...more >>

How protect non aspx files using Forms Authentication?
Posted by Ronald S. Cook at 1/30/2006 4:41:41 PM
Using Forms Authentication, users can't get to my .aspx pages but they can get directly to, for example, Setup.exe. What setting can I use to protect ALL files within my app from hackers until they login? My web.config currently looks like this: <authentication mode="Forms">...more >>

MessageQueues with different types
Posted by UJ at 1/30/2006 4:06:38 PM
Can you have the same messagequeue process messages that are of different types? TIA - Jeff. ...more >>

Building debug and release?
Posted by Brett Romero at 1/30/2006 3:53:25 PM
I'm using VS 2k3. I have built debug versions of projects and now want to build release versions. The IDE is only letting me build one or the other. If I build a release version, it removes the debug version. This breaks references in other projects. Is there a way to keep it from removing t...more >>

MessageQueues that pass an object with another object in it.
Posted by UJ at 1/30/2006 3:41:26 PM
I have an object I'm using to pass around data using a messagequeue. It has a small header in it and then a reference to a variable of type object. I do this so that I can have a generic message that everybody uses. My message router looks at the object, sees who it needs to go to and forwards...more >>

extracting part of a graphic in a PictureBox
Posted by ray well at 1/30/2006 3:28:39 PM
i need to extract a rectangular area from a graphic image displayed in a PictureBox, to another PictureBox. how can i do that? i would appreciate a piece of code if possible. thanks, ray ...more >>

Cannot access 'CDO' object.
Posted by Martin Robins at 1/30/2006 3:09:44 PM
I know that this has been asked before; and not only that, I know that = it has been answered (successfully) as I myself have previously resolved = the problem (with help) - however, I cannot for the life of me remember = what the solution was. I am trying to send an email from an ASP.net appl...more >>

Get Property Value by Name - is it even possible
Posted by WebMatrix at 1/30/2006 2:43:18 PM
Hello, Object instance is loaded into process with data in its Fields. There is a db table, that dictates what properties values are needed for a stored procedure call. Is it possible to get value of a propery by its name? so instead of this: switch (propertyName) { case "AA" : ...more >>

Excel Alternatives
Posted by Jim Heavey at 1/30/2006 2:03:28 PM
I need to create a simple excel file via a console application (C#) which is schedule to run on a perodic basis. I first attempted to create and XML file, but when I opened this file up in excel, it took about 25 minutes to load (about 40,000 rows to the excel file with about 15 columns). Gi...more >>

Equality vs Sameness
Posted by Gary Brown at 1/30/2006 1:45:03 PM
Hi, In C#, how do you determine two objects are the "same" rather than "equal?" In C/C++ you can check the addresses and LISP provides a rich set of equality operators but C# appears ambiguous. Search of the on-line documentation of "equal" and "same" yielded nothing useful. Thanks, Ga...more >>

zip files being blocked
Posted by Kory Lindersmith at 1/30/2006 1:26:58 PM
I had a program created in C#.net that zips a folder up for me automatically. We used the zipsharp library and it seems to work great execpt when you try to open it using windows to extract the files from the zip. If you try to extract the files you get a message saying "windows has blocke...more >>

Install/Start/Stop/Remove services
Posted by C.C. (aka Me) at 1/30/2006 12:45:26 PM
I am wondering if there is a class that can be used to install/remove services? I know that there is one for starting/stopping/etc. but not sure about actually install/remove. What I have is a C# service (created via VStudio) that I want to control (fully) from another standalone application. ...more >>

Tab control -switching
Posted by JPS at 1/30/2006 12:05:59 PM
A user is on a control (textbox) on a tab and I have code in the leave event of the textbox that must validate input. After typing in the text box the user then clicks on another tab. My leave event fires (text box), and I try and set focus back on the textbox, but the tab control does not let m...more >>

Installer question
Posted by chris.dannemiller NO[at]SPAM gmail.com at 1/30/2006 11:58:33 AM
Is it possible to merge the setup.exe setup.msi, and ini file into one file for web download. ...more >>

How to Call Javascript function from a User Contorl?
Posted by anadimpa at 1/30/2006 11:57:20 AM
Hello all I build a javascript function string in the code behind and register it in the Page_Load of my User Control. I do this because I build the javascript based on some variables that are passed to this user control. How do I (or from where do I) call this function? I tried several ...more >>

Advice on buying 2005
Posted by Skjoldmø at 1/30/2006 11:15:02 AM
What do I need ? I am currenly making cutom controls for my future programs, I expect to use Win32 API, Accessability and GDI+ quite a lot. Eventual I will have to make a website and try to sell my programs. Will 2005 Standard do, or do I need 2005 Prof. Upgrade I have 2003 Academic box...more >>

An object reference is required for the nonstatic field, method, or property
Posted by dfetrow410 NO[at]SPAM hotmail.com at 1/30/2006 10:56:26 AM
I am getting the following error on "rec " rec = TheFile1.SendCommandFile("RCVFILE " + TheArrayVal,10000000 * 10); public int SendCommandFile(string theCommand, int timeOut) { rc1 = RoboFTPSession.RoboSendCommand(theCommand, timeOut * 10); finderror(rc1); return rc1; } ...more >>

Passing Listbox items to another page
Posted by Mike Collins at 1/30/2006 10:11:31 AM
I have a page that shows a problem. On this problem page, it has a listbox that shows what the problem is related to (i.e., C#, HTML, VB, UserError, SQL Server). A problem can have multiple relations. I would like to have a link on the problem page to another page that opens up a popup, with ...more >>

Opinion Wanted: Calling an Event Handler
Posted by Fao, Sean at 1/30/2006 10:02:13 AM
A guy I know never refactors his code and insists on putting everything in an event handler. For example, he does some initialization of a DataGrid in the ItemDataBound event handler (which is actually the wrong place for his initialization, anyhow, because it has *nothing* to do with the i...more >>

Populate Table using Dataset
Posted by Junior at 1/30/2006 10:00:32 AM
Hi All, I haven't got a response for this question lately and i really need to get this done ASAP. I have a .aspx page that has table two column four rows on it. 1. How do i use codebehind C# to populate the HTML table? 2. How do i pull some figures from the second column and add them up in...more >>

.NET 2.0 System.Net.CredentialCache
Posted by Tim Cowan at 1/30/2006 9:49:48 AM
Hi, I am using .NET 2.0 and I want to send mail that uses SMTP authorization. I have found this in the help: client.Credentials = System.Net.CredentialCache.DefaultCredentials; My question is how do I set the username and password? Say the username is bob@home.com and the password is o...more >>

C# and DirectX
Posted by Kav at 1/30/2006 9:40:28 AM
Hello, I apologize in advance for my “Greenness” . I posted a question a couple weeks ago asking how I could render a DIB frame a custom decoder from unmanaged code to a c# window using DirectX – i.e. I would like to get an overlay surface from c# and write my frame to the surface...more >>

passing references between C# and managed C++
Posted by Lee Crabtree at 1/30/2006 9:39:23 AM
I'm trying to pass a variable by reference from a C# program to a managed C++ wrapper. Something like this: ------------C++-------------- void GimmeByRef(int &reference); ----------------------------- ------------C#--------------- GimmeByRef(ref referenceVariable); ---------------------...more >>

Problems with inheriting from a windows form
Posted by Vish at 1/30/2006 8:47:16 AM
Hi, I have a base form from which i want all of my forms to inherit from. The base form has three buttons anchored to the bottom right of the base form. When i first inherit a new form from the base form everything seems to be fine. The 3 buttons from the base form show up on the bottom rig...more >>

Implementing thread safe Queue collection object
Posted by Macca at 1/30/2006 8:33:23 AM
Hi, I've been reading the online documentation for the System.Collections.Queue object on how to implement a threadsafe Queue object. I understand the basics, by using the wrapper returned by Synchronised method, but I'm not sure how to implement it between 2 threads. Has anyone got any...more >>

MySQL & BLOB field retrieving
Posted by pmz at 1/30/2006 8:19:37 AM
Dear Group, I'm connecting in C# with remote (BSD) MySQL server with ODBC Driver, and I'm trying to find the best sollution in such problem: As I've read on MySQL manual, they have suggested table design including the BLOB-Fieldtype size in UInt64, where they've stored, while inserting, the...more >>

Anti Spammer Random Image
Posted by leeiroth NO[at]SPAM gmail.com at 1/30/2006 8:00:40 AM
I know that there is a quick and easy way using VS2005 and C# to help me create a random image of "squiggly" letters for verification on my web page - but I can't find it! Can anyone help me with this? ...more >>

Targetting 1.1 with VS2005
Posted by Udi at 1/30/2006 7:17:29 AM
Hi! I've compiled my project with Language Version ISO-1 in the advanced build settings (2005). However, I can't run my project on 1.1. What am I missing? Thanks. ...more >>

Convert byte stream to user defined type/class
Posted by Macca at 1/30/2006 5:50:14 AM
Hi, My application receives data from multiple sources transferred over ethernet. This data is broken into packets of bytes before being transmitted over the network. My application has to take the data and arrange into a user defined type/class. e.g one message from source 1 may be 1...more >>

Application Reference
Posted by Varangian at 1/30/2006 5:35:21 AM
Hello there... I want to run an application reference from another C# application. How can I do this... ExecuteAssembly will work ? If yes in what way? If not, is there another way? Thank ...more >>

Querystring in startup page......
Posted by Biren Prajapati at 1/30/2006 4:40:01 AM
Hi All, Can anyone give me the way through which we can give querystrings in the startup page in visual studio 2003? E.g. Suppose if my startup page is login.aspx, and everytime if I want to start with http://localhost/test/login.aspx?CustomerId=1001 Thanks, Biren. ...more >>

Clipping a pic and saving it in a file in DOT NET
Posted by Dixon at 1/30/2006 4:09:18 AM
Hai Im a newbie I have a picture in a picture box I drag a portion of the picture with the mouse..... Here i get the area i dragged in and now i want that area to be a separate picture saved in my hard disk how do i do that? i got two (x,y) co-ordinates where i started to drag and...more >>

Problems using Enconding.UTF8.GetString(byte[]), values above 127 == ""
Posted by PrettySneaky NO[at]SPAM gmail.com at 1/30/2006 3:57:10 AM
Like the subject said. I have an byte array and want to save them in a text file with UTF8 encoding. However when an element in the byte array is above 127 the GetString method ignores the value and I get an incorrect string. Anyone who knows what the problem is? ...more >>

OledbParameter Collection
Posted by Biren Prajapati at 1/30/2006 3:33:45 AM
Hi All, If is is not possible to create an instance of OledbParameterCollection class then how the OledbCommand class is creating an instance of OledbParameterCollection in it's property "Parameters". I tried to find the concept behind that but could not sort it out. If anyone find it for m...more >>

Crash and quit
Posted by Rene at 1/30/2006 2:04:39 AM
I noticed that when a .Net application crashes you get a message box indicating that an unhandled exception has occurred and it gives you the option to Continue or Quit. What I would like to do is to disable the Continue button so the application is forced to end. I need this behavior b...more >>

To hide the title bar of the Form Window Daughter form MDI?
Posted by Daniel R. Rossnagel at 1/30/2006 1:48:53 AM
As I can hide the bar of I title of a window daughter maximized within form MDI Already I have proven with different types from borders, hiding thebuttons to maximize, to diminish and control box, but nothing... If somebody can help me I'm thanked Daniel R. Rossnagel ...more >>

Thread won't start...
Posted by taylorjonl NO[at]SPAM gmail.com at 1/30/2006 1:36:12 AM
I am completely baffled. I am writting a daemon application for my work to save me some time. The application works fine at my home but won't work right here at work. Basically I have a MainForm what has a Start/Stop button that starts and stops the processing thread. private void Start...more >>

Search engine material
Posted by David at 1/30/2006 12:00:00 AM
Hi there, I have been looking up various search engine material on the net. One that looks promising is an article that Wrox published, which is no longer available. I have the article, but cannot get the source code, as the company that have taken over from wrox have decided to drop it in ...more >>


DevelopmentNow Blog