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 2005 > threads for wednesday march 23

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

Sql connection and web services
Posted by xxxxyz NO[at]SPAM abv.bg at 3/23/2005 11:46:12 PM
Hi, I want to connect to Sql Server using SqlConnection class using Web service. I use users from Sql server (I create this users in Sql Server). And I want to have a sql connection for every connected user with their user name and password. How can I organise these connections? And how us...more >>

Way to set IP address
Posted by Manoj Nair at 3/23/2005 10:02:22 PM
Hi, Is there a way by which the IP address of a terminal can be set through code. thanks in advance Manoj ...more >>

creating window service in c#
Posted by raju akula via DotNetMonster.com at 3/23/2005 9:45:08 PM
hi, I have two databases named abc and xyz. I have to run a job everyday 9 p.m. first I have to check the abc database tables, that if anybody registered a compound in the table within 24hrs of the job running.(like if my job executes today 9 p.m. then the abc database tables should be c...more >>

OT: Longhorn strategy a secret?
Posted by Jeremy.Deats NO[at]SPAM gmail.com at 3/23/2005 9:30:17 PM
With the announcement that WinFX will be available for other OS platforms and that WinFS won't be available at launch, what will Longhorn offer? With all this talk about Linux gaining market share, I don't understand why Microsoft doesn't release Microsoft Linux -or- a release of Microsoft Wi...more >>

CTime equivalent in C#
Posted by L at 3/23/2005 8:31:56 PM
Hi, In C++ the code below sets CurrentMainFrameTime to 1111635540 intMFMonth = 3; intMFDay = 23; intMFHour = 19; intMFMin = 39; CTime CurrentMainFrameTime(CTime::GetCurrentTime().GetYear(),intMFMonth,intMFDay,intMFHour,intMFMin,0); How can I achieve the same in C#. Thanks, Lalas...more >>

More dataGrid
Posted by web1110 at 3/23/2005 8:08:05 PM
Hi y'all, Can anyone point me to a good step by step technique for adding DropDown controls into a DataGrid? I don't understand the relationship of all the pieces and how they tie together. Thanx, Bill ...more >>

How to do this ?
Posted by tsair at 3/23/2005 6:50:28 PM
In TextBox1 have string value as bellow: TextBox1.Text = "24-10*10/3" After the user press enter or tab key from TextBox1, the TextBox2 will get the result as 46.666 TextBox2.Text = 46.666 ...more >>

Column Header
Posted by perspolis at 3/23/2005 6:20:31 PM
Hi all I want to change header of a column which includes RowHeaders in datagrid.. thx in advance ...more >>



Making use of XML Documents
Posted by Ostap Radkovskiy at 3/23/2005 6:12:52 PM
Hi! How can I make my source code xml documentation appear as tooltip for any place where well commented code is used (and xml document is generated)? I was going to achieve this by simply using XML Document features (setting up XML Documentation file on projects properties screen) throughout ...more >>

abstract
Posted by Miran Zorz at 3/23/2005 6:12:15 PM

C# equivalent of VB.NET Redim Preserve
Posted by John Grandy at 3/23/2005 5:18:32 PM
Does C# have an equivalent for VB.NET's Redim Preserve ? ReDim Preserve increases the final dimension of any array while preserving the array's contents (however, the type of the array may not be changed). ...more >>

Class HyperLink and mouseover
Posted by Peter Eriksson at 3/23/2005 5:10:04 PM
I am making a link with the HyperLink-class like this: HyperLink link = new HyperLink(); link.NavigateUrl = "http://www.page.com"; link.Text = "Some text"; link.ImageUrl="/images/linkimage.gif"; What I would like to do is to show another image for the link on the mouseover event. Is th...more >>

Class? Interface? Abstract? Help!
Posted by Walter Riggs via DotNetMonster.com at 3/23/2005 5:04:33 PM
I've build an Address class in a "Util" namespace. I'm referencing that namespace in another object which needs address data (call it "Agent"). It works fine, but when I access the Agent's address in code it looks like: agent.Address.address1 agent.Address.city .... What I'm looking for...more >>

backup_restore clipboard
Posted by Mészáros_Tamás at 3/23/2005 4:46:01 PM
Hi! Can I save and restore the content of the clipboard without dealing with the format it stores? I use the clipboard for data exchange between applications (this is the only way), and I would like to keep the previous content of the clipboard. Any examples I've found build on the format...more >>

AcceptTcpClient() generates a exception A blocking operation was interrupted by a call to WSACancelBlockingCall
Posted by Sagaert Johan at 3/23/2005 4:41:19 PM
Hi Ii have a simple server thread in an app that listens for connections, for some unclear reason an exception is thrown every now and then : 'A blocking operation was interrupted by a call to WSACancelBlockingCall ' Any suggestion why this may happen ? The Exception is thrown by the svr.Acc...more >>

#if RELEASE
Posted by Franck Diastein at 3/23/2005 4:38:15 PM
Hi, I'm making some User Controls, and one custom control depends on another custom control... So , I have something as this in UserControl1 text1.text = UserControl2.MyFunction("myparameter")... If I launch the app, it works fine, but if I go to the form where both User Controls are...more >>

treeView keydown
Posted by Hrvoje Voda at 3/23/2005 4:00:22 PM
What is wrong in this code? private void tree_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { if (e.KeyCode == Keys.Enter ) { ConnString = "workstation id=HRV;packet size=4096;integrated security=SSPI;data source=HRV;persist security info=False;initial catalo...more >>

NT AUTHORITY\ANONYMOUS LOGON --- SQL server
Posted by John J. Hughes II at 3/23/2005 3:41:45 PM
I have "Computer A" which is running Win2K3 and MS SQL server. And "Computer B" which is running a service that I have created. If I change the service on "Computer B" to run as a user my program is able to connect to the SQL server on "Computer A" correctly. But if I set the service on "...more >>

file upload question
Posted by Phil Barber at 3/23/2005 2:11:02 PM
I am using a <INPUT> File html control to upload fiels to our server. it basically works fine until you get a large file > 5 MEGS. Does anybody know how to get around this limitation? or a better way to accomplish the same thing? thanks Phil. ...more >>

Creating an RSS Feed
Posted by David P. Donahue at 3/23/2005 2:04:34 PM
Does anyone know of any good resources (articles, etc.) for creating one's own RSS feed on a website (either as a service or a page or whatever)? Not so much 3rd party tools that do it for you, but a general guide for coding one into one's own project. The data source would be a DataSet fr...more >>

aspnet user and interated security (SQL Server)
Posted by Phil Townsend at 3/23/2005 2:02:54 PM
I have been attempting to persuade our systems admin staff to allow us to use integrated security by adding the aspnet user to SQL Server. Currently we are forced to use a connection string that passes user names/passwords on the conncetion string itself. i know that using integrated security is...more >>

constructor chaining vs calling this. vs calling named constructor?
Posted by Flip at 3/23/2005 2:00:06 PM
I'm half way through watching a cool video from MS(http://msdn.microsoft.com/netframework/programming/classlibraries/membertypes/). One thing that came out which confuses me is the use of calling the named constructors vs constructor chaining. Why is one of the constructors calling another...more >>

System.io.FileLoadException Can not access the file??
Posted by Elhanan at 3/23/2005 1:57:57 PM
hi.. i have a small csharp console application i'm running locally on a windows 2003 server, the files themselves are located on a novell server. when i try to run it and a call a method from applicationBlocks.ExceptionManagment i get "fileLoadException can not access the file becouse it is ...more >>

Deployment / Security / Strong Names
Posted by Jimski at 3/23/2005 1:45:41 PM
Hi all, I am creating an assembly that will access a database to return record details. I need to deploy it to a 3rd Party and they will then be able to use the assembly in their code to access the methods contained within the assembly. As this assembly will effectively access the database ...more >>

Data Compression in .NET
Posted by Stefan L at 3/23/2005 1:22:54 PM
Hi Everybody, does anyone know if there is a good compression library available for the .NET-Framework? I want to compress a byte-Array (chunk from a file) for transmission over the internet to a client. On the client side I want to decompress the data and use it. Any recommendations f...more >>

Port Status ? how to
Posted by Carlos at 3/23/2005 1:01:30 PM
I need to write an APP to monitor what Ports are open in a pc using winforms, But I do not have any idea what .net library to use Any Ideas ? Thanks ...more >>

RAS
Posted by Marc Dolata at 3/23/2005 12:58:22 PM
Hi ng, I'm trying to implement RAS-functionality within my application. Establishing a connection is no problem (so far). But when I try to disconnect (using RasHangUp), the connection won't be dropped. here are my declarations and function-calls: public const int RAS_MaxPhoneNumber = 1...more >>

.Net and DTC
Posted by Ollie Riches at 3/23/2005 12:51:57 PM
Is it possible to access the statistics of a remote DTC via .Net (C#) at all? Cheers Ollie Riches http://www.phoneanalyser.net Disclaimer: Opinions expressed in this forum are my own, and not representative of my employer. I do not answer questions on behalf of my employer. I'm just ...more >>

is anyone using UML in real world???
Posted by LP at 3/23/2005 12:00:56 PM
Hi, I get a lot of questions from prospective clients about UML and what modeling tools I have experience with, which I do not. But when I ask them if they are currently using UML? The answer is generaly "no, but that's the direction we want go..." Is UML have any application in real world of...more >>

Xml Editor suggestions
Posted by Frank Rizzo at 3/23/2005 11:54:33 AM
I am looking for a light-weight Xml editor. The only features I really want is tag autocompletion (i.e. I type in <blah> and it auto completes the </blah>), syntax coloring and validation for correctness (don't care about validating against schemas). It must be fast to start and have a sim...more >>

Detecting Shutdown.exe
Posted by cashdeskmac at 3/23/2005 11:25:02 AM
I want to detect when the users computer is going to close down so that I can write all unfinished data to a file before closing down. Does anyone know how this is done?...more >>

Need help in C#
Posted by SilentChef_Mike at 3/23/2005 11:20:23 AM
I want to use picturebox control to display a image file on a dialogue with C#.I don't know how to display any part of the image by changing the picturebox property. Anybody can give me some help. THANKS IN ADVANCE! *** Sent via Developersdex http://www.developersdex.com *** Don't just part...more >>

Add a program to start up
Posted by cashdeskmac at 3/23/2005 11:09:05 AM
I want to offer uswers the chance to add my program to their startup when they install it. I don't mean the Start Up menu, but instead to have it listed in msconfig and start up automatically when the computer does. Can anyone help ?...more >>

Add a program to startup on installation
Posted by Cashdeskmac at 3/23/2005 11:07:01 AM
I want to offer someone the chance to add my new program to their startup when they install it. I don't mean the Start Up menu, but to be listed in msconfig and start up automatically when the computer does. Can anyone tell me how to do this?...more >>

Public data members vs get/set properties
Posted by Joe Fromm at 3/23/2005 10:20:38 AM
Perhaps I'm missing something obvious, but I've been curious about one of the coding practices I see advocated. I'm a longtime C/C++ programmer trying to learn C#, and I started looking around for coding standards/best practices. Several of the documents I've read require that all members be ...more >>

Printing DataGrid
Posted by kscdavefl at 3/23/2005 10:13:11 AM
Is it possible to print the contents of a webform datagrid and if so how? Thanks, Dave...more >>

How to use Tools.Shell
Posted by Patrick at 3/23/2005 9:21:03 AM
I want my program to open a text file in wordpad Tools.Shell filename should do it I think?? but it says I am missing a using directive So what do I need to include (or is there a better way?) Thanks -- Patrick...more >>

Active Directory Search wildcards
Posted by Netmonster at 3/23/2005 8:59:26 AM
Hello, I know how to search AD using the sAMAccountName if I know the exact name of the users NT login id, but, does any one know if you can search AD for sAMAccountName using wildcard chars? For example I wanted a list of all the accounts with somethingsmith. Thanks, KC ...more >>

Convert blob field or byte data to read in text box
Posted by Devhead at 3/23/2005 8:55:49 AM
i have a blob field in an sql server column field that stores html text. how do i convert it so that it is readable in a text control. right now when i convert using: byte [] byteBlob = (byte[]) TMSFinding.Rows[0]["DetailedDescription"]; System.Text.ASCIIEncoding enc = new System.Text.ASCI...more >>

Searching Display Data with BinarySearches
Posted by dotNetDave at 3/23/2005 8:53:06 AM
I have implemented custom sorting and searches on my complex objects (they contain properties and collections) using IComparer and BinarySearch. I knew they before doing a search you had to sort your collection, but I found out the hard way yesterday that it has to be sorted on the same proper...more >>

MessageBox yet let the program continue on without waiting?
Posted by JM at 3/23/2005 7:25:04 AM
Newbie Question Is there a way to use Message.Show so that it will allow the program to continue processing without waiting for a user to click OK?...more >>

String issues
Posted by ShadowOfTheBeast at 3/23/2005 7:21:04 AM
hi, i know this might sound absurd but does anyone know how to search fora particular pattern of text within a string and remove that every text from the beginning of the string to that pattern(inclusive) and also just remove that pattern alone from the whole text e.g "this is the ...more >>

Accessing Java WebServices with C#
Posted by Daniel Santana at 3/23/2005 7:19:06 AM
Hi, about Java WebServices, accessed by C#, I have two questions: 1) what I have to do, in order to use java webservices? 2) I search and I guess I must type the wsdl path in "add web reference". Everything is fine... But I'm behind a proxy and I got this message, after type my username and ...more >>

Does C# have a way to do something like the EVAL() function in Jav
Posted by Rob Lykens at 3/23/2005 6:41:01 AM
I am wondering if anyone has done something like this? I want to find a label based on the passed in information. It would be awesome to find something like this: private void myvoid (int i) { string lbl = "label" + i; Label mylabel = (Label)lbl; lbl.Text = "I have found the label on...more >>

Instantiating objects and event handlers for delegates
Posted by FredC at 3/23/2005 5:35:02 AM
S Name Microsoft Windows XP Professional Version 5.1.2600 Service Pack 2 Build 2600 Total Physical Memory 1,024.00 MB MDE 2003 Version 7.1.3008 ..NET Framework 1.1 Version 1.1.4322 SP1 Microsoft Visual C# .NET 69462-335-0000007-18707 Crystal Reports for Visual Studio .NET AAP50-GS0000...more >>

Win forms Notify Icon
Posted by Ravi Shankar at 3/23/2005 4:47:04 AM
Hi, I have a windows form application it uses AxShDocVw AxWebBrowser control. The control navigates to web pages at a specified interval set in Timer control. The form uses a notify icon. On axWebBrowser_DocumentComplete event I call a function which calls GetHiCon()(Icons handle). This fu...more >>

C# ADO.NET console application
Posted by krukinews NO[at]SPAM gmail.com at 3/23/2005 4:35:11 AM
Hi, I'm trying to write small program (console application) that reads from Event Log end writes data to SQL Server. I'm new to C# and ADO.NET and for last 3 days I have read many tutorials and I think that I understand basic (only basic) concepts of ADO.NET. But I simple can't create console...more >>

Security of code in view of disassembler
Posted by Rama Sharma at 3/23/2005 4:07:02 AM
One can disassemble the code of an assembly (in say Visual C# language) complied by using Visual Studio .NET even if it is a Release build. This can be done by using the disassembler "ILDASM.EXE" provided with the VS .NET . It shows all details of the code giving vivid details of all methods, ...more >>

link to open a folder
Posted by Aaron at 3/23/2005 2:42:02 AM
I wrote a c# win form app. I would like to link a botton to a folder. so when someone clicks the botten it opens up a folder (is it explorer.exe?) Thanks, Aaron ...more >>

byte array - writing it out to a file
Posted by biteme at 3/23/2005 1:32:43 AM
I have an array of bytes which i want to write out to a file. What classes do i need that do this?? i know you can do stuff with binary writer and stream writer, but how do i create a file with my data in it? thanks......more >>

question on ComboBoxes , etc.
Posted by Henry at 3/23/2005 12:50:32 AM
Please forgive me if I have missed an obvious answer to this question... I am looking at controls like comboBoxes, ListBoxes, and Trees and trying to understand how to associate what is viewed in the controls with the keys that represent the item values. For example I want to create a dropd...more >>

xml serializer bug
Posted by Wilfried Mestdagh at 3/23/2005 12:25:02 AM
Hi, I use this class to save application settings in a xml file. Sometime I have exception error in the Load method, and sometime in the Save method. Is this a bug in NET or is there something I do wrong ? I load in the form Load and save in the FormClosing. This is the class: publi...more >>

How to find string in a file?
Posted by Ryan Learns Sharp at 3/23/2005 12:15:01 AM
Is there any convenient way to handle this? Thank you!...more >>

Convert DateTime to Byte Array?
Posted by David at 3/23/2005 12:00:26 AM
I need to covert DateTime Variables into a byte array but all of the conversion methods do not appear to handle the DateTime type. Is there a generic way to convert any property or object into a byte array? Thanks ...more >>

Class
Posted by GTi at 3/23/2005 12:00:00 AM
In win32 I define my window class with wcex.lpszClassName = "My.Window.App.Class"; RegisterClassEx(&wcex); But I can't find anything similar in C#, in fact the class for my application is WindowsForms10.Window.8.app4 But I can't find where this is defined. How can I rename this class to my o...more >>

Marshalling a function pointer to a delegate without .NET 2.0
Posted by Jason Bell at 3/23/2005 12:00:00 AM
I know this functionality already exists in .NET 2.0 via Marshal.GetDelegateForFunctionPointer, but I'd rather not force my users to use a beta framework (not to mention the fact that I'm still using good old vs .net 2002, that refuses to use the 2.0 framework). Specifically, I'm using an e...more >>

How to reset Router by programing?
Posted by cyshao at 3/23/2005 12:00:00 AM
How to reset Router by programing? For some resean, we need usually reset our Router. Now, we have to Reset Router manually(shot down and reopen). Are there any method to control and reset Router by programing ? Thanks CYShao :-) ...more >>

High-level question about ASP.NET web controls..
Posted by RCS at 3/23/2005 12:00:00 AM
I'm a bit of a noob when it comes to web controls... What I want to do, is create web control that appears in the toolbox, that one could drag onto a web page - and you'd see the actual control (e.g. what it will look like on the resultant web page). If I use a "user control", it puts that ...more >>

how to kill a process
Posted by Hajash at 3/23/2005 12:00:00 AM
Hi all, I am using a web view control to view word,text,excel,pdf files.When closing my application i am closing the file from webview(navigating to about blank). for text file and pdf file, it is working fine. but for excel and word file the application remains in memory after i close the fil...more >>


DevelopmentNow Blog