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# > march 2006 > threads for wednesday march 8

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

URGENT, .aspx files not running
Posted by Anup at 3/8/2006 9:50:06 PM
Hi group, I am using ASP.Net 1.1 On my machine, none of the .aspx files are running in browser. I tried restarting IIS and ASPNET_REGIIS -i but its of no use. moreover aspnet_wp.exe process is also not runnig on my machine, is it someway related to my problem? Please heap. Thanks ...more >>


Bug in .NET 1.1
Posted by Truong Hong Thi at 3/8/2006 9:02:12 PM
Recently I had to write a custom user control which requires lots of drawing. When surfing .NET framework 1.1 source with Lutz Roeder's .NET Reflector, I happened to find something: class System.Drawing.SR contains 2 methods GetDouble(CultureInfo, string) and GetFloat(CultureInfo, string), I pas...more >>

how can I generate and display in a webform textboxes on the fly ???
Posted by genc_ymeri at 3/8/2006 7:14:38 PM
Hello over there, I would like to generate the textboxes on the fly depending on the number of coulmns in a returning dataset. I tried something like this : TextBox temp = new TextBox(); MyPage.Controls.Add(temp); // <-- the above one failed saying I should specify [run at server] when ...more >>

Making image colors transparent
Posted by Tony Clark at 3/8/2006 5:29:19 PM
Hi, I have a bmp that is set in a panel, i want to make the white color in the bmp image transparent so i can see the color of the panel below. How is this done? thanks tony ...more >>

Searching in SortedList
Posted by Georg at 3/8/2006 5:24:26 PM
Hi, I would like to use a SortedList collection to store numeric data items with a key (numeric location). When I have a key which is not stored in the SortedList and which should not be stored but I just want to know at which index location it would be stored according the sort order. If I w...more >>

Web service for IP address to Geographic location.
Posted by Paul Aspinall at 3/8/2006 4:46:45 PM
Hi Does anyone know a Web service for IP address to Geographic location resolution? Thanks P.S. I am in the UK, but I assume any good web service would be worldwide?? ...more >>

Reference
Posted by Max André Bündchen at 3/8/2006 3:24:02 PM
Hi all, A simple organizational question: I'm dev. an app with many projects (a few for data layer, others for biz layer...). When a biz layer project use a data layer project, is better make a reference to the dll of the data layer or include de project of data layer in the solution of th...more >>

Query Parser for Dataset??
Posted by Crash at 3/8/2006 2:30:36 PM
Is there any sort of query engine for use with .NET datasets? I have an application that has a very small disconnected client database - 2 dozen tables, largest table @100 rows. If loaded into a dataset and then saved to disk the absolute worst case file wouldn't even be 10 meg... However...more >>



Project referencing older assembly
Posted by Joe at 3/8/2006 2:19:34 PM
I removed and re-added several controls in the toolbox. I also removed the references from the project and re-added them but when the project runs it complains it can't find the older version. I've double checked the version number of the current reference and it says it's the newer one but...more >>

How to print an image in Picturebox control as its scale
Posted by CG3000 at 3/8/2006 2:13:37 PM
I have an Image in a picture box in VS 2005 that I want to print using the following event handlers: Private Sub btnPrintLabels_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Try Me.PrntDoc_Img.PrinterSettings.PrinterName = "Canon M...more >>

Error deleting control
Posted by Paul Cheetham at 3/8/2006 2:05:00 PM
Hi, I have created a custom button control, descended from ButtonBase, which implements custom drawing etc. Everything works fine, until I try to delete the button from the form in the designer. At this point I get the message 'Object Reference not set to an Instance of an Object' My ...more >>

Sockets and Buffer size
Posted by Steven at 3/8/2006 2:02:03 PM
Hi, I need to write an application using sockets. I have a server and about 10 clients "speaking" at the same time with the server, so i guess i need to use asynchronous sockets. But the server will receive from the clients an ascii string with a viariable length. And in all the example i ...more >>

Questions about form icons in WinForms apps
Posted by Luis Arvayo at 3/8/2006 1:59:09 PM
Hi, - Is there a way to that every form in my app use the same icon withouth adding it to the Icon property one form by one ? - Do I must add to my app the icon(s) I will use in my forms as embedded resource, then I must use the assembly.GetManifestResourceStream in order to assign to my...more >>

Form designer at runtime
Posted by Luis Arvayo at 3/8/2006 1:57:33 PM
Hi, I need to implement inside my app a very simple form designer for simply allow to the end user to place database fields in a custom manner / order in a form. That is to say, the user will not build new forms, from an already defined form, he/she only will define the database fields that...more >>

int?
Posted by Mike Hildner at 3/8/2006 1:39:34 PM
I saw some code that looks like this: int? min = null; I can't find what the ? means. Can someone point me to a link? Thanks, Mike ...more >>

Setting e.Cancel outside an event Handler?
Posted by David Veeneman at 3/8/2006 1:21:04 PM
I am writing a control that relies on its host to validate the contents of one of its fields. The control fires a custom 'FooNeedsValidating' event and passes the field's data with the event. The host handles the event, validates the data and returns the validation results to the control by a ...more >>

Window Services - Difference between Network Service, Local Service ANd Local System Account
Posted by ABCL at 3/8/2006 12:31:41 PM
Hi All, Can any one tell me that what is the difference between Network Service, Local Service and Local System ACcount for window services ABCL ...more >>

Deleting files after reading
Posted by belmontpress NO[at]SPAM gmail.com at 3/8/2006 12:09:14 PM
I wish to delete some files from a directory after reading them but have the problem that the system says that the files are in use and cannot delete them even though I have set the StreamReader to null: DirectoryInfo di = new DirectoryInfo(@"C:\test\"); FileInfo[] fiArray = di.G...more >>

Problem gettin a RemoteEndPoint from a UDP packet
Posted by PH at 3/8/2006 12:09:07 PM
Hi guys! I need to get the remote EndPoint from when I receive packets when listening in a local port in my computer. I'm using UDP (connection-less) so I only bind the socket to my localEndPoint, I do not Bind(), Connect() to a RemoteEndPoint. I'm using BeginReceive() to listen and...more >>

Interactive Forms
Posted by pool at 3/8/2006 12:07:54 PM
This has probably been asked before, but I cannot seem to find what i need with the searches I have tried. I am trying to learn C# for a project at work that I will probably be moving on to. I am trying to figure out to create a form which will interact with a graphics. In other words, I would...more >>

Starting a Windows app from a windows service
Posted by Ahmed Perlom at 3/8/2006 11:52:49 AM
Hi all, I am trying to start a windows application that has a GUI from a Windows service written in .NET 2.0. I have been searching on this for few days now with no avail. When using the System.Diagnostic.Process object to start the application (i.e Notepad), the new app runs and it i...more >>

Alternatives to FxCop?
Posted by Evan Stone at 3/8/2006 11:24:07 AM
Hi, Are there any [truly] OpenSource alternatives to FxCop available? Thanks! evan k. stone | software engineer ---------------------------------------- santa rosa, ca, usa ...more >>

Get IDE to include folders in Bin/Debug folder?
Posted by Lee at 3/8/2006 11:14:29 AM
Hi, Is there a way to force VS2005 to copy the folders (and contents of those folders) that I created in the project to the bin/debug directories? I have a folder that includes xml files that the app needs access to at runtime and I'm using a relative path to get to them. Thank you. ...more >>

Mouse Event, opposite of action Click?
Posted by RobKinney1 at 3/8/2006 11:09:29 AM
The subject line sounds a little funny, let me quickly explain: I have created a custom control using ComboBox. But inside my class, I need to know when the user does NOT click my control. Of course, I can capture the event Click when someone clicks on the actual control, but not when t...more >>

DataTable Select and functions
Posted by munglet NO[at]SPAM hotmail.com at 3/8/2006 10:11:09 AM
In a DataTable Select() method can I wrap the column name with a sql function like LOWER()? The manner in which I tried failed. For example, the code below does a simple Select to get an array of DataRows. DataRow[] rows = this.dataSet.Tables["StringValues"].Select("Values = '" + newValu...more >>

Suppress Window Form Caption Bar
Posted by VancouverMike at 3/8/2006 9:21:28 AM
Hi, I am looking for a way to suppress the Caption bar of a window form. Is there anybody who knows how to do it? Another question is that if there is a date picker control like DateTimePicker in .NET but I can set the value of the textbox to be blank? Thanks, Mike ...more >>

Using a Windows Application to output console messages
Posted by lavu at 3/8/2006 9:12:22 AM
I currently have a C# windows Application . I would like this App to work through an command line interface also. I would like to specify command line params, which should start the app and process using the params. However as a starting step I am trying to print the command line args to the c...more >>

reading the registry key
Posted by zoneal NO[at]SPAM yahoo.com at 3/8/2006 8:54:52 AM
my program it's just tools for my little home network.. Only thing I have left to do is reading the registy key [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\ "shared"] to check the path to the shared folder.. this path is always updated so I will always be able to find the...more >>

Converting decimal type to double
Posted by .Net Sports at 3/8/2006 8:50:26 AM
I have an itemdatabound function whereas I am declaring a var named "price" as a decimal, and then want to reassign it to the value of a double datatype "dblTotalVolume", but I get an error "cannot implicitly convert type 'decimal' to 'double' , even tho in similar scripts with the exact same st...more >>

Passing a custom object via a web method
Posted by cathywigzell NO[at]SPAM yahoo.co.uk at 3/8/2006 8:34:46 AM
I have a web service which exposes a method... [WebMethod] public Object Invoke(Object obj) { ... } both the input param and the return value objects can, in reality, be anything. Howver, if I call this method from a client and cast my own custom object as Object, I get this error......more >>

Limit rows from a DataSet?
Posted by Steven Blair at 3/8/2006 8:20:31 AM
Hi, I have a DataSet with 30 rows. I pass this DataSet to my reporting module and this needs the first 10 rows. Does C# have a way of filtering the DataSet so I can use only the first 10 rows (perhaps using .Select() ) or will I have to create a new DataSet and pass the rows in one by one? ...more >>

How to pass ICollection using a WebService
Posted by Christian Havel at 3/8/2006 7:22:50 AM
Hi, how can I pass a ICollection as a return value from a Webservice method? Thanks Christian...more >>

How to set focus to other process ?
Posted by Sharon at 3/8/2006 5:50:04 AM
I need to allow single instance of my process. I did found the other System.Diagnostics.Process as follow: System.Diagnostics.Process currentProcess = System.Diagnostics.Process.GetCurrentProcess(); // Get all instances of GciViewer running on the local machin. System.Diagnostics.Process[] loc...more >>

Question related to threading concept.
Posted by archana at 3/8/2006 4:14:55 AM
Hi all, I don't have much of knowledge about threading. I have on .net application where in main i am starting one secondary thread. like public class yyy { public void abc() { for ( int i = 0; i<=3;i++) { System.Console.Write(i + " "); Thread.Sle...more >>

Multithreading and applicantion hangs
Posted by prateekbaxi NO[at]SPAM gmail.com at 3/8/2006 3:04:28 AM
Hi, I am developing a Multithreaded Server based Task Scheduler wich runs on the server and informs all the connected client when a particular schedule occurs to do the assigned task. Following is what I am doing to give you all an idea about the application and how I have done it I have...more >>

Deleting files with a wildcard
Posted by belmontpress NO[at]SPAM gmail.com at 3/8/2006 2:52:00 AM
A bit of a newbie question but how do you delete all files in a directory that match a given filename pattern. e.g. delete all of the ..txt files in the C:\bill directory? ...more >>

block pop ups in window application
Posted by sonu at 3/8/2006 2:45:26 AM
I am developing a window application, where i open a web page on a click event. but problem is all pop ups also opened when i open that page. is there any way to block pop ups without adjusting browser settings. can we block pop ups through code. Amit ...more >>

Do control tags get GC'd?
Posted by deko at 3/8/2006 2:06:24 AM
If I assign a value to the Tag property of a control (the Tag property of a Label, for example), will that get GC'd? Or will it stay there, available until it is reassigned? I tried using a class member variable (m_value) but that seems to revert to zero as well. I have a TreeView on a fo...more >>

General question about inheritance
Posted by GeneralCody at 3/8/2006 12:44:28 AM
Hi! I'm just starting out in C# and I am wondering why the Cow objects gets a "inaccessible due to protection level" in the following code: namespace ClassesAndInheritance { class Program { static void Main(string[] args) { Cow myCow = new Cow(); ...more >>

Setting focus to a form
Posted by Jesper at 3/8/2006 12:03:18 AM
Hi, I have an C# windows application running that has the property WindowsState of the main form set to 'Minimized' and the property ShowInTaskBar set to false. I've asingned a notifyIcon to the form that is show next to clock in the lower rigth corner. When you click this notifyicon, I bri...more >>

Ip address
Posted by maneshcs at 3/8/2006 12:00:00 AM
Hi, I have to fetch the ip address through which internet is connected. I have multiple network cards and i know through Dns i can fetch all the IP address of my machine. But my current problem is i have to find out through which IP internet is connected and i can establish an outbound conn...more >>

(re)-Setting the connection for a DataSet
Posted by John at 3/8/2006 12:00:00 AM
I have a dataset I've created through the Data/Add New Datasource... menu, by connecting to a local SS database, which has given me a DataSet and associated DataTables. This is all well and good for design time, but at run time I want to override the connection settings for those datatables to...more >>

What sort of Project
Posted by Bob at 3/8/2006 12:00:00 AM
Hi, I have a Windows app project that generates some data. This data now has to be sent to a web server as a request and hopefully it will get a response. The request / response format has been predefined by someone else. I am unsure as to whether I can incorporate this functionality into my ...more >>

HELP! Generating a HTML link clipboard object
Posted by Alfred Tascon at 3/8/2006 12:00:00 AM
Who knows how to create a Clipboard object/entry that when pasted produces a URL link - a link that when pasted into Word can be ctrl-clicked to launch a browser? Any help appreciated. Oh and i have tried: Clipboard.SetText("<a href='http://google.com</a>",TextDataFormat.Html); Clipboard.S...more >>


DevelopmentNow Blog