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# > june 2005 > threads for tuesday june 28

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

Why not multiple inheritance in C# and java
Posted by MAHESH MANDHARE at 6/28/2005 10:58:01 PM
Hi , Can Anyone explain me exactly why multiple inheritance not used in java and c# thanks, Mahesh -- Have A Good Day, Mahesh, Maheshmandhare@yahoo.co.in...more >>

Correct way to call a Delegate?
Posted by pz0071 NO[at]SPAM hotmail.com at 6/28/2005 10:19:10 PM
G'day, I think I got my head around using delegates, particularily when updating the user interface from another thread. I got it all sussed, just not 100% sure on the correct syntax for calling the delegate. Is this.Invoke(delUpdateUI, args); Same as delUpdateUI(i); The follo...more >>

Regarding RadioButtonList Control
Posted by Suresh.P.R at 6/28/2005 10:12:01 PM
Hi, While using the RadioButtonList control, that I populated in the runtime, I am not able to get the selected item in the javascript while referring document.Form.RadioButtonList.value. What is the solution. The DropDownList control is able to refer in javascript like document.Fo...more >>

Process.Start return value
Posted by Manfred Braun at 6/28/2005 10:11:52 PM
Hi All, the Process.Start method returns a boolean value to indicate, if a process was started or not. Where can I obtain more detailed error information, if the process could not be started [for example:not enough memory or such errors]??? It seems to be possible, that a Win32Exception will b...more >>

Access Database
Posted by Lam at 6/28/2005 10:09:18 PM
Hi does any one know how can I access the Access Database in C# aspx page? if the database is multi-user, how can I include the use name and password? Thanks ...more >>

Why is form parent better than collection?
Posted by Brett at 6/28/2005 9:35:14 PM
This article explains that parenting controls is better than adding them to collections: http://msdn.microsoft.com/smartclient/understanding/netcf/dev/default.aspx?pull=/library/en-us/dnnetcomp/html/netcfimproveformloadperf.asp. However, it doesn't explain why. Please elaborate why parenting ...more >>

Debug window
Posted by Ant at 6/28/2005 8:46:03 PM
Hello, Is there an equivelant to the old Debug.Print & associated window that was found in the VB6 IDE? (Aside from Console.Write) Thanks for any suggestions Ant...more >>

How to Distribute Interop.ADOX.dll?
Posted by ScottWPNY NO[at]SPAM hotmail.com at 6/28/2005 7:48:08 PM
I am including a reference to ADOX in a C# project by doing the following: In Solution Explorer, right-click the References node and select Add Reference. On the COM tab, select Microsoft ADO Ext. 2.7 for DDL and Security, click Select to add it to the Selected Components, and then click OK. ...more >>



Calling a parent class method
Posted by - vhannak at 6/28/2005 7:38:01 PM
I have a class (sharedClass) that is instantiated (not derived) by two other classes (guiClassA and guiClassB). The sharedClass needs to be able to call a method that is defined in its parent class (guiClass). Specifically, when guiClassA or guiClassB calls a method from the sharedClass,...more >>

ToolboxBitmap control problem
Posted by Luis Arvayo at 6/28/2005 6:47:21 PM
Hi All, I cannot made visible the toolbox bitmap for my controls. I did the following: - Namespace : foo - Assembly: foo.dll - Toolbox bitmap stored in subdirectory Resources. Resource bitmap defined as embedded resource: MyControl.bmp - Then the control toolboxbitmap attribute is define...more >>

URLEncode
Posted by Stephen Costanzo at 6/28/2005 5:56:16 PM
I have to translate a URL so that the parameters in the URL include the 'special' characters for the ?, & and other features. I have looked at the HttpServerUtility.URLEncode function and it seems to be the correct method to call to conduct this translation. However I cannot figure out how to ...more >>

Change XmlNode name?
Posted by Adam Clauss at 6/28/2005 3:31:05 PM
I am working on a class who's base class contains a method to generate an XmlNode (a representation of the object's properties). Now, in my subclass I will also have an overriden method to do the same thing, and will simply call the base class first (to take care of all base class propertie...more >>

Multiple Excel processes
Posted by cnathaide NO[at]SPAM yahoo.com at 6/28/2005 3:07:01 PM
I am trying to control an existing running process from C#. More specifically, I am trying to control an existing workbook that is open in memory. I use the following code using System.Runtime.InteropServices; Excel.Application xlApp = Marshal.GetActiveObject("Excel.Application"); This wo...more >>

How to select ChildNodes by name ?
Posted by craigkenisston NO[at]SPAM hotmail.com at 6/28/2005 2:50:51 PM
Hi, I'm pretty newbie on XML so I have this basic question. I have a node which has 5 ChildNodes : <RelatedLink> <DataUrl type="canonical">clickhere2.com/</DataUrl> <NavigableUrl>http://clickhere2.com/</NavigableUrl> <Asin>B0000A1I5E</Asin> <Relevance>301</Relevance> <Title>Cli...more >>

From C to unsafe C#
Posted by msnews.microsoft.com at 6/28/2005 2:05:55 PM
Hi, I am trying to port some C code to C# but I am stuck on the following lines: *((unsigned*)&b[3]) = (unsigned)a; ... ((void(*)())&b)(); where a and b are both arrays of type unsigned char (for which I used byte arrays in C#). I know it needs to be within an unsafe bloc...more >>

Exception with DataTable
Posted by Newbie at 6/28/2005 1:47:05 PM
Im getting an exception: System.FormatException: Input string was not in a correct format. at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.String.System.IConvertible.ToInt32(IFormatProvider provider) at System.Convert.ToInt32(Object value) at Sys...more >>

RSA Encryption
Posted by no game at 6/28/2005 1:28:36 PM
Can I encrypt data more than 117 bytes in C# (can use CAPICOM and Crypto API libraries) using RSA 1024 bit. Any sample code would be appreciated. Thanks ...more >>

Process messages ?
Posted by RajS at 6/28/2005 1:16:03 PM
Hi All, I have created this UI program, i call couple of database procedures and update process steps to list box. Program runs fine, but I have problem. What happens is I dont see the update as it happens, I see all of them after completing all the procedure run. for example: Update...more >>

Sending a file from memory to the client
Posted by John Owens at 6/28/2005 12:22:16 PM
Currently I use Response (below) but it feels a little hacky. Is there anyway to do this using a nice little Framework class :-) Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=Letter.blah"); Response.AddHeader("Content-Length", msOutFileData.Length.ToStr...more >>

Problem using HttpWebRequest class
Posted by parseint at 6/28/2005 12:05:05 PM
Hi, Im trying to send a files using a HTTP POST request in my Window Application. I also have a progressbar that is being updated whil uploading. I have managed to send a file using HTTP PUT, but not HTT POST. I also want to send a username and password, as if it was get?username=myuser&pas...more >>

Enterprise Library - Caching
Posted by Mythran at 6/28/2005 11:45:18 AM
Simple question, hopefully simple answer :) In a multi-tier application, when should I cache my data? Business Logic Layer or Data Access Layer? Thanks, Mythran ...more >>

integration with Windows Media
Posted by Feldman Alex at 6/28/2005 11:42:18 AM
Hi, I'm trying to integrate with Windows Media. I need to get a playlist filterd artist and album For example i need to get all "Abba" songs from specific Abba's album. Anyone know how to do it? Thanks a lot ...more >>

When to create your own exception class?
Posted by Allan Ebdrup at 6/28/2005 11:28:33 AM
Hi I'm having a discussion with another programmer about a best practice for thrownig exceptions. I want to create a rich class library with many different exception classes in their own namespace, so they are easy to find with intellisense. He wants to just throw Exception or one of the buil...more >>

ConfigurationSettings.GetConfig
Posted by Mythran at 6/28/2005 11:16:31 AM
[STAThread()] public static void Main() { string sectionName = "system.web"; object settings = ConfigurationSettings.GetConfig(sectionName); Console.WriteLine( settings == null ? "(null)" : settings.GetType().ToString() ); } I'm trying to access the system...more >>

Infragistics Ultra Web Grid Updating Problem
Posted by Paul W at 6/28/2005 10:56:15 AM
I was recently assigned to build a database administration tool with an infragistics web grid UI. I am able to pull the data into a dataSet and bind it fine. However, when I attempted to use the UpdateCell or UpdateCellBatch events to transfer updated data to the data set, the event arguements (...more >>

MYSql?
Posted by perspolis at 6/28/2005 10:52:20 AM
Hi I want to connect to a mysql database on my site for example www.xyz.com what settings is needed to connect to that by oledataadabter? thx ...more >>

Can someone explain this??
Posted by Justin Lazanowski at 6/28/2005 10:47:34 AM
I can't find any answers, I have no idea why this is happening. I have a dataset. In this dataset there are three tables RO ROParts, ROLabor ROParts and ROLabor are related to the RO table one to many relationship PKEY on RO is the RO#, ROLOC, RODATE these three fields are replicated ...more >>

Creating microsoft word document using C#.net
Posted by Zeke at 6/28/2005 10:38:06 AM
I'm using the following code to create word document but the problem is if you go to task manager you'll see a WINWORD.EXE process is running but not the application, here is the code: Word.Document aDoc= WordApp.Documents.Add(ref fileName, ref newTemplate, ref docType, ref isVisible); W...more >>

ThreadPool wait for threads to finish
Posted by Peter Kirk at 6/28/2005 10:16:14 AM
Hi there I am looking at using a thread-pool, for example one written by Jon Skeet (http://www.yoda.arachsys.com/csharp/miscutil/). Can anyone tell me if this pool provides the possibility to wait for all its threads to finish? For example, if I start 20 threads: CustomThreadPool pool =...more >>

Make a color transparent in a gif, jpg, bmp? Its black!
Posted by Chris Auer at 6/28/2005 10:07:48 AM
I have been banging my head for a couple of hours now. No matter what I do the color that I make transparent is black. Here is the code I am using from MSDN. I have tried bitmaps, jpegs, gifs and new bitmaps created in code, but I cant get any image to go transparent. Thanks if you can help. ...more >>

Always going 'false' branch even if true?
Posted by Andy at 6/28/2005 8:36:22 AM
Hi all, I'm having a very weird problem. I have the following class.. using System; namespace CCP.Core.Data { public class Null { private Null() {} private static readonly string stringSurrogate = String.Empty; private const short numberSurrogate = -1; private const ushort ...more >>

javascript + ASP Net newbie help
Posted by ann at 6/28/2005 8:32:01 AM
I have the following in my click event of a button control: if(.....) { this.Page.RegisterStartupScript(@"startup",@"<script>alert('This project cannot be deleted until all tasks have been deleted first.');</script>");} else {this.Page.RegisterStartupScript(@"startup",@"<script>return confirm...more >>

Setting a property by reflection, with implicit conversion
Posted by Aaron Queenan at 6/28/2005 8:10:18 AM
Given the classes: class Class { public static implicit operator int(Class c) { return 0; } } class Holder { public int Property { set {} } } I can write the code: Holder h = new Holder(); h.Property = new Class(); How can I do the same thing using...more >>

Adding EventHandler to LinkButton that I create programatically
Posted by CodeRazor at 6/28/2005 8:10:05 AM
Hi, I am trying to dynamically create linkbuttons. They need an event handler, so i can respond to the user's click. I try to add the eventhandler on the fly, but when i click on the link, the code does not execute, it just reloads the page. Where am i going so wrong? i don't understand wha...more >>

Date Insert Problem in mySQL
Posted by Jassim Rahma at 6/28/2005 6:02:26 AM
Hi, I am using C# to insert a date value from the DatePicker into a DateTime filed in mySQL database.. I am using the following syntax: '" + datePicker.Value + "' I also triend it withour the ' and with # in the best scenario I will not get any error but the value will not be saved...more >>

Could not copy temporary files to the output directory...
Posted by lasmit at 6/28/2005 5:50:34 AM
I am having some troubles with a project I am working on not building correctly. I converted an old ASP project to .Net and then have been adding pages to the project in C#. This all works ok, however when I try and compile the project I get two error messages: 1) Could not copy temporary ...more >>

TreeView AfterSelect Does not fire on Right click [ C# ]
Posted by vijaynats NO[at]SPAM yahoo.com at 6/28/2005 5:32:43 AM
I have a treeview with a ContextMenu attached. When i click on a node, AfterSelect fires but does not fire when right clicked (the context menu pops up). (Background: I have loaded a list of disk file names onto the tree and have to open the file thru the contextmenu for editing. It opens the ...more >>

HttpWebRequest TimeOut On an Https channel while posting data
Posted by Joey Chömpff at 6/28/2005 3:45:01 AM
Hello, When I'm uploading an file to a JRun WebServer (third party) with a Windows Forms application, l always get an TimeOut while uploading, all other request who doesn't request an post are going ok? Why? I've tried almost everything. I also tried the KB888528 solution but this also does...more >>

change the date format dd/mm/yyyy to m/d/yy
Posted by Claudia Fong at 6/28/2005 2:42:18 AM
Hi Is there a way to change a date format dd/mm/yyyy to m/d/yy? I have a textBox where the user should put a date, but no matter what format the user input dd/mm/yyyy or m/d/yy, I need to convert it to this format: m/d/yy. Cheers! Claudi *** Sent via Developersdex http://...more >>

having problem with passing data to custom action
Posted by Hans [DiaGraphIT] at 6/28/2005 2:36:01 AM
Hi! I have problem with passing data to custom action. I don't know what wrong I'm doing. I'm trying to follow the steps in the walkthrough: "Passing Data to a Custom Action" http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxwlkwalkthroughpassingdatatocustom...more >>

How can I set my form to be maximal size for the screen?
Posted by steve bull at 6/28/2005 12:59:18 AM
I would like my application to display the main form to cover the whole screen. At present I do this by calling Screen screen = Screen.PrimaryScreen; and setting the form size to this. The problem is that the bottom of the form lies under the start bar. How can I make the form fill ou...more >>

Beating a dead Horse: Which Language
Posted by cfmortgagepro NO[at]SPAM yahoo.com at 6/28/2005 12:37:51 AM
Hi, I know that I'm an extreme newb by asking this overly beaten question, but I am leaning toward C#, becuase the perception is that it is better to learn than VB.Net. I guess it makes you cooler.:-) Anyhow, I am a novice programmer, and I will remain one as well...I have no plans to ...more >>

Hash table & threading
Posted by Ravi at 6/28/2005 12:03:03 AM
Hi, I am working on a winform app. I need to use an object which can store some information(key/value pairs) and also can be acessed by multiple threads(read/write). From what I heard Hash table is best suited for it. My question is Why hash table. why can't we use an array. I thought ...more >>

line chart example pls
Posted by Zach at 6/28/2005 12:00:00 AM
Hi, I am completely new to VC#.NET graphics code and would like some help to stop me wasting my time up blind alleys. I am looking for a line charting code example. Nothing posh or airy fairy, just a simple area with annotated axis and a graph. I am not looking for code to create a multi ...more >>

Custom button from a Control class doesn't appear as a choice for OK/Cancel button in a Form properties
Posted by CroDude at 6/28/2005 12:00:00 AM
Hi all! I've made a button from scratch derived from a Control class. The main reason why Control and not Button class is used for inheritance is that when deriving from a control class it's possible to have a transparent background, while if derived from a button class it isn't. That's achieve...more >>

Dataset Merge
Posted by Moty Michaely at 6/28/2005 12:00:00 AM
Hello, I have an issue I would like to solve. I need a dataset synchronization mechanism method that needs to read data from SQL server and within an interval of time, read the data again and Send only the changes made to the dataset. My thought was read one dataset that will be my cach...more >>

Change Control's size&location in runtime
Posted by zhonghua_1999 NO[at]SPAM 163.com at 6/28/2005 12:00:00 AM
Hi,all I want to change Control's size&location in runtime ,(C#) but i dont know how to do! :(so, can you provide me with document about this. my email: zhonghua@rinpak.com.cn zhonghua_1999@163.com thank you in advance. ...more >>

<% Response.CacheControl = "no-cache" %>
Posted by Jason Huang at 6/28/2005 12:00:00 AM
Hi, Kind of spending too much time on the no-cache issue and found out something like <% Response.CacheControl = "no-cache" %>. In my ASP.Net, a C# .aspx file, where do I put the <% Response.CacheControl = "no-cache" %>? Is this enough to fix the Caching bug? Thanks for help. Jason ...more >>

I want to make formula in business Intelligence Project
Posted by Alex Smith at 6/28/2005 12:00:00 AM
Hi Friends, I want to make formula in business Intelligence Project like as we make formula in Crystal report. Thanks, Alex. ...more >>

Exception when rising event to javascript from the IE Hosted UserControl
Posted by panitw at 6/28/2005 12:00:00 AM
I have a UserControl hosted in Internet Explorer. I create a worke thread to do some task and want to fire an event when the worker threa finish working. The event works fine, javascript can caugth it, when it fired from th main thread or from the code in external event handler such as Butto ...more >>

double click on "+" of this TreeNode
Posted by Boni at 6/28/2005 12:00:00 AM
Dear all, I have a question about TreeView elements. is it possible to differentate double click on TreeNode itself from double click on "+" of this TreeNode? Thanks in advance, Boni ...more >>

Textbox cursor Point.
Posted by objectref at 6/28/2005 12:00:00 AM
Hi to all, we have the MousePosition property that we can get the Point of the position of the mouse cursor on the screen, but is it there a way to get the respective Point of a cursor in a TextBox ?? (relative to screen) I mean, i have a textbox that i write some text and i want to know t...more >>


DevelopmentNow Blog