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# > november 2005 > threads for thursday november 24

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

Another problem with SHFILEOPSTRUCT
Posted by gsb58 NO[at]SPAM hotmail.com at 11/24/2005 10:37:06 PM
Hi! I've been following the example on SHFILEOPSTRUCT here in the group, but I keep getting the message: 'Cannot read from sourcefile'. Here's the code: SHFILEOPSTRUCT shf = new SHFILEOPSTRUCT(); shf.wFunc = FO_DELETE; shf.pFrom = myFile; ///'myFile' keeps the filelocation ...more >>


Help regarding sqldataadapter.
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 11/24/2005 10:34:48 PM
hi all i am having problem at a time of using sqldataadapter. My adapter is using two tables into which i want to add records. I am using two dataset for updating these table. My problem is even if i added records into two different tables it is adding same record twice in one table onl...more >>

(Simple?) code has me beat - Help ?
Posted by Ann Huxtable at 11/24/2005 10:06:03 PM
I want to write some code to center one form over another (show one form on top of the other). Anyone care to show me in a few lines how to do this ?. Thanks ...more >>

remove solution from the SourceControl
Posted by Bad_Kid at 11/24/2005 8:19:28 PM
How can solution (asp.net web page) be removed from the SourceControl? Do I have to make a new "blank solution" and add in it all projects one by one? ...more >>

MonthCalendar display problem
Posted by DS at 11/24/2005 8:16:50 PM
I seem to have run into another strange anomaly with the monthCalendar control. I want to display 6 months at time with either the first half of the year (January-June) or the later half of the year (July-Dec) being rendered- depending on where todays date falls. I also want today's date to ...more >>

problem with XML parsing
Posted by kotori at 11/24/2005 5:25:27 PM
hi, i have the following XML data file: <?xml version="1.0" encoding="utf-8"?> <!--This is a creature file generated by Kotori's C# code--> <!--This file will contain every enemies stats in the RPG--> <creatures> <enemy name="Wolf"> <level>1</level> <health>6</health> <attack>5</att...more >>

Name of selected file
Posted by Piotrekk at 11/24/2005 2:37:31 PM
Hi I would like to ask, how my program can get the name of the selected file, when it was selected. I mean, that i select a file in windows xp, and then my program that works in background receives the name. Does the windows has function that i need? I guess that the function like that doesnt ...more >>

Convert file path to URL
Posted by Anders K. Olsen at 11/24/2005 11:11:19 AM
Hello Group I have a fileserver with several files. Some of the filenames contain danish characters (e.g. 'æ', 'ø', 'å'). Now I'm trying to make a web application in C# that presents links to some of the files. I would like the user to be able to open the file by clicking on the link. I ...more >>



A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
Posted by Pieter at 11/24/2005 10:00:27 AM
Hi, I have a Windows Forms application (VB.NET 2.0) which uses a Class Library in C#. The application runs fine, but when I run it in debug mode, I get several "A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll" -exceptions that are shown in the...more >>

Regex Matches
Posted by Kofi at 11/24/2005 9:27:04 AM
Any takers? Got a string of DNA as an input sequence GGATGGATG, apply the simple regex "GGATG" as in Regex r = new Regex("GGATG", (RegexOptions.Compiled)); MatchCollection matches = r.Matches("GGATGGATG"); Now I would expect to get two matches right? One at index 0 in the string an...more >>

ASP classic -> ASP.NET C#
Posted by Bob at 11/24/2005 9:23:26 AM
In classic ASP, I used to keep a constant file that contains site configuration settings. For example, Const SITE_BACKGROUND_COLOR = "#909090" Const APPLICATION_NAME = "My Financial Site" Const UPLOAD_DIRECOTRY = "C:\uploads\" And then I'll include this constant file in all of my classic A...more >>

OT: Patterns
Posted by Steve Barnett at 11/24/2005 8:36:44 AM
I'm probably showing my age as well as my ignorance by asking this, but what's a "pattern"? I'm beginning the move from VB6 to C# and I keep seeing people talking about implementing this pattern or that pattern... is it what I would have called an algorithm in the good old days or is it som...more >>

Wrapping several DLLs in one "virtual" dll?
Posted by Francesc at 11/24/2005 7:30:51 AM
Hi, I'm programming some classes in order to be able to import different text formats (TXT, RTF, HTML, ...) to my own format called RUF. I've defined one Solution within several Projects, each one is focused in one specific format, includes from 5 to 15 classes and produces one DLL. Solu...more >>

Diagnostics.Process starts exe's which raise SecurityException's
Posted by Phil Mc at 11/24/2005 5:29:04 AM
Hi all I have a small scheduling application that I have written which will be running on a Windows 2003 server. This application is started at different times by an 'autosys' job (though I am testing by manually starting the app from the server, that is logging into the server, and running). ...more >>

How to serialize a DataRow ?
Posted by Sharon at 11/24/2005 5:12:01 AM
I have a DataRow that I need to send it to another process as a XML string by remoting. Bu I do not want the other process to be familiar with the schema or DataTable and DataRow structure, so I tried to serialize it to a XML string but I get an exception saying the DataRow as no public data....more >>

Save/Open listView w checked items
Posted by Hareth at 11/24/2005 4:50:32 AM
how do I save and open checked and unchecked items in my listview to a txt file this is kinda what I have in mind but doesnt work; I need it for listview w/ checked items and unchecked private void btnSave_Click(object sender, System.EventArgs e) {string File; File = "aaa"; ...more >>

Mail not getting send.
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 11/24/2005 4:26:45 AM
Hi all, i am having application in c# for sending mails. I want to ask few question related to sending mail. If address of smtp server is not set, then will the mails be send to address specified in tomail field. Is it neccessy to set smpt server address in mail message class. Becaus...more >>

Doubt in ListView Control
Posted by Prakash at 11/24/2005 2:37:14 AM
Hi Friends, I am developing scheduler application using C#. For displaying all schedule information i am using ListView control. Based on the status of the schedule, i have displayed the schedule information in the list view as seperate colors. I have faced the problem with deselecting the ...more >>

Marshal a class partially
Posted by marcosegurini NO[at]SPAM gmail.com at 11/24/2005 2:20:59 AM
Hi. Is is possible to mark a class-member-variable to avoid its marshaling? [StructLayout(LayoutKind.Sequential)] class MyClass { int i_; IntPtr point_; object obj; // this should not be marshaled } TIA. Marco. ...more >>

Visual Studio .NET 2005 problem
Posted by Pål at 11/24/2005 1:27:51 AM
Hi, I have used VS.NET 2005 for about 2 weeks now. Yesterday everything started going extremly slow. Opening a project takes about 30 secunds or more, and building a project takes even more time (this project took 3 secunds to build before). When VS.NET 2005 is open, the harddrive read/writ...more >>

monthCalendar to start with - 1?
Posted by gsb58 NO[at]SPAM hotmail.com at 11/24/2005 12:43:03 AM
Hi! Anybody that have seen an example of how to have the monthCalendar1 start with yesterdays date? That is: when the form opens, I'd like to have yesterdays date selected. Me.Name ...more >>

POST/GET from windows form
Posted by Matteo at 11/24/2005 12:39:02 AM
Hi everyone, I need to pass a series of parameters to an SMS gateway from a client application, a windows form application. The question is, HOW? Is it possible to POST/GET data from a windows form? Do people use Remoting or Socket to this pourpose? Thanks a lot....more >>

Send Mail Question
Posted by alexmaster_2004 at 11/24/2005 12:31:01 AM
Hi There i'm using System.Web.Mail to send email message. but i have a problem with it. the emails that i send is in Turkish Language. so when i send the email the receipt can't be able to raed the message. i have tried to use the BodyEncoding property of the MailMessage class but it didn't ma...more >>

C# program calling a C++ DLL
Posted by Laurent at 11/24/2005 12:00:00 AM
Hello, I received a C++ DLL and I must include it in my C# programm. The problem is that I don't know how to convert the parameters from C++ to C#, specialy when there are pointers in it. There are 2 fonctions I would like to convert. The first one has only one parameter, but ...more >>

I can Store an expression within a Variable?
Posted by Daniel R. Rossnagel at 11/24/2005 12:00:00 AM
Sample: String c="1+2+3" since it can makes to obtain the value of this Expression? Other Sample: Int X=4 String c="1+2+3+X " ...more >>

vb to c# conversion
Posted by Ankit Aneja at 11/24/2005 12:00:00 AM
i am making client for com dll in vb i write like this Dim WithEvents p As CLAMXLib.ClamEngine Private Sub Form_Load() Set p = New ClamEngine p.Database.Path = "E:\projects backup\ankitclam backup\Clamtest\database\" End Sub in vc++ IClamEngine *m_spIClamEngine; ::OnInitDialog() { m...more >>

User control reloads page data when webcontrol changes
Posted by Matt Jensen at 11/24/2005 12:00:00 AM
Howdy all Been searching and can't find a good answer to my problem. I've got a usercontrol 'banner' at the top of my page, and when the selection in the dropdown list changes I want the "host" webform/page to be reload so the data on it (in repeaters) is reloaded using a new value from the d...more >>

using System.Web.Mail; failed
Posted by Jason Zhang at 11/24/2005 12:00:00 AM
Hi all, I have installed VS.net 2003 fully. When I create a C# project and write a line:using System.Web.Mail; the IDE complain that the namespace Mail does'nt exist in System.Web. Why it happens? Dis I miss something? Thank you! ...more >>

MonthCalendar DateChanged event problem
Posted by DS at 11/24/2005 12:00:00 AM
I seem to have stumbled upon something that I can't explain and was wondering if someone else could maybe help me figure out why this happens. I've tried it in both VS2003 and with VS2005b2 and in both cases the result is the same: an ArgumentOutOfRangeException. Add the following to a blan...more >>

DropDownList
Posted by Rodrigo Ferreira at 11/24/2005 12:00:00 AM
Hello, How can i fill a dropdownlist with data returned by the database? My code is: string strsql = "SELECT designacao FROM categorias"; multiqual.bd db1 = new multiqual.bd(); ddlCategoria.DataSource = db1.devolvedataset(strsql); ddlCategoria.DataBind(); Greetings, Rodrigo Ferreir...more >>

How to rename an Access database???
Posted by Jon S via DotNetMonster.com at 11/24/2005 12:00:00 AM
Hi all, I dont know if this can be done but I would like to programmatically change an Access database name. Say my database path and name was : C:/myFolder/Test.mdb What code would I use, in either C# or using ADO.NET, to change the above . mdb name to Test2.mdb? Thanks in advance....more >>

Marshalling to a particular thread
Posted by Peter Wone at 11/24/2005 12:00:00 AM
I've written a class which does some long running background processing and returns multiple results via events. The class has an Execute() method which creates a thread and runs an internal method _execute() on it. When events fire they are running on the worker thread. To use this class f...more >>

Stored procedure parameter
Posted by Peter Kirk at 11/24/2005 12:00:00 AM
Hi should I be able to set the value for a parameter to a stored procedure to null? For example: IDataParameter param = command.CreateParameter(); param.ParameterName = "@id"; param.Value = null; param.Direction = ParameterDirection.Input; param.DbType = DbType.Int32; command.Parameters...more >>


DevelopmentNow Blog