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# > may 2006 > threads for thursday may 25

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

Copying Files from Network to Local
Posted by Jerad Rose at 5/25/2006 11:47:11 PM
I have a fairly simple C# console app which copies files from a network folder to a local folder. When the app resides on my local C: drive, it runs just fine. However, when the app resides on a network drive, copying the same files from the same source drive and to the same destination driv...more >>


Convert Type.
Posted by Anibal at 5/25/2006 11:38:19 PM
How do i convert an object variable to a Button one. I have the following code in VB wich works fine: Sub Button1Click(sender As Object, e As System.EventArgs) Dim btn as Button = Convert.ChangeType(sender,GetType(Button)) MessageBox.Show(btn.Text) End Sub How can i reproduce the...more >>

Refreshing / requerying GridView control when page is submitted?
Posted by planetthoughtful at 5/25/2006 11:36:30 PM
Hi All, I have an ASP.NET page that is used to insert records into an SQL Server table (see previous post). I also have a GridView on the same page that displays the results of a query on the same table the records are inserted into when the page is submitted. I'm wondering if there's a way...more >>

Radio button and Dropdownlist in Datagrid Edit
Posted by jc at 5/25/2006 10:26:01 PM
I am using Datagrad template, while user click on Edit, one column will show radion buttons (Yes/No), the other column will show a Dropdownlist which should show different contents depend on the user selection on Radio button. How do I do that? I am stuck.. JimmyChang...more >>

calender control
Posted by Jessica Weiner at 5/25/2006 10:00:04 PM
I have an ASP .NET web application and I am using the calender control to display the month view and some events that are scheduled to happen during the month. Whenever the user selects a month, the page re-loads to show the update calender view. I would like to make it as seamless as possible...more >>

TAPI
Posted by Steven Moschidis at 5/25/2006 9:57:49 PM
Hello there, I am a complete novice when it comes to TAPI. I have been asked to write a simple application that gets an incoming call and reads some of the information that comes with it (specifically the number being called). I don't need to answer the call or anything else with it apart fr...more >>

Newbie ASP.NET question: inserting data in table
Posted by planetthoughtful NO[at]SPAM gmail.com at 5/25/2006 8:21:32 PM
Hi All, I'm in that painful beginning stage of trying to wrap my head around C# in ASP.NET - so I will apologise in advance for asking silly questions and hope the assembled will be forgiving. Ooookay - I have a fairly simple data entry form and when the user clicks the submit button I want...more >>

Multiple projects, Single source file?
Posted by Paul Cheetham at 5/25/2006 7:04:46 PM
Hi, I have two projects where I want to use the same source file in each project. If I add the file to each project, then a local copy is made. I want to be able to have a single source file used by both projects so that I only have to change one file. I am using compiler directives with...more >>



Short Strings - Data Encryption/Decryption
Posted by Mythran at 5/25/2006 4:27:16 PM
I have googled and tested and tried and still I can't seem to implement a simple encryption/decryption console application. My goal is to create two methods. public byte[] Encrypt(string DataToEncrypt, string Key) { ... } public byte[] Decrypt(byte[] DataToDecrypt, string Key) { ...more >>

How to view the directory information of the neighbor computer
Posted by zeeway at 5/25/2006 4:21:06 PM
hi,everyone I have a question about viewing the directory information of the remote computer in the local network. I used the C# class: OpenFileDialog which can not browse other computer's directory information. How can I view the whole directory information of other computer given that I ha...more >>

getting data through serial port
Posted by Padu at 5/25/2006 3:55:13 PM
Hi, I know that the System.IO.Ports.Serial port event for receiving data (DataReceived) happens on a secondary thread, and that if there will be any interaction of that data with the UI, it should be done through invoke. Right now my application receives serial data and a class hierarchy i...more >>

Help with framework hell
Posted by Frank Rizzo at 5/25/2006 3:25:42 PM
I have a customer with my winform app that was written .net 1.1. It has worked fine till now. He has just installed .net framework 2.0 and all of a sudden the application is having all kinds of problems. I thought that if the application is written in vs2003, it will by default use .net 1...more >>

enumerations
Posted by scroopy at 5/25/2006 3:25:02 PM
Hi, I'm an experienced C++ programmer but I'm new to C#. Why can't I use enumerations like the following? class CMyClass { private enum dimension:int{eWidth = 0, eHeight=1} public int getWidth() { int[,] array = new int[5,5]; return array.GetLength(dimension.eWidth); ...more >>

How can I add a referenced assemblie after compiling it?
Posted by Scythen at 5/25/2006 3:06:45 PM
I'm using the CSharpCodeProvider and I would like to compile one .cs file and then compile another cs file that references the first one. I know how to add registered assemblies to the compilerParameters but will that work for things that I compile? If so, how do I specify the compiled obj...more >>

C# equivalent interface mapping
Posted by Gavin Sullivan at 5/25/2006 2:28:10 PM
How would you (if you can?) code the following VB.Net in C#? public interface IDummy sub SomeMethod() end interface public class Dummy implements IDummy public sub DifferentName() implements IDummy.SomeMethod end sub end class Regards ...more >>

Cannot Create C# WebForm
Posted by james.curran NO[at]SPAM gmail.com at 5/25/2006 2:18:07 PM
I know this is a bit off-topic here, but I wasn't getting any help on the Visual Studio newsgroup. I've recently created a new VS2005 Web Project, by reading in an existing website (mostly ASP with some C# ASP.NET v1.1). I've seemed to adequately converted it to .Net 2.0. The problem co...more >>

Site to learn C#
Posted by Sh at 5/25/2006 1:31:31 PM
Hi All, Can someone tell me what would be a good site to start learning C#. It should be able to explain me bit by bit clearly. Thank you, Sh ...more >>

Shell
Posted by fernando.a.gomez.f NO[at]SPAM gmail.com at 5/25/2006 1:20:28 PM
Hi, how can I execute another program from my C# app? Like ShellExecute... Thanks in advance. Regards, Fernando. ...more >>

Dynamic connectionstring with Dataset Wizards ? (VS2005)
Posted by Sagaert Johan at 5/25/2006 1:19:11 PM
Hi The Dataset wizard in VS2005 generates a setting entry for the connectionstring. The connectionstring is in the settings file. Setting the property to a dynamic value by writing to the settings does not work since it is read only.. The get property is in the autogenerated settings.desig...more >>

nant question?
Posted by Me at 5/25/2006 1:15:56 PM
I have a simple solution file which I am looking to build using Nant However this is written in .net 2.0 and when I try building this .net 2.0, I get an error message saying "Microsoft Visual Studio.NET 2005 solutions are not supported." Does nant not support building .net projects? Many ...more >>

Link for C interrupts
Posted by Srinivas Reddy Thamma at 5/25/2006 12:47:01 PM
Hi, I would like to know few links that would be helpful for me to learn Interrupt programming in C language..... Thanks in advance. Srinivas...more >>

Unzip problem with images
Posted by sham at 5/25/2006 12:36:04 PM
Hi to all, I am using ICSharpCode.SharpZipLib.Zip. My zip file contains a number of images which when they get unzipped only contain a partial image. The filesize looks correct. The unziping is done below it is not clear where the problem is. For int numberOfBytesToRead = (int) zipEntr...more >>

Need direction to write certification in C#
Posted by Raj at 5/25/2006 12:24:38 PM
Hi All, Currently, i'm working in VC++. We are having a migration project in ..net. I'm very much interested to work in C# and planning to write certification program in web applications. I'm not clear to select which certifications is optimal for me. Can anyone guide me. Regards Raj ...more >>

Number of Open Database Connections
Posted by Asim Qazi at 5/25/2006 12:14:05 PM
Hi i want to get the number of open databse connections in my application, its an asp.net application, is there any workaround for it ? any help would be appriciateable Regards, aSIM. ...more >>

Win Form - Data Grid Question.
Posted by DBC User at 5/25/2006 11:38:23 AM
I have a dataset and I want to add this to a datagrid and then I want to add 3 more columns to the data grid, based on values from existing dataset. How can I do this in WinForm?? I see all the examples are for ASP.Net. Could someone point me to a link or example I can do this in WinForms?? I am...more >>

Assembly.GetReferencedAssemblies
Posted by Mythran at 5/25/2006 11:26:24 AM
The Assembly.GetReferencedAssemblies method doesn't return all assemblies referenced by a project. I assume this is because of optimizations made at compile time that only include the reference to those assemblies that are actually used in the output assembly, and excludes referenced assembli...more >>

datagridview
Posted by Frank at 5/25/2006 11:20:19 AM
Hello, in a dgview I don't want the row selector column visible, how can I do that? I mean the column before the first datacolumn. Thanks Frank *** Posted via a free Usenet account from http://www.teranews.com ***...more >>

On reboot of machine, something is crashing .Net.
Posted by UJ at 5/25/2006 11:12:27 AM
I've got 5 programs that I wrote that are all in the startup group. When you reboot the machine, you get an error saying Common Language Runtime Debugging Services Application has generated an exception that could not be handled. Anybody have any ideas what this means? Yes I have the prog...more >>

Selecting data from a DataTable into a new table in a DB
Posted by Stropher at 5/25/2006 11:07:50 AM
If I have a table (t1) in a database of SQL-Server and I want to select some rows into a new table (t2), I do the following: select co1, col2, col3 into t2 from t1 //t2 wird be created automatically with the three columns But supposing t1 is not a table of a database but a DataTable (in c#), ...more >>

BeginInvoke vs QueueUserWorkItem
Posted by RWF at 5/25/2006 10:48:01 AM
I have a windows form of which I will be saving the user's selections from DropDownBoxes, CheckBoxes, and RadioButtons. Once the choices are collected, I really will have no use for any of the controls. Is there a benefit of using Control.BeginInvoke opposed to ThreadPool.QueueWorkItem? Fro...more >>

Enums and IEquatable<T>
Posted by Marc Gravell at 5/25/2006 10:48:00 AM
This one stumped me while refactoring some code to use generics... Suppose I declare an enum MyEnum {...} Is there a good reason why MyEnum doesn't implement IEquatable<MyEnum> ? Of course, I can cast a MyEnum instance down to the int / short whatever (since int implements IEquatable<int>...more >>

C# stl
Posted by Harold Howe at 5/25/2006 10:23:26 AM
Having developed in C++ prior to learning C#, I have always felt like ..NET was missing something. Specifically, something that fills the role of the STL. With that in mind, I have launched an open source project to create an STL like library in C# 2.0. The project is called CSTL, and is ...more >>

Possible to prevent direct navigation to a page?
Posted by Ben at 5/25/2006 10:05:02 AM
Hello I am in the final stages of developing my asp.net app and have a question. The app im creating has two frames, one being a menu and the other showing the detail. I would like to prevent the user for typing in direct addresses without using the application (ie server/appname/page.asp...more >>

Printer message
Posted by dave at 5/25/2006 9:48:01 AM
When we using printer it always display message box with caption: "Printing" and text in the box: "Page 1 of the document" Is there way to get rid of this message box ? thank you, dave ...more >>

Step into debugger at next line
Posted by MichaelCombs NO[at]SPAM gmail.com at 5/25/2006 9:21:41 AM
I'm looking for a way to step into code at the next line of execution in the debugger. Back in the day you could do this in VB by doing something like Ctrl-Break to pause te debugger and then hit F8 (step into). Then you perform some action in your application, say a double click, and then th...more >>

Form based security using main web page with Frames
Posted by Andres Romero at 5/25/2006 9:19:02 AM
I'm using the form-based authentication in my asp.net project, all works fine. My logon page only has the user and password controls and some images, when the user is loged in the page, is redirected to my main application web page wich contains three frames (head for user information, left fo...more >>

DBNull issue
Posted by DG at 5/25/2006 9:12:55 AM
I have my object containing datarow and exposing properties: e.g.: public int Price { get{ return _myRow.Price; } set{ _myRow.Price = value; } } what if i want to set this value to null? Do i have to expose .SetPriceNull() and .Is...more >>

Formatting a datetime
Posted by Eric Stott at 5/25/2006 8:53:22 AM
I need to take System.DateTime.Now and have the resulting text be in the following format: yyyyMMddhh24mmsss I am using System.Convert.ToString(System.DateTime.Now), but I need to format it correctly, what is the easiest way to accomplish this? ...more >>

Wrapper class
Posted by Dave Moran at 5/25/2006 8:09:03 AM
This may be a trivial question, but it's stumping me. public class A { } public class B : A { B(A a) { // I want this class to reference 'a' and not copy it. } } The idea is that you provide an instance of the base class 'A' and wrap class 'B' around the same i...more >>

datagridview question
Posted by DBC User at 5/25/2006 8:02:11 AM
Couple of questions 1. I have a dataset with 10 columns, I want to display only 5 columns from this dataset in the datagridview. How can I do this? 2. I want to change the caption of each of the 5 columns. 3. Can I drag and drop the columns dynamically like the 3rd party datagrids in Datagrid...more >>

get_Range function throws an exception
Posted by Mikil at 5/25/2006 7:09:42 AM
I am communicating with Excel Interop dll using c#. The get_Range function throws an exception if the parameters are invalid. For e.g. get_Range("Mikil", Type.Missing); will crash if the "Mikil" named range is not present. Why the does the function crash instead of returning "null"? ...more >>

minimizing console window on startup
Posted by Scott at 5/25/2006 7:06:02 AM
Hi everyone, I have a c# console app that when run through an autorun.inf file, launches a web page from the CD. It works just fine but I would like the console window minimized on startup. Currently, the console window displays briefly, the web page loads, and the console window disappears...more >>

Cast string to DateTime
Posted by mgonzales3 at 5/25/2006 6:17:03 AM
I have an object string property that is a string. I want to convert to a DateTime. Any ideas? DateTime eventDt = ((DateTime)mEvent.EventDt).Date; Error 1 Cannot convert type 'string' to 'System.DateTime'...more >>

ASP.NET GridView
Posted by Jessica Weiner at 5/25/2006 5:19:57 AM
I have a web calendar application which retrieves events from a SQL database. These events are real-life events (group meetings and workshops etc). I want the ability to create an automatic 5x7 table representing a month (regular calendar format). Fields associated with the table (month/year...more >>

Internal representation of hashcode
Posted by archana at 5/25/2006 4:39:07 AM
Hi all, I have one question regarding hashing in .net I have two string containing same data. When i see hashcode by calling gethascode, i am getting same value. I want to know how internally strings are storing using hasing. Please clear my concept regarding hashing in ,net thanks i...more >>

Dynamically Load User Control
Posted by dauphian NO[at]SPAM gmail.com at 5/25/2006 3:58:23 AM
Greetings, I have a user control, that I will need to display on a specific page based on the number of records in database: I have to query a site table to get the number of entries as well as a specific column field for each entry. I then pass that to the user control to grab a specific ...more >>

ado.net unbound totals column
Posted by Greg at 5/25/2006 3:40:23 AM
I was wondering if there is a simple way to present a totals column in a bound datagrid where the totals aren't actually persisted (in my case to an xml file). Ideally, when I populate the datagrid using the dataview, I would like to add values to an unbound totals column. What is the best way...more >>

Tracking user activity
Posted by Jesper at 5/25/2006 3:13:01 AM
Hi, How do you detect if there is (or not) user activity on a computer. Probably the same technique as used in the screen saver. Can I subscribe to some OS event. Regards Jesper, Denmark....more >>

_–_automatically.
Posted by Niron kag at 5/25/2006 1:29:01 AM
Hello! I want to run a specific program every day or month - in specific time automatically. Can you tell me please what is the best way to do it? Thank U! ...more >>

side-by-side assemblies in single running application
Posted by bobcat at 5/25/2006 1:18:21 AM
I'm new to side-by-side assemblies, and was unable to find any reference as to whether a single running application can access multiple versions of a class. For example, can I read a serialized object into an old version, and use it to instantiate a new version of the object? (If this works,...more >>


DevelopmentNow Blog