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# > september 2007 > threads for wednesday september 26

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

Adding WndProc override on inherited Web Browser WinForm control.
Posted by JDeats at 9/26/2007 10:20:36 PM
I need to be able to detect when the user clicks on the browser control area. The control offers no Mouse events whatsoever. I have tried to resort to override WndProc on the control, I have a break point set where indicated in the code below which never gets called. Any alternative methods or...more >>

smtp.send problem
Posted by Roger Garrett at 9/26/2007 10:06:01 PM
I'm having a problem using the System.Net.Mail.SmtpClient. After I set everything up and issue the Send method it throws an exception indicating "Sorry, that domain isn't in my list of allowed rcpthosts", which is apparently coming from the mail server, smtpout.secureserver.net. However, I ...more >>

Interactive web map
Posted by MscrmGuy at 9/26/2007 8:05:05 PM
Hi all: I am working on a little APS.NET project where a new executive gets to pick his/her reserved parking space. I am trying to figure out a way of displaying a map of all the available spots, with spots already taken colored red. The idea is the user could click on any open spot to rese...more >>

CDO.Message read & delivery receipt option
Posted by at 9/26/2007 7:42:18 PM
Hello, There's any way to configure a CDO.Message object to set the read and delivery receipt option, in C#? I already tried: CDO.Message msg = new CDO.Message(); .... msg.Fields[CDO.CdoMailHeader.cdoReturnReceiptTo].Value = "xpto@mail.com"; or msg.Fields["Disposition-notification-to"...more >>

Forcing Resource Hog To Play Nice
Posted by Smithers at 9/26/2007 7:37:01 PM
I'm writing a Console app that will run on a periodical basis on busy Web servers. The console app is responsible for backing up files uploaded to the Web server (copying the files out to a backup server). The Windows Task Manager will schedule the utility to run at least once per day. This ba...more >>

Programmatically Attach/Detach SQL Server
Posted by RP at 9/26/2007 6:57:36 PM
I am using SQL Server 2005 with C# 2005. I want to programmatically Detach a database, then copy its files from the data folder to another location and then Attach the database back. Can it be done using C# ? If yes, please illustrate. ...more >>

Calling C#Dll from Vb6
Posted by DaveP at 9/26/2007 6:40:15 PM
Hi all...im looking for example of calling a method or class in c# dll from vb6 i have a Class writen in c# Ii want to call it from vb6 (ie Not a c# exe, DLL) tia DaveP ...more >>

Ascx to Ascx Method Call
Posted by Sylvie at 9/26/2007 6:02:49 PM
I have a webform and two userwebcontrol on this webform Webform.aspx Grid.ascx Form.ascx (it has a public method ShowDetail() ) I wanna do that, when user clicks on a grid row, form.asmx 's sehowdetail() method must be called in order to refresh itself How can I reach an asmx method...more >>



Filtering ListViewItems
Posted by Johnny J. at 9/26/2007 4:33:09 PM
I would like to implement a filter function on a ListView control, and I found this code on TheCodeProject: http://www.codeproject.com/cs/miscctrl/listviewfilter.asp Since it's not possible to toggle the ListViewItem's visibility, the filtering is acheived (in this case) by moving the "non...more >>

Form and its Load-event
Posted by Kimmo Laine at 9/26/2007 3:44:56 PM
Hi! Is there a way to generate Load-event for form without showing it? My problem is that if i try to set control states before Load is raised, control states may or may not work. Here is some code: Lets say that i have 2 form - form1 and form2. In form1 i have a button. When this butto...more >>

content placeholder
Posted by vinnie at 9/26/2007 3:04:54 PM
working with asp.net 2.0 C#, once i create a masterpage i'm practically unable to resize content placeholder: can anyone tell me what i should do? I tries to resize it by dragging the small squares at the border, but it does not allow me to do anything. any idea? Thanks ...more >>

Feature request for C# Generic inheritence
Posted by Ido Samuelson at 9/26/2007 2:23:52 PM
Hello, What do you think about the following features: public class GenericDecorator<T> : T { } can leverage to a few things: public interface IChannel { void Connect(); void Disconnect(); } public class TcpChannel : IChannel { .... } public class ChannelDescribe...more >>

Operator overload for generics
Posted by teel at 9/26/2007 1:03:06 PM
Hi there, I'm trying to apply "less than" and "more than" operators on the Generics (class template-like) type objects. Below is the code of my class representing a parameter that can be any type, but only if it's float or int the comparison results in true/false-like result, else its INVALID. ...more >>

Multiple app instances, and passing parameters
Posted by Peter Reinhold at 9/26/2007 1:02:02 PM
Hi All, I am developing a small utility, and have run into a small challenge. The util is used for performing operations on a bunch of files, and it can be triggered from the right-click menu when you click on a file. My problem now is, if the util is already running, I want to stop a new...more >>

list
Posted by vinnie at 9/26/2007 12:30:46 PM
where can i find a complete reference book (paper format, or pdf, or word....) where i can find all the ASP controls with their explanation? I'm currently learning asp.net 2.0 C# Thanks ...more >>

Zip file using a stream
Posted by Chris Fink at 9/26/2007 11:54:06 AM
I am trying to make a minor modification to the code below and need some assistance. Currently this code is using the java.util, java.util.zip, and java.io assemblies from the vjslib.dll assembly. This code works fine by taking file(s) from disk and creating a zip file to disk. I need to ...more >>

Read-many, Write-once lock
Posted by Brian Muth at 9/26/2007 11:07:03 AM
Can someone point me in the direction of a Read-many, Write-once lock that can be used in managed code? Brian ...more >>

Is Mutex Owned?
Posted by Lamont Sanford at 9/26/2007 11:03:40 AM
Given an object of type Mutex, what method or property should be called to determine if it is currently owned? I could call WaitOne(0,false) -- and if the return value is false, I could deduce that the Mutex is already owned... but this has the unwanted side effect of seizing ownership of t...more >>

Make anonymous post
Posted by at 9/26/2007 9:48:12 AM
Hi again, I am new to Usenet and I just posted a question from Google Groups and I see that my email address is displayed in clear text but in the rest of the posts in the page the email is hidden. How do you do to hide your email from spammers when posting to Usenet? ...more >>

Generic list and inheritance
Posted by at 9/26/2007 9:39:55 AM
Hi everyone, Lets say I have: interface ICar { } class Mercedes : ICar { } Why can't I assign: IList<ICar> cars = new List<Mercedes>(); thanks in advance, Santi ...more >>

Delegates - Value Type or Reference Type?
Posted by Smithers at 9/26/2007 9:34:54 AM
Are delegates value types or reference types? I was just pondering the fact that delegates are immutable... Does this mean that they are value types and not reference types? Thanks. ...more >>

web browser ctrl - retrieve address for display in textbox?
Posted by Rich at 9/26/2007 9:16:04 AM
Greetings, I am using a web browser control to browse windows explorer. I give it a default address as below and then click on some folder. The question is: how do I retrieve the address of the folder I clicked on so that I can display it in a textbox similar to windows explorer? ob...more >>

regular expression replace src attribute in image tag
Posted by FabSW at 9/26/2007 8:29:24 AM
hi all, i've to replace the src tag in a html file with regex, images tags look like this : <td valign="top" align="middle" width="74"><img height="40" src="1_interr.gif" alt="1_interr.gif" width="40" /></td> what i want to do is to match form <img.... to... /> but backtrack only 1_inter...more >>

Drawing Lines on specific panel
Posted by Gidi at 9/26/2007 3:34:03 AM
Hi, I've windows form, in this form i've a panel. I want to draw lines inside the panel using the panel coordinates( meaing that the left upper corner of the panel is 0,0), how can i do it? Thanks, Gidi....more >>

New thread
Posted by RP at 9/26/2007 1:11:05 AM
I have an animated GIF image on a Form. By default this image is "invisible". I want to show this image using a different thread. How to create a new thread and show this image. I mean where to write Image.Show() in thread procedure. ...more >>

testing static member - thread safe?
Posted by bbg at 9/26/2007 1:06:02 AM
If many thread needs to test if one field of static class is null, if (StaticClass.fieldA == null) will it be thread safe and doesn't need thread synchronization? Bob...more >>

(float)Convert.ToDouble c#.net c# 2003/2005
Posted by trondhuso at 9/26/2007 12:07:44 AM
Hi group, I've found some code that I want to use in a project that I am working on, but the code is for c# .net and not 2003 or 2005 that I have available. In this code the program yells on (float)Convert.ToDouble(xml.value) (which in this case is "8.25"). I am wondering if someone could te...more >>

How can I modify the user rigths on a xml file?
Posted by Rainer Queck at 9/26/2007 12:00:00 AM
Hello NG, How can I modify the user rigths on a xml file? Can this be done by code as well? I could only find the possibillity to modify user rights on folders, not on files and this onyl manual. Regards Rainer Queck ...more >>

Regex optimization
Posted by Chuck B at 9/26/2007 12:00:00 AM
In a C# Regex expression which would be faster when run against say 10,000 strings: Regex(@"\d+/\d+/\d+ The quick brown fox.*"); or Regex(@"\d+/\d+/\d+ The.*"); The reason I'm asking is that I'm not sure how Regex works internally and it's not clear why one would be faster than the o...more >>

Convert to double problem
Posted by Yoavo at 9/26/2007 12:00:00 AM
Hi, I want to convert a string to double. I use the function: "System.Convert.ToDouble". The problem is that if the string contains the character "." the program aborts. What might be the problem ? Yoav. ...more >>

Set the value of one COM object member variable failed
Posted by jos at 9/26/2007 12:00:00 AM
Hi,all I wrote a C# project ,in this project , when I create the COM object = ,it turns out no error , When I try to get the value of the object's = member variable ,it can return the value successfully,but when I try to = set the value of the object's member variable,it throws out a "unknow...more >>

Global Middle mouse button click - check if hook conflict with other program
Posted by Alistair George at 9/26/2007 12:00:00 AM
Hi. Can assign global hotkeys, but I desire to have middle mouse button a global event, which instantiates a menu. However, Firefox, and a few other programs use the same button as well. I would like to be able to check if the current visible form (not my program) is using this key/button ...more >>

Reflection newbie help request.
Posted by Mark S. at 9/26/2007 12:00:00 AM
Hello, In the code below I'm able to get it to generate: Name: myList1 Name: myList2 How can I get it to output something like: myList1 ID: 123 myList2 ID: null or not in list using System; using System.Reflection; public class TestIDClass { public volatile string ID; } publi...more >>

Porting Form /User control Vs.net 2003 to vs.net 2005
Posted by Suresh Kumar at 9/26/2007 12:00:00 AM
Hello, I am having problem while converting vs.net 2003 solution to vs.net 2005. Form or User control requires separate code behind file in vs.net 2005(ie. Form.Designer.cs). When I'm opening my Form or User Control in designer view i get following error. Any comments? --- object referen...more >>

Tab Order tool
Posted by Alistair George at 9/26/2007 12:00:00 AM
When using this tool, if you click more than once, and get the wrong tab order seems there is no way to revert back? All controls are within group boxes so the tab orders are like: 401.0 401.1 and so on. Oh, I just found an unmentioned method - you click the tab order control on and off, l...more >>


DevelopmentNow Blog