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 2003 > threads for wednesday september 10

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

MailMessage class, SMTP, what port?
Posted by Ada at 9/10/2003 10:36:54 PM
folks, i was testing the .NET class, MailMessage. i was able to send an email from this small app. my question is that does anyone know what PORT it sent the mail through? thanks in advance. ...more >>


IShellExtInit.Initialize
Posted by timtos at 9/10/2003 10:18:35 PM
I am using IShellExtInit.Initialize (Thanks to Mattias Sjögren) and it is called when I right-click a folder! Unfortunately it is called 3 times and not only once... For debugging purpose there is only one line in that Initialize function: return 0; How can something like that happen? Thanks a...more >>

How to check the file availability on server
Posted by Anil at 9/10/2003 10:18:15 PM

Rotating Graphics
Posted by Paul E Collins at 9/10/2003 9:26:43 PM
I can draw on a PictureBox like this ... private void pic_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { Graphics g = e.Graphics; using (SolidBrush brush = new SolidBrush(Color.Red)) { g.FillRectangle(brush, 0, 0, 100, 100); } } .... but how can I ...more >>

info bubble Windows XP Style
Posted by Nicolas Gaillet at 9/10/2003 9:07:28 PM
Hi, I would like to show a messagebox like those of messenger (which tell us that it is already running, right after we close the dialog box) (comic box with yellow background). tks for your help. Nicolas. ...more >>

Adding parameter to the url from a UserControl
Posted by Kjell Arne
Hi, How do one add parameters to a URL from a UserControl? My problem is that I want to set a unique value to the webpage when the page loads. This value I will use as a identifier for that session (user). I'm certain it's a simple solution for this. But I have not been able to locate it...more >>

Navigation with Toolbars
Posted by Roger R. Smith at 9/10/2003 6:45:53 PM
Hello I am fairly new to C# and I wanted to create an application with a toolbar down the side and each button would navigate a user to a new page. So the toolbar would remain in place and to the right of the toolbar would be a new page with new data and new options for the user. How does one ...more >>

Send messages to other computer?
Posted by alex002 at 9/10/2003 6:29:26 PM
Dear all, I would like to know how can I send some messages to other computers in the intranet so that other computer can suddenly show the messages in the pop up window? Thank you for all of your help. Alex ...more >>



DataGrid Column Headers
Posted by Ahmet AKGUN at 9/10/2003 5:24:05 PM
Hi All; I have one datagrid control on which o show some of my database tables. My trouble is that my column names on my table are not so good for customers to understand. So I must use more understandable names on my datagrids column headers instead of column names. Is there a way of chan...more >>

Any good Csharp webpage?
Posted by Action at 9/10/2003 5:06:59 PM
I am learning Csharp and the .Net Framework. any pointers? thank you ...more >>

Newbie question (and more adv)
Posted by Ivan Demkovitch at 9/10/2003 4:37:23 PM
Hi! Here is code I have: byte[] a; a[1] = 3; //Here I get syntax error (something about brackets. Parameter expect byte array. What is correct syntax ?) Response.OutputStream.Write(a[], 0, 1); Some other simple questions: 1. How do I load jpeg from file and resize it? 2. How do I ...more >>

Exception Invalid 'Key' node inside constraint
Posted by Sunny at 9/10/2003 4:31:23 PM
Hi, I'm using VS.net 2003 and C#. I created (using buildin designer) a dataset with 2 tables. TableOne has 2 fields: sName and sTable (both string) and a primary key TestKey, set on sName. TableData has 2 fields: sName and sData (both strings). I have made a relation, based on sName, where Ta...more >>

VB.NET to C#
Posted by Ed Crowley at 9/10/2003 4:17:38 PM
I've finally seen the light and decided to move to C#. Is there a good list of VB.NET commands and their equivalent in C#? ...more >>

Initial loading time too high
Posted by Manish Jain at 9/10/2003 4:08:51 PM
Environment: Windows 2000 Server (SP4), ASP.Net/C# (Framework 1.1) Hardware: PIII @ 700 MHz, 512 MB RAM ---------------------------------------------------------------------------- ------------------------------------------------------- I have developed a web application which I am deploying o...more >>

Count of programmers using C# v. VB.NET
Posted by Mark at 9/10/2003 4:02:02 PM
I'm trying to find a moderately scientific way of gauging how many VB.NET programmers there are versus C#.NET. We are all full of opinions, but some documented numbers would be appreciated. For example, Google has archived 113,000 postings to this C# newsgroup, and 85,000 for the VB.NET newsg...more >>

label in VS.NET 2003
Posted by jez at 9/10/2003 3:52:25 PM
quick short newbie question.. (sorry) I created my first stupid little program that shows a label saying hello in a windows app. It all works fine. Worth noting, I didn't create the label using the toolbox but instead wrote code for it. My question is the following : When I run the app I get...more >>

finalizer vs IDisposable
Posted by jim at 9/10/2003 1:57:56 PM
Why was a destructor (finalizer) included in the syntax of C# if implementing IDisposable is the sure way to release resources held by a class? If you were doing a language from scratch would you include finalization syntax or force users to to explicit cleanup using IDisposable?...more >>

Problem with SqlDbType.TinyInt
Posted by vcinquini NO[at]SPAM ig.com.br at 9/10/2003 1:47:50 PM
Hi everybody I'm newbee in C# and I'm supporting an application where there's a method like following: public int addNews(DateTime dtNews, string strTitle, string strShortText, string strText, int intStatus) When trying to add the data to a SqlServer 2K using ADO.Net I did the following:...more >>

Trig functions
Posted by Jon Rea at 9/10/2003 1:30:47 PM
Im looking to do some heavy geomentry based number crunching involving a lot of sin and cos calculations. Performing these operations takes up a lot of computer time, we have calculated ~100 clock cycles per calculation. I have come accross approximations such as the "Taylor Series" for work...more >>

Error Message: Unable to cast object of type
Posted by hrhoe at 9/10/2003 1:21:34 PM
Hi, I'm trying to create a reusable component with C#. So, I created a user control that uses Microsoft SQLDMO Object Library (SQLDMO). And I could add that UserControl on Toolbox. However, whenever I'm trying to add this user control on the client program's form I'm getting the following ...more >>

adding empty row to databound datagrid
Posted by Jim at 9/10/2003 1:15:26 PM
In my Win App, I have a datagrid that's bound to a dataset. When the form loads, the datagrid fills. How can I add an empty row to the end of the datagrid during a button click (similar to pressing Tab when mouse pointer is on last field of last record of datagrid)? The datagrid's read-only so ...more >>

Multiple Forms - please help
Posted by Peter Krikelis at 9/10/2003 1:12:13 PM
Hi, I am a new C# programmer and I am trying to create a project which has a parent MDI form. Then I want to be able to open other forms using some buttons or menu items on the parent MDI form. I opened new Windows Application and set the first form (System.Windows.Forms.Form) to th...more >>

finding workgroup name
Posted by Ewart MacLucas at 9/10/2003 12:51:11 PM
Does anybody know how to find the workgroup name (or domainname) of the local PC. Is there a framework class for it? (preferably a solution not involving active directory calls) Thanks, Ewart. ...more >>

concise c# study materials
Posted by kim at 9/10/2003 12:50:18 PM
Does anyone know of concise c# & .NET study materials...like all the keywords in one place, etc? ...more >>

c# Post-incrementing problem
Posted by Patrick Wood at 9/10/2003 12:48:25 PM
I found a problem with C# and post increments. I was going through some source code in c++ and found someone did a post increment: int x=0; for(int i=0; i<10; i++) { x = x++; } In c++, you'd get 0,1,...,9 (as expected). This doesn't work in C#. In C#, you get 0,...,0. It seems the p...more >>

Decimal Places
Posted by MAF at 9/10/2003 12:43:11 PM
How can I set the number of decimal places for a double value? ...more >>

An Encryption Question
Posted by Patrick De Ridder at 9/10/2003 12:39:04 PM
The following code produces an error on the very last line, namely: An unhandled exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll Additional information: Bad Data. Please help; if you can with exactly which code I should change and how. Patric...more >>

Animated GIF files
Posted by John J. Hughes II at 9/10/2003 11:43:26 AM
Is it possible using Image or Bitmap to build and save an animated GIF file? I am not have a problem saving the GIF file just getting the frames added to it. I did find ImageAnimator but it only seems to deal with showing the GIF and not saving it. Thanks, John ...more >>

OleDb ADO.Net ExecuteScalar()
Posted by WeiminZhang at 9/10/2003 11:29:34 AM
When I use the OleDb to connect a Oracle db, and use the ExecutScalar() method to get the count of a table, the return value can't be cast to a data type, say int, while this works fine for a SQL server db using SqlCommand. Following is the code example: string strCnt = "SELECT count (*...more >>

Polymorphism in C# or is it .NET?
Posted by Alex at 9/10/2003 11:10:37 AM
I have a Base class with virtual member, I have 4 levels of derived classes, but only the first 2 levels override the virtual member, the last 2 don't. When I create a base type reference to most derived type, then invoke virtual member, base type member is invoked. I expected most derived imple...more >>

Catching DragDrop when out of the Control
Posted by ylarom NO[at]SPAM bigfoot.com at 9/10/2003 10:10:18 AM
Hi DragDrop event is fired by the control accepting the drop If the drop is performed outside the controls I'm watching with events (like on another control/panel/window or outside my app) is there a way for me to know about it? (In MFC, for example, mouse movements are captured) Or do I...more >>

Dataset 2 table
Posted by epro at 9/10/2003 10:10:13 AM
I have a dataset of one table. and I want to save that dataset onto a database table. I tried SqlDataAdaptor, but i dont want to write the sql. Any help is appreciated. Prasanna...more >>

SystemParametersInfo problems
Posted by philippe.joliet NO[at]SPAM valain.com at 9/10/2003 9:39:02 AM
Hello, I'm currently try to use the SystemParametersInfo function in a c# environnement but I have a problem to use it with the action SPI_SETWORKAREA I've got this definition [DllImport("user32.dll")] private static extern int SystemParametersInfo(int uAction, int uParam, string pvPa...more >>

How to Kill Excel Task
Posted by Joseph at 9/10/2003 9:25:09 AM
Hello, I am developing a program that will read data from a couple of text files, process it, and then, populate data into specific cells in an Excel spreadsheet. Towards the end of the program, I try to exit from Excel using the followings statements. m_objBook.Close(false, m_objOp...more >>

change the "height" of combobox
Posted by Thomas Wang at 9/10/2003 9:05:15 AM
I draw a combobox on a form, but I can not change its height, What I can do about it? B.Rgds ...more >>

Need to track mouse cords in order to move a Panel object
Posted by jasonvowell NO[at]SPAM yahoo.com at 9/10/2003 8:57:26 AM
I need to be able to move a Panel on a windows Form at run time using the mouse. I have tried adding a MouseDown event handler to the Panel and then within the MouseDown handler adding a MouseMove event to the Panel and then setting the Panel's Location to a new Point(x, y) with x and y set to t...more >>

Messages on Deadlock transaction
Posted by Adam Smith at 9/10/2003 8:56:51 AM
I used to get on exception: Lock request time out period exceeded. Now I get: Lock request time out period exceeded. The statement has been terminated. Why the extra "statement" part? Thanks in advance. Adam Smith *** Sent via Developersdex http://www.developersdex.com *** D...more >>

C# .NET adding user defined controls to a form
Posted by Liz at 9/10/2003 8:32:15 AM
In VB.NET I add user defined controls to the main panel of a form :- Dim controlInfo As MainTemplate controlInfo = New Details controlInfo.Dock = DockStyle.Fill ' remove the old one if one already on display If pnlMain.Controls.Count > 0 Then pnlMain.Controls.RemoveAt(0) pnlMain.Cont...more >>

call c++ classes within c# code
Posted by cle at 9/10/2003 8:24:06 AM
hi all, Is there a possibility to call c++ classes directly out of c# code without using dll's? How is it been done in 'normal' .Net and how in the CompactFramework? thanks Clemens...more >>

C# .NET generating trees - child nodes?
Posted by Liz at 9/10/2003 8:20:25 AM
C# .NET creating a tree programmatically treeView1.BeginUpdate(); treeView1.Nodes.Clear(); treeView1.Nodes.Add(new TreeNode("Client Details")); tvSelect.Nodes.Add(new TreeNode("Referrals")); tvSelect.EndUpdate(); Can anyone tell me how I add child nodes to the above tree? Liz...more >>

Access is denied: 'ICSharpCode.SharpZipLib'.
Posted by CalvinNSlater NO[at]SPAM Hotmail.com at 9/10/2003 8:06:30 AM
I am always getting the following error when debuging ASP.NET application: Access is denied: 'ICSharpCode.SharpZipLib'. At this point I have to reboot IIS to get the web site going again. It appears that if you are debuging your application it leaves SharpZipLib in some strange state. I...more >>

DataGrid Event Problem
Posted by mario at 9/10/2003 7:53:33 AM
with WinForm + DataGrid How do I Catch the event if the text have changed in a specific cell ? Please Help!!! ...more >>

Datagrid set a text in a specific cell?
Posted by Michael Schindler at 9/10/2003 7:09:03 AM
How can I in a cell see whether these am empty and if a text of me inside to set? For example "100012" into the cell Row 3 column 3? I work whit C# wondows Appl. Thanks Michael ...more >>

Datatypfloat shows in datagrid 5 on instead of 5.00?
Posted by Michael Schindler at 9/10/2003 7:02:24 AM
I use C# windows Appl. My problem i have is whit my column amount. In the database i have float as datatyp an my datagris shows the amount place without decimal. I know dgTextBoxColumn.Format but functioned with me not. Please can anywhere me help. Thanks Michael Here my code: ...more >>

Using the TAB ORDER with ENTER KEY ?
Posted by thomaz at 9/10/2003 6:12:36 AM
Hi, i use the TAB ORDER to move focus from one control to another. But it functions only pressing the TAB KEY. To move focus using the ENTER KEY i use the KEY PRESS method in all the objects of the Form. There is a way to use the ENTER KEY with TAB ORDER without the KEY PRESS method??? ...more >>

opening forms like a browser
Posted by Max99 at 9/10/2003 5:34:38 AM
Hello I'd like to develop a program that fave a graphical interface like Microsoft Money where you navigate through the forms just like a browser How can I do that or where can I find an example with this capability? (Using Microsoft Visual c# .net or Microsoft Visual Basic .net) Thanks...more >>

Taking minimum of three values
Posted by Sona at 9/10/2003 4:37:47 AM
I need to find a minimum of three float values.. what would be the most efficient way of doing this? Can someone please share some code with me for doing this? Thanks Sona ...more >>

Q: Load New Table to DataGrid
Posted by Soul at 9/10/2003 3:41:11 AM
Hi, I have a DataGrid which works. But if I load a new table to the DataGrid, it will still show those old data I load earlier. private void loadTableA() { if ( openFileDialog.ShowDialog() == DialogResult.OK ) { this.dataGrid.SetDataBinding(null, null); try ...more >>

Architecture + C#
Posted by John Baro at 9/10/2003 3:32:52 AM
Does anyone have any recommendations for good architecture books relating to C# or architecture in general? TIA JB ...more >>

GetWeekOfYear problems
Posted by pananza NO[at]SPAM hotmail.com at 9/10/2003 3:26:20 AM
I'm trying to discover the number of weeks in a given year. As I live in Norway we are using the gregorian calendar. First week of a year is the first week with four days. First day of the week is monday. I've tried two different methods, both resulting in the same wrong answer. Both methods t...more >>

Problem in Netscape
Posted by Ramesh at 9/10/2003 2:49:24 AM
hi, My C# application displaying correctly in IE, But in netscape all input controls (text box, dblist, drop down list and etc.,) disappered. Only lables are displaying. The value inside the drop down list is displaying in the screen itself. I can't see the controls. Anybody knows about ...more >>


DevelopmentNow Blog