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


all groups > c# > december 2005 > threads for tuesday december 20

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

calling Lotus Notes Agent from .NET
Posted by Grzegorz Smith at 12/20/2005 11:47:06 PM
Hello. I need to call remote lotus' agent in my application, does anyone do something like that? I search google for the solution and i find that I can use COM to connect to Lotus, but probably I can't using lotus agent' when I'm using COM. So is there another way to solve it? Thanks for any help...more >>

No context for HttpContext in class
Posted by KJS at 12/20/2005 11:13:54 PM
This is a C# web app. The Object HTTPContext is not available in my class. I need to grab an instance of the Current context with something like: HTTPContext c = HTTPContext.Current; The problem is, HTTPContext is not available to my intellisence, even though I have System.Web above. ...more >>

question on downloading from web site
Posted by CobraStrikes NO[at]SPAM al.com at 12/20/2005 10:16:41 PM
Hi All, Can anyone point in the right direction on how I can connect to my own web site and download a file ? This so I can update the program or datafiles. THANK YOU. ...more >>

HTML rendering component
Posted by Jim Bill at 12/20/2005 9:34:33 PM
Are there any open source HTML renedering component with source code, that can render HTML to images in silent mode (with no visible window appearance)? I'm using VS.Net 2003. Br JB ...more >>

ImageCodecInfo
Posted by James Bean at 12/20/2005 9:01:08 PM
What are ImageCodecInfo classes? Can tehy make your images (gif, jpeg, etc.) better or why to use them? I made a (another) screen capture program and notice that captures could be better. Could ImageCodecInfo class make screen capture picture better? Thanks for any info! Cheers! ...more >>

How can i see if an object is Xml Serializable at runtime?
Posted by TimJR at 12/20/2005 8:50:02 PM
I am looking for a way to determine in RunTime if a given object is Xml Serializable (short of trying to serialize it to xml and catching the exception). Is this possible? Since an object must have a Default Constructor to be XmlSerializable I have tried something like: Type valueTy...more >>

ANN: SimpleORB now available for C#, C++, Java and Smalltalk
Posted by frankgerlach NO[at]SPAM gmail.com at 12/20/2005 8:31:14 PM
SimpleORB is a simple Object Request Broker for VisualWorks Smalltalk, java, C# and C++. Object Request Brokers are infrastructure software for process-to-process method calls. There exists a Wikipedia entry with a simple Helloworld application: http://en.wikipedia.org/wiki/SimpleORB. Dow...more >>

AxWebBrowser - a monster!
Posted by Don Juan at 12/20/2005 8:22:47 PM
I have had a terrible 10 days period with AxWebBrowser ActiveX Control. I can't understand why there is no goog documentation and tutorials for that monster. ...more >>



File Upload components?
Posted by clintonG at 12/20/2005 7:43:18 PM
I've been looking around to learn more about file uploading and this component [1] makes note of Mac and Unix support and so on. It also sells for $149 and up! What's the big deal here? Spoofygoo buy-me talk? Or are there really issues accessing the Mac or *nix file system to get a file to ...more >>

How to create project from c file
Posted by Tran Hong Quang at 12/20/2005 7:07:02 PM
Hi, I have a simple C# in single file. I can compile by using csc. I would like to create a project/solution for that c# file. How to do that? Regards Quang ...more >>

C# Windows form's Close Control Box
Posted by Jason Huang at 12/20/2005 6:55:56 PM
Hi, How do I let the X Close Control Box incurr a Close Button when I click the X Close Control Box? Thanks for help. Jason ...more >>

Sending SMS / MMS via C# Application
Posted by Martin Peter Hanke at 12/20/2005 5:07:58 PM
Hi, I'm looking for a way to send SMS/MMS from my C# app. Has anybody any hints for me where to start? I was digging through the net but the information I found was kinda "foggy" to me... Regards, Martin...more >>

How to determine the number of rows or columns within a DataGrid
Posted by Steve Teeples at 12/20/2005 3:41:01 PM
Can someone tell me how you determine the number of rows (or columns) are in a datagrid? Under the debugger I say the property DataGridRows (which is what I want) but it doesn't appear to be usable within code. Its protection level makes it inacccessible. -- Steve...more >>

Dialogbox resource in vs2005
Posted by mnsindhu74 NO[at]SPAM yahoo.com at 12/20/2005 3:29:53 PM
How do I embed a dialogbox as a resource in Visual studio 2005 ? ...more >>

Need Help
Posted by yoshitha at 12/20/2005 3:29:45 PM
Hi in C#.net what is the equivalent function or anything for Redim preserve statement or can any one tell me the equivalent code for follwoing vb.net code. (db is the object for database.vb class ) If DB.Run("Select * from TestInfo") Then i = 0 While DB.Result...more >>

Random Access Files
Posted by Alan Roberts at 12/20/2005 3:10:51 PM
In VB6 I could use random access and fixed record lengths to read specific records from a test file. Eg the following code would save a LogEntry to a file at the location specified by RecordNumber. Private Type LogEntry Date As String * 20 Number As String * 20 Source As Strin...more >>

Iterating Across All Data in Configuration File
Posted by shawnn NO[at]SPAM gmail.com at 12/20/2005 2:45:56 PM
Hello, Using ConfigurationSettings.AppSettings.keys I can iterate across the default AppSettings section of the XML config file. I need to iterate across all key value pairs in other sections as well. If I use: ConfigurationSettings.GetConfig("path..") as Hashtable; it doesn't seem to ...more >>

Cannot convert from 'string' to 'System.Predicate<string>
Posted by Andrew Robinson at 12/20/2005 2:15:07 PM
Any easy answer what is wrong here? private List<string> BodyWords = new List<string>(); string word = "Andrew"; the following causes a compilation error: if (!BodyWords.Exists(word)) { } Thanks, ...more >>

How to set Grid properties?
Posted by Brett Romero at 12/20/2005 2:10:10 PM
I'd like to set certain grid properties generically. Meaning, I have a method located in an independent class, pass in the particular grid and have certain properties set. The problem is that I'm not sure how to get the grid with those set properties back to the calling class. For example: ...more >>

C# server side (encode) -> C++ client side (decode) ?
Posted by jtfaulk NO[at]SPAM eudoramail.com at 12/20/2005 2:08:40 PM
I need to encode some information on the server side using ASP.NET with C#; sending via HTTP to a client side application, that needs to be decoded in an MFC C++ application. I'm not sure if I can encode something using: C#: System.Security.Cryptography (to encode) and C++: wincrypt.h ...more >>

Check streaming media
Posted by Dennieku at 12/20/2005 2:06:00 PM
Hi, I want to check streaming media URL's (like MMS and RTSP) if these are still available and if so, the average bandwidth. Does anybody have ideas for this? Thx, Denneiku ...more >>

String vs string
Posted by shayke at 12/20/2005 1:58:43 PM
Hello does anybody knows the difference between String( object) to string(primitive)? Regards shayke ...more >>

ASP.Net Calendar - Default height/width?
Posted by todd.freed NO[at]SPAM gmail.com at 12/20/2005 1:46:17 PM
Hi All, I am using the <asp: Calendar> object. In the OnDayRender event handler I am putting text into certain day boxes, and leaving others blank. The effect is that some months have no additonal text rendered, some months will have 2 weeks(rows) with no additional content and 1 week with 2 o...more >>

Hard Drive Activity - Programmatically?
Posted by dantan98 at 12/20/2005 1:36:26 PM
Hello all... Please don't ask me why, but I am currently tasked to somehow discover when the hard drive is being accessed (for reads and writes). All of the searching I have done has been fruitless. Is there some windows class/API/etc. that will let me know when the hard drive is being...more >>

Custom Textbox AutoTab
Posted by Mike L at 12/20/2005 1:30:01 PM
I built 3 textbox classes. The auto tab does not tab to the next control in the tab list. No errors, and the code steps through "this.SelectNextControl(this, true, true, true, true);". What is the code missing, so the auto tab will go to the next control in the tab list when the max lengt...more >>

Slow Build in VS.NET 2005 Professional
Posted by Jake Pearson at 12/20/2005 12:59:03 PM
Hi, I just upgraded to VS 2005 from 2003, and builds have become much slower (like 10 times worse). I have noticed 2 things that I can not explain: 1. Everytime I build, I get a message on my "Error List" that says: "An error occurred while validating. HRESULT = '8000000A'. 2. During ...more >>

How to close a thread?
Posted by eye5600 at 12/20/2005 12:51:02 PM
I have a procedure that creates a file, then generates a log report via Crystal. If the user closes the form after the file is created and before the log appears, the form closes, but (it appears that) a thread creating the Crystal report continues to run. How do I get hold of the thread and c...more >>

Hang problem in ASP.Net application
Posted by todd.freed NO[at]SPAM gmail.com at 12/20/2005 12:46:49 PM
Hi all, I have recently encountered the following problem with my ASP.Net application. After deploying our site and people started using it alot, we discovered that if a person were to browse the site for a time, then go and do somethign else while leaving the browser open, when they come ...more >>

Programmatically formatting individual cells in datagrid
Posted by jacqueharper NO[at]SPAM earthlink.net at 12/20/2005 12:39:46 PM
I need to change the formatting of individual cells in a datagrid. I cannot figure out how to address individual cells by their column name. I have a DataTable which contains (for instance) columns called Weight, Length and Diameter. The table is bound to a DataGrid, and I am using the ItemDat...more >>

How do I set the datagrid column to currency format?
Posted by Mike L at 12/20/2005 12:29:03 PM
Data in datagrid shows all numbers to the 1000th place. So, $3.00 is shown 3.0000 How do I set the datagrid column to currency format? DataGridColumnStyle colStyle4 = new DataGridTextBoxColumn(); dgts.GridColumnStyles.Add(colStyle4);...more >>

Service that writes to the application Event Log
Posted by Aaron Hackney at 12/20/2005 12:15:31 PM
Hello. I am writing a service that I would like to have write access to the Application event log. Since the service is running as a system account, it would appear that I do not have access. (Security Error). I am following the MSDN howto and it does not appear to have any additional requi...more >>

Global Catching of All Unhandled Exceptions
Posted by (NvrBst NO[at]SPAM hotmail.com) at 12/20/2005 11:58:40 AM
Hello. I was wondering if its possible? Basically my program has a ThreadPool and that ThreadPool works on many different methods. Its very important to me that no pop up's ever occur; I have a "try/catch" block around my main but any exception that the ThreadPool creates crash's the applic...more >>

Connecting to SQL Server on WIN2003 Box
Posted by Mike Collins at 12/20/2005 11:57:02 AM
I am trying to connect to a 2003 Server from an ASP.Net page and am getting the following error message. Can someone please help get me started on how to track and fix this error? The code I am using is below the error I am getting. Error: System.Data.SqlClient.SqlException: SQL Server doe...more >>

How do I implement an interface with VB.Net?
Posted by Jim at 12/20/2005 11:27:13 AM
I am using VB.Net 2.0 and I am completely new to the concept of implementing interfaces. Can anyone explain "implementing interfaces" to me and perhaps give me an example of implementing an interface that would help me implement the IIneternetSecurityManager interface mentioned under "Creatin...more >>

Crystal Report in runtime
Posted by MAT at 12/20/2005 11:25:06 AM
How can i use Crystal repors without knowing which database and table will be used. For example after any SQL query? thanks...more >>

uncompress .z unix file in c#
Posted by tao_benz NO[at]SPAM hotmail.com at 12/20/2005 10:36:48 AM
Anyone knoews how to write code to uncompress .txt.z unix compressed file in c#? Thanks in advance :) ...more >>

How to validate a string containing Chinese?
Posted by Kevin at 12/20/2005 10:26:01 AM
Hi All, I want to validate a string, and see if it contains any Chinese character (simple or traditional). I'm trying to use RegExp and Encoding, but no result. Can someone point me a direction? Kind regards, Kevin ...more >>

"COM object that has been separated from its underlying RCW cannot be used."
Posted by Steve at 12/20/2005 10:16:30 AM
(I posted this in the ADO.NET NG, but didn't get any responses) I've started getting this exception since installing vs2005 "COM object that has been separated from its underlying RCW cannot be used." The code this is causing the exception is: <code> try { m_command.Comm...more >>

Receive UDP Broadcast
Posted by Dave at 12/20/2005 10:11:52 AM
Does anyone have an example of how to receive a connectionless(udp) broadcast in c#. I have tried everything i can possibly think of and it won't recieve the message. I know that the message is coming in and that its not being blocked because there is another app on my machine that is getting ...more >>

"Simple" FTP transfer
Posted by JPSutor at 12/20/2005 10:10:00 AM
Does anyone have an example of a simple FTP trasfer app? All I need to do is transfer one file up to a web site and then retrieve it again. Every example I run into is loaded with code that, to some extent, is unnecessary Just the basics, set the host name, port number, userID and password, pa...more >>

OO Design question
Posted by Kalpesh at 12/20/2005 10:08:32 AM
Hello All, Please help validate this design problem Assume that I have several entities in my project (eg Supplier, Customer etc). All of them save several common properties - name, address, city, state, zipcode etc I thought of making a base class - BusinessEntity (with all of the abov...more >>

Generics, IEnumerable and Polymorphism
Posted by Mike at 12/20/2005 10:00:56 AM
It looks to me that in using that in creating generic IEnumerables, you lose polymorphic capabilities. Consider this pseudo code: abstract class BaseClass; class DerivedClassSpecialFunction1 : BaseClass class DerivedClassSpecialFunction2 : BaseClass class Function1ImplementationA : Der...more >>

FtpWebRequest
Posted by jose.lopes.cruz NO[at]SPAM gmail.com at 12/20/2005 9:48:17 AM
I need to access a FTP Server. I'm using FTPWebRequest as described in visual studio 2005 documentation. Everything works fine except the following: 1) I dont know how to change de current working directory on the server to the parent directory? 2) Why cant I do this, or why doesn't work? In ...more >>

GlobalMultiuse?
Posted by Alan Roberts at 12/20/2005 9:45:05 AM
How can I make an item accessible to all areas of my assembly? For instance say I have a string constant called sProgramName that I set to be "My Program" located in a class called CConstants. How can I make this string accessible to all classes within my assembly without 1) having to inst...more >>

Close Form
Posted by John F at 12/20/2005 9:26:05 AM
In the child form of an MDI, I'd like to be able to close the child form within the Form_Load event if I need to. However, if I issue this.close() inside the chikld Form_Load event, I get an exception: Cannot call Close() while doing CreateHandle(). How can I accomplish this? Thanks, J...more >>

Drag Drop
Posted by David at 12/20/2005 9:05:47 AM
Does .NET have any support for dragging objects over a panel? ...more >>

pocket pc
Posted by Jorge at 12/20/2005 8:51:15 AM
Can any one give me an example code for turning on and off WLAN on pocket pc? Thanks, Jorge ...more >>

3rd Party Control für Office 2003 style context menu
Posted by Anthony Malt at 12/20/2005 8:42:18 AM
Hi, can anybody recommend a Office 2003 style context menu? Thanks Anthony -- Anthony Malt ...more >>

patterns & pratices
Posted by Dave at 12/20/2005 8:27:03 AM
I'm trying to do the lab at http://www.microsoft.com/downloads/details.aspx?FamilyID=B9BFF619-236C-4BBB-9AA1-2E7BC562C7F5&displaylang=en It instructs you to add two resources, Microsoft.Practices.EnterpriseLibrary.Data.dll Microsoft.Practices.EnterpriseLibrary.Configuration.dll They we...more >>

OT: Need Project Tracking software
Posted by Antonio at 12/20/2005 7:57:03 AM
Hi, sorry for the OT question but the readers opinions will matter more to me. I team lead a small development team of .net and sql programmers. There is another team in our group like ours. We are tracking our project requests and statuses in Excel as it is shared with people ourside our te...more >>

Best Practices for implementing db conn's from asp.net business ob
Posted by Nate at 12/20/2005 7:41:03 AM
I am in a slight predicament trying to determine the most efficient and effective way to connect/disconnect from a database within a business object (c# dll). I'm also keeping in mind the concept of connecting late and disconnecting early. Background: - multi-tier application (code-behind...more >>

Loading Assemblies
Posted by John F at 12/20/2005 7:05:03 AM
Hello all, When dynamically loading classes through reflection using Assembly.LoadFrom I have the following questions: 1) Once you load an assembly it doesn't appear you can unload it. If you try to load an assembly multiple times does this cause any type of memory issues? 2) If you ...more >>

adding control programmatically
Posted by johnmmcparland NO[at]SPAM googlemail.com at 12/20/2005 6:27:02 AM
am trying to add controls (e.g. radio buttons, group boxes) to a windows form in a method which I call from the constructor. However, when I do things like; RadioButton rb= new RadioButton(); .... rb.Location.X= 67; this.Controls.Add(rb); // this is the Windows Form instance I am tol...more >>

Overhead base class versus derived class method invocation
Posted by question at 12/20/2005 6:15:17 AM
I want to know incase there is any performance difference or overhead in calling a base class method and a derived class method. Basically I am talking about simple method that is not overridden nor virtual. If I declare a method in the base class say M1() and another in derived class M2(). Th...more >>

How to change the color of a app's title bar?
Posted by Mateusz Rajca at 12/20/2005 6:13:02 AM
Hello, How do I change the color of the app's title bar (where you have the Close, Minimize and Maximize buttons) in C#? Mateusz...more >>

Creating custom toolbar for Internet explorer
Posted by Sunil S at 12/20/2005 4:47:02 AM
Hi, I want to create a custom toolbar which will have controls like drop down, push buttons etc. I have to do it in C#. I have never done it before. Can anybody give me the direction in this regard. Thanks in advance. Sunil ...more >>

Custom keywords and compiler-supplied code
Posted by Jon at 12/20/2005 4:41:51 AM
I'm investiging multi-threaded GUI applications; specifically the technique used to ensure that controls are only modified under the correct thread. The standard technique is to use if(InvokeRequired == true) ... BeginInvoke(...) ... I have some code that ensures that an event fired from a w...more >>

Folder View(Arrange Icons By)
Posted by rakesh_nits at 12/20/2005 4:30:24 AM
Hi All, Is there any way by which we can know which particular arrangement of files and folders is being selected by a user in a particualr folder view.I mean that among the five options(Name,Size,Type,Modified,Attributes) which we can chose when we chose 'Arrange Icons By' options which one...more >>

Something like NDoc for CF2.0
Posted by danielsanberger NO[at]SPAM googlemail.com at 12/20/2005 4:11:22 AM
Hi all, NDoc doesn't seem to work for Compact Framework 2.0. Are there other Tools available for Documentation? I tried Document X, but it didn't work because it cannot find HTML Help! Greetings and thanks in advance Daniel ...more >>

wav file to float
Posted by [b2:ss] at 12/20/2005 3:40:15 AM
I have to create a float value list from a stereo wav file. i need following datas: time, left channel value,right channel value how can i do this? i also need to read the file's bitrate... any hint or link would be useful. thanx in advance. ...more >>

DLL Hell - graceful handling/application termination
Posted by Susan Baker at 12/20/2005 2:51:50 AM
Hi, I am writing a (unmanaged) Win32 DLL. I want to be able to handle any SEGVs (segmentation violations) gracefully, by using an error handler of sorts. Currently, if a user of my DLL (typically a VB programmer) passes a null (or invalid) pointer to my library - the entire application c...more >>

Play .wav file then move to next window (ASAP please)
Posted by johnmmcparland NO[at]SPAM googlemail.com at 12/20/2005 2:19:25 AM
I recently came across some code to help play .wav; http://www.codeguru.com/Csharp/Csharp/cs_graphics/sound/article.php/c6143/ and while I got this to work in a stand-alone application, I have been unable to make it work in a bigger one. My program has to play a sequence of .wav files when...more >>

Getting TargetInvocationException when calling a virtual function from a constructor
Posted by JP at 12/20/2005 2:15:38 AM
Hi, I am facing a strange problem, please take a look at the code below: public SaveTree() { ........ ...... ......//some code Initranges() } protected virtual Initranges() { ........//some code ....... } Somewhere else, i have a derived class: public SaveSingleTree: SaveTre...more >>

Asynchronous connection / normal connection
Posted by Piotrekk at 12/20/2005 2:09:21 AM
Hi I would like to ask you what is the difference in creating both kinds of connections. What are advantages and disadvantages? Is there a rule saying that in some cases we should send data asynhronousl ( etc.. )? Till now i have only been using Normal Socket connections. Socket.Listen etc.....more >>

How to center the Panel scroll bars?
Posted by Sharon at 12/20/2005 2:01:02 AM
I’m using the Panel control that contains a PictureBox control (for implementing the http://www.codeproject.com/cs/miscctrl/PictureBox.asp). The Panel is set to AutoScroll = true. I wish to scroll the appearing vertical and horizontal scrolls bars of the Panel to the middle of their scro...more >>

Is WebClient the correct Class to be using for this app?
Posted by Greg at 12/20/2005 1:02:23 AM
My app needs to make 3 calls to a remote server. 2 contain key value pairs, and one is a simple ping type call. All 3 are to listen for data returned in key-value pairs. Is WebClient.UploadData the correct way to do this? The remote server doesn't recognise the parameters that I am sending. Is...more >>

Loading assembly in a seperate process
Posted by ali.jan NO[at]SPAM gmail.com at 12/20/2005 12:30:26 AM
Hi, It is trivial to load an assembly in a new Application Domain. Is there any way of loading an assembly in a new process? I tried using the Process class like this: Process p = new Process() p.StartInfo.FileName = mStartupFile p.StartInfo.UseShellExecute = False p.StartInfo.WindowSty...more >>

Crystal Reports in Runtime
Posted by MAT at 12/20/2005 12:21:02 AM
Hi.. I am very bew in Visual C#.NET and crystal resports. So , I dont know whether i as a simple question.. I have to connect to different tables of different databases (MS Access). Then i have to report this data in runtime. I coudnt find a way to do this. Probably you will talk about datas...more >>


DevelopmentNow Blog