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# > august 2004 > threads for friday august 6

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

Determine RAS device Com port
Posted by shofu_au NO[at]SPAM yahoo.com.au at 8/6/2004 11:10:40 PM
Hello Group, I am using the RASAPI to dial-to the internet using a GPRS modem using C#. Is it possible before dialling to retreive information about the COM port that the modem is connected for the RAS entry in the phone book. What I mean is I have two entires, Entry A and Entry B using d...more >>

Creating same new DirectoryInfo in loop?
Posted by Vagabond Software at 8/6/2004 8:29:09 PM
I am recursing through ALL folders and sub-folders below a certain level = to list all the files of a certain type in those folders. I use two = ArrayLists, alFiles and alFolders, to track matching files and my = progress in the recursion. I use a while loop to manage the folder-subfolder dri...more >>

XML Export-Import
Posted by Ghost at 8/6/2004 6:03:41 PM
Hello. What is the optimal way to manualy import/export data from/to XML file to/form my DataSet? What I wnat: 1. To add some data (records) from XML file to may dataset. 2.. To add some data (records) from dataset to may XML file. For example: Table structure: ID int Primary Key Fi...more >>

Getting a text box to scroll when it doesn't have focus
Posted by Bill McBride at 8/6/2004 5:31:58 PM
Hi all, I'm looking to put data into a RichTextBox and have the latest data been seen (the user doesn't want to have to use the scrollbar or to have focus on the window to see the data). This happens as long as the Window with the box has focus but as soon as another window has focus the scrol...more >>

Printing to a printer
Posted by Ryan Gregg at 8/6/2004 5:28:22 PM
I've got a dot matrix printer that I need to print a line at a time to. This is being used for an audit log on an application and every event that occurs needs to print out right as it occurs. I've previously had this working well in a serial communication method where I talk directly to ...more >>

isn't there a Marshal.WriteBoolean() function ?
Posted by Zoury at 8/6/2004 4:28:04 PM
Hi Folks! :O) I need to stick a BOOL value into the System.Windows.Forms.Message.Result member. (TRUE for instance..) How can I get this done ? I'd like to know the best way to do so for VB and for C#.. because something it's different. <g> -- Best Regards Yanick Lefebvre ...more >>

nullable types. why no support for nullable string
Posted by Sakoulakis at 8/6/2004 4:09:34 PM
Hi, I was just reading about nullable types and I like that feature very much. What dissapointed me is that nullable string is not supported. Imagine a field (of type sting) in a database which is not assigned. I agree with nullable only for value types but in my eyes string is kind of a ...more >>

UTF8/UTF7/ASCII problem while reading from text file
Posted by Lenard Gunda at 8/6/2004 2:32:58 PM
hi! I have the following problem. I need to read data from a TXT file our company receives. I would use StreamReader, and process it line by line using ReadLine, however, the following problem occurs. The file contains characters with ASCII codes above 128. But the file is still text (noth...more >>



INSERT syntax error OleDB
Posted by KavvY at 8/6/2004 2:23:18 PM
Hi Can anyone tell me why I get a SQL syntax error with the following code? string strInsert = "INSERT INTO dateEntry (entry, date) VALUES ('test3', '17/08/2004')"; OleDbCommand cmd = new OleDbCommand(strInsert, oleDbConnection1); try { oleDbConnection1.Open(); cmd.ExecuteNon...more >>

Spaces in enums
Posted by Zach Corera at 8/6/2004 2:14:45 PM
Is there anyway to put spaces in enum values in c#? In VB5 and VB6 you could say [Red Car] But that throws an error in c#...more >>

strange behaviour when working with exceptions
Posted by Chris at 8/6/2004 1:28:58 PM
Hi, a strange behaviour when working with exceptions : when I divide and integer by 0 will an exception be thrown. OK but, when I divide a double by 0 is no exception thrown ??? How come ? Try it out. try { int i=1, j=0; int result = i / j; // double i=1.0, j=0; ...more >>

How do I cause a conversion from base class?
Posted by Reggie at 8/6/2004 1:15:04 PM
If I have a series of classes let's say B, C, and D that all derive from class A and each of these classes can convert from/to each other. C knows how to convert from D and B into a C and likewise for the others. Now, I am given an object that is one of the above types but I am given it as...more >>

InsertCommand???
Posted by Darryn Ross at 8/6/2004 1:11:17 PM
Hi, I am running an insert statement into an access database, but i don't want to add information to every column in my table... when i run my insertcommand the following exception is thrown... "Number of query values and Destination fields are not the same"... How do i stop it from carin...more >>

Installer project does not install service
Posted by David Preuss at 8/6/2004 12:39:24 PM
Hello all, hopefully someone can help me. I have got a service which I want to deploy. I added an installer project to my solution and did everything as stated in some kb articles (eg adding the .exe and on and on.). Everything is deployed to the folders but the service itself is not insta...more >>

replacing " within a string
Posted by Dan at 8/6/2004 12:35:34 PM
I wish to replace all the occurrances of " with &quot; within a string. I have tried using myString.Replace("\"", "&quot;"), but this does not work Any suggestions will be greatly appreciated Thanks ...more >>

Design Issue
Posted by Joris Dobbelsteen at 8/6/2004 12:28:20 PM
I'm having a slight design/modeling problem and hopefully someone can provide me with some good advice or hints. The problem is that I have a sensor that captures the time period of an object passing. The software has a communication layer capable of correctly filtering frames (just like a ...more >>

Instantiating a read-only object from a factory method.
Posted by BBM at 8/6/2004 12:27:02 PM
I have an object that has a fairly complex construction sequence, so I have written a dedicated "factory" class that invokes the constructor of my object class (which does nothing but instantiate the object and set default blank/null values), and then does all the Db access and number crunchi...more >>

About web form textbox focus question !!
Posted by Paul Tsai at 8/6/2004 12:00:27 PM
Dear All, I used csharp web form to develop my company web application, and my question is how shuld I do if I want to focus on my textbox(ex. like Java Script form.txtID.focus()). Thanks !! Sincerely yous, Paul ...more >>

Crystal Reports
Posted by Robert Schuldenfrei at 8/6/2004 11:53:53 AM
Dear NG, I am just learning object orientated programing in general and C# in particular. My first real project is an inventory application using a SQL database. I have an item master editor working fine now and it is time to write some paper reports from data stored in SQL. I decided to ...more >>

Threads and ThreadPool's
Posted by Max Adams at 8/6/2004 11:47:08 AM
Threads and ThreadPool's If I use a ThreadPool how can I tell when a thead in the threadpool has exited? I don't want to set a global member variable I would much rather be able to act on an event Also (failing this ThreadPool issue) is it possible to create an array of Worker Threads, can...more >>

appSettings configuration section error
Posted by Susan at 8/6/2004 11:03:02 AM
I have a form (frmHelp) with a helpProvider on it. I have set the keyword for the text box on this form as dynamic (frmHelp.textBox1.HelpKeyword). I created a inherited form from frmHelp called frmInherited. When I try to open this new form in design mode, I get the following error: An error...more >>

System.Data.DataRowView problem
Posted by kscdavefl at 8/6/2004 11:01:01 AM
I am trying to fill a datalist with table names from an Oracle database. The program works fine using the following code: private void GetTables() { // open a database connection string con = connectLabel.Text; cn = new System.Data.OleDb.OleDbConnection(con); cn.Open(); ...more >>

DateTime problem: how to create datetime format hh:mm:ss AM/PM without the date
Posted by mimi at 8/6/2004 10:51:00 AM
my database has separate field for date and time so we can capture employees' time in and out . In Sql, date can be present in smalldatetime format, which contains only time hh:mm:ss AM/PM. How can I create datetime format in C# like that in order to update database? Thanks in advance ...more >>

Scribble bugs
Posted by benben at 8/6/2004 10:32:21 AM
I built the C# example of Scribble and played around with it for a while. I have found these following problems with the program: 1. It starts horribly slowly. I understand MSIL code must be JIT-compiled before they can be run but Scribble is such a simple program and it should not take nearly...more >>

Help!! Cache a method..
Posted by kevin_1051 NO[at]SPAM yahoo.com at 8/6/2004 10:05:03 AM
Hi, How to cache a generic method (not a webmethod) within a class? Thanks a lot! Jane...more >>

application testing
Posted by Stephen at 8/6/2004 8:32:06 AM
Hi, I have developed my application using VS.NET and used project properties to both IE and Netscape. I am testing my application on IE and Netscape. The pages appear perfect on IE but totally messed up on Netscape. can anyone please suggest me how to solve this problem? Thanks, Stephen ...more >>

Adding Attributes at Runtime
Posted by robfarmergt NO[at]SPAM gmail.com at 8/6/2004 7:12:06 AM
I would like to add the Serializable attribute to an object at runtime. I want to send a System.Web.Mail.MailMessage over the line using Remoting, but MailMessage is not serializable. Thanks in advance, Rob...more >>

Reading UTF data from c#
Posted by Sivaraj G via .NET 247 at 8/6/2004 6:51:09 AM
We created a unicode file using java application=2E It uses= methods like writeUTF(), writeInt() of java=2Eio=2EDataOutputStream= class to write the content of the file=2E We are able to read data= using java=2Eio=2EDataInputStream=2EreadUTF() method=2E It's working= well in java environmen...more >>

Windows service-IIS issue
Posted by caldera at 8/6/2004 6:34:05 AM
Hi, I want to write a windows services. But this service captures the specific asp.net web page Request. Actually I want to capture Session of the page and last request time of this web application. Windows service continously control request time. How can I handle IIS thread for a specific web ...more >>

Fill a datalist with names of tables
Posted by kscdavefl at 8/6/2004 6:23:01 AM
I have 2 datalists on a web form. I want to fill one with the names of the tables and the other with the fields in the tables of an Oracle database. Does anyone know the code to make this happen? Thanks, Dave...more >>

Windows Update
Posted by Jonny at 8/6/2004 5:15:02 AM
Hey all, Just a query, How does WUS (Windows Update Service) work? How does it identify what patches to install, and what are not valid patches for OS/Software Installed?? I know this isn't the proper place for this one, but i'm just checking Thanks -- /Jonny...more >>

Component programming
Posted by nihat79 NO[at]SPAM hotmail.com at 8/6/2004 4:15:01 AM
Hi, i have a question. I want to create my own components in C#. But i want to create non visual components like datasets,data adapters etc. How can i do that? From which class i must inherit my component?...more >>

java style JListBox
Posted by Voltaic at 8/6/2004 2:21:33 AM
so one of my favorite features of the J2SE is the JListBox implementation of the list box in that is allows a CellRenderer component. so how exactly would i accomplish this in c#? i was thinking of basically rewriting the JListBox in c#. is there an easier way, possibly something involving ...more >>

Spliting Control
Posted by Sreejith S S Nair at 8/6/2004 2:01:01 AM
hi there, I have a panel control which contain more than 10 label controls. these label controls are added dynamically by user. In this application user can slit a control into not less than 10 different shares. (don't worry about this. If a user select a control to split...more >>

Blinking
Posted by Sreejith S S Nair at 8/6/2004 1:49:02 AM
hi there, i have few labels in a panel control. Each label reprasents some percentage value. Say lbl1.text=12% ,lbl2.text=45%,lbl3.text=78% something like this. i am getting this percentage value dynamically. My question i need to highlite or make it blink when it got 100%. and i need ...more >>

get a file from the network share
Posted by HK guy at 8/6/2004 1:45:01 AM
if i want to load the txt from the network share like \\comp\share\a.txt so what can i do? Thank you...more >>

Vb.Net to C#
Posted by Sreejith S S Nair at 8/6/2004 1:43:01 AM
hi there, we need a converter to convert vb.net source project into C#. I am expecting this in next release of .NET...more >>

Color
Posted by Sreejith S S Nair at 8/6/2004 1:41:02 AM
hi there, How can i change the back color of tabs in a tab control. thanks in advance...more >>

How to map a network in C#
Posted by HK guy at 8/6/2004 1:39:03 AM
How to map a network in C#? Thank you...more >>

Moving existing forms into class library
Posted by Joshua Moore at 8/6/2004 12:09:10 AM
I'm sure this is an easy question/answer, but would greatly appreciate it :) I have a 20 mb project, and wanted to move several classes, especially forms, to a class library. I tried adding one of the forms (cs) to the class library as well as drag/drop from the main project to the class libr...more >>


DevelopmentNow Blog