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 tuesday august 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 31

ANN: Picture ProgressBar Image Collections - Promotion
Posted by Saulo I. Regis at 8/10/2004 11:36:36 PM
Password Informatica announces a special promotion! Now you can buy 2,000 (two thousand) "bar shaped", high-quality, attention capturing, jpeg images to enhance your ProgressBar visual component at a discount price. More details at our site http://www.pictureprogressbar.com Enhance eve...more >>

open a database
Posted by Lubomir at 8/10/2004 11:27:01 PM
Hi, I commented out the statement con.open() by a mistake . Surprisingly, everything worked normally. I am wondering, does the data adapter open a database? da.Fill(ds, "Table"); I could not find any information about it .... Thanks, Lubomir...more >>

Can IntPrt used in conditional statements ?
Posted by Chua Wen Ching at 8/10/2004 10:37:01 PM
Hi there, Can i use IntPtr in conditional statements like if/else? Example IntPtr a = (IntPtr)123; if (a < 125) { // call this } Any help? I keep getting an error. Thanks. -- Regards, Chua Wen Ching :)...more >>

PropertyGrid and Static Objects?
Posted by Matthias Steinbart at 8/10/2004 10:10:25 PM
Hi, I'm having a class which cannot be instanciated but is used throughout the application to indicate the state of various options through it's static properties. Now I was trying to hook this class up to a property-grid, so that the states could be monitored. Unfortunately, the PropertyGrid...more >>

Error in my WHERE clause - please help
Posted by Alex at 8/10/2004 9:58:51 PM
Why am I getting the following error? /* TYPE: System.Data.OleDb.OleDbException MESSAGE: Operator/operand type mismatch. */ It happens at the ExecuteReader() statement. I am trying to access a dbf file and it works when I don’t include any dates in my WHERE clause (i.e. my clause looks ...more >>

header text and datagrid
Posted by Lubomir at 8/10/2004 7:43:02 PM
Hi, I would have 2 questions: 1/ Is there any possibility to set up allignment for a column header text (for example RIGHT)? 2/ I want to use a datagrid style, set up at design time - how could I add a style for one column to that existing style at runtime? (Without having to ad styl...more >>

Dispatcher
Posted by Joris Dobbelsteen at 8/10/2004 7:42:06 PM
I need some thread-safe way of dispatching frames (or packets). Basically I have one thread getting the frames and it now needs to dispatch these. Because it must not be to simple: Each destination (0..254) can have: a) none attached to it (drop the frame) b) a listener attached which is the...more >>

Drawing a graph
Posted by Steve at 8/10/2004 7:40:38 PM
Hey, I would like to create some random data points at program start (preferably not with a mouse click or some other user event) and then draw them on a form. But if I create the points in the Paint event handler, it reinitializes and redraws the points every time I resize the form (see bel...more >>



Resource File question
Posted by Jon Pope at 8/10/2004 6:22:07 PM
I'm working on globalizing my C# executable. I'm doing this by creating a resource file for each culture (ie appname.fr-FR.resx, etc). This compiles into appname.fr-FR.resources.dll. In other discussions, I've seen reference to resgen.exe which produces a file named appname.fr-FR.resource...more >>

Custom Event Handler
Posted by Aaron at 8/10/2004 6:21:44 PM
I am getting an error down below, this same code works in VB, what gives? private void Form1_Load(object sender, System.EventArgs e) { System.Windows.Forms.LinkLabel l = new System.Windows.Forms.LinkLabel(); FileSystemWatcher watcher = new FileSystemWatcher(); watcher.Path = @"C...more >>

Component like XP burn componet
Posted by midnighthell at 8/10/2004 5:38:28 PM
Hey Ho! Does it exsist some component like component like XP's burn componet that I can use in .NET Framework (let it be free). My idea is to developing one small program for automatical backup on schedualed time. Thanks ! ...more >>

OpenFileDialog and BringToFront()
Posted by Daniel Jeffrey at 8/10/2004 4:36:59 PM
I need to be able to call OpenFileDialog.BringToFront() Is this possible? Due the way I am calling it, it does not come to the front of the screen. Thanks, Daniel ...more >>

Deserialization Casting Exception After Project Rebuild
Posted by Dave L at 8/10/2004 4:30:25 PM
I am using a stream and binary formatter to store data onto the disk. BinaryFormatter formatter = new BinaryFormatter(); formatter.Serialize(stream, header); formatter.Serialize(stream, data); Later I read the data back: BinaryFormatter formatter = new BinaryFormatter(); header = (Header...more >>

Maintaining backwards compatibility
Posted by cpnet at 8/10/2004 4:16:05 PM
I'm designing a solution that will involve a few assemblies, and one or two of these assemblies (that the other assemblies will need to reference) will change frequently. I think I understand how to handle setting the version numbers and publisher policy files to make sure that my 'old' assembli...more >>

Aquiring Serveral Result Sets from a Query
Posted by A at 8/10/2004 3:45:17 PM
Hi, All! I'm creating a program that executes a stored procedure from a SQL Server database. This stored procedures produces multiple result sets, in which one of these result sets are going to be used in the program. This is my question... Should I use a Data Reader to read these result set...more >>

Walking the file system?
Posted by andrew.ting NO[at]SPAM policyworks.com at 8/10/2004 3:40:36 PM
Hi there, I have a web app that needs to create a folder using Directory.CreateDirectory(path); This works fine, but once we deployed, for some reason giving read/write permissions to just the data folder in this example won't work. d:\abc\def\data\new folder We had to give rea...more >>

VCOMM in C#
Posted by Tamir Khason at 8/10/2004 3:31:43 PM
Question: I have to emulate working with some device via COM port. From sniffer I set on the device I got hexs i have to send in order to device to do what ?I want it to do, but HOW TO SEND IT. I tryed libs from INET (StreamCom, etc) example from MSDN, but no chance. I can not get what I need t...more >>

Dial a number
Posted by Ghost at 8/10/2004 3:25:33 PM
How can I dial a number by modem? ...more >>

Traceroute problems with Sockets
Posted by Tim Gallivan at 8/10/2004 3:06:42 PM
Hi gurus! I have included some code for performing a c# trace route ... this is rather difficult to explain. The code works fine in a single use scenario, you can trace route to anywhere you like. You can even make a few changes and turn it into a viable ping routine. The problem occurs whe...more >>

Tab control ?
Posted by John S at 8/10/2004 2:39:25 PM
When I change the "text" property of the TabPages collection, it seems that Visual Studio rearranges the Tab order. Does anyone know how I can prevent this? ...more >>

Help with locking system
Posted by MFRASER at 8/10/2004 2:37:17 PM
I understand that this is a shot in the dark, but I have a system that seems to lock up continuously when I am trying to convert a large dataset, 16,530 rows into my objects. I don't know if the system runs out of memory, heap size at about 90,000 or what. The system just stops working all toge...more >>

Updating a Database through a Datagrid??
Posted by Darryn Ross at 8/10/2004 2:15:52 PM
Hi, How do you update data that's been changed in a data grid column back to the database? i am loading my datagrid as follows.... try { BatchLstDs.Clear() ; BatchLstConnection.ConnectionString = AppMain.CompanyConnectionPath ; BatchLstConnection.Open() ; //Establishing the databa...more >>

SMTP-mailserver - how?
Posted by Ole Hanson at 8/10/2004 2:15:04 PM
Hi It is just plain greek to me how/why the SmtpMail-class allows you to send mail WITHOUT specifiying a password or authentication method for the mailserver. E.g. MailMessage Message = new MailMessage(); Message.To = args[0]; Message.From = args[1]; Message.Subject = args[2]; Me...more >>

DCOM, COM+, COM, MTS; what are they?
Posted by Kyle Adams at 8/10/2004 1:01:25 PM
I don't know where is the right place to ask this so I will start here. Can someone explain to me what these represent? I think they all have to do with the middleware level, but I really don't understand what a DCOM Server is or a Microsoft Transaction Server, etc. I have no idea.... Ky...more >>

Redim a String[]
Posted by Raymond Du at 8/10/2004 12:17:45 PM
Hi, Is it possible to redim a String[]? Say I have the following code: String[] strs = {"a", "b", "c"}; How do I add more String into strs? Thanks in Advance ...more >>

JPEG Resize
Posted by Anderson Calos Parucker at 8/10/2004 12:05:38 PM
I neet to resize an JPEG image and save it to disk. How I do this ?! Is there any class for JPEG images ? thanks Anderson ...more >>

Fastest way to search a string for the occurance of a word??
Posted by msnews.microsoft.com at 8/10/2004 11:46:45 AM
I need to check the request header of every request that is hitting my web server and route traffic accordingly. I can think of several ways to do this, but I am looking for the FASTEST way. Your advice would be appreciated. Thank you. ...more >>

Stack overflow
Posted by Karunakararao at 8/10/2004 11:44:27 AM
Hi All I populating graph in web application. it is poulating the total graph but it is showing messagebox "Stack overflow at line:268"; I am getting this error : Stack overflow at line:268 we are not able to idetify the error, how can i solve this error Help me. Thanks Venu. ...more >>

PInvoke Issues...
Posted by Richard at 8/10/2004 11:39:02 AM
Hi, I want to programmatically open a service and tune it's configuration from C#. I think I'm having PInvoke issues because I imported the service API functions and I'm getting nonsense errors from GetLastError() {RPC server not found/file volume label incorrect} when I try to open the SC...more >>

string compare.
Posted by benny at 8/10/2004 11:11:41 AM
Anybody can explain why String.Compare("4","¢w3")=1; but String.Compare("3","¢w3")=-1; the '¢w ' is 0x2015 ...more >>

values displayed in VS debugger
Posted by Chris at 8/10/2004 10:32:27 AM
In VS there are several types that are displayed differently in the 'watch' window. For example, System.Drawing.Point is displayed in VS like this: {X=4 Y=16}. While most types are simply displayed like this: {System.Windows.Forms.TreeView}. I want to know if this is coded into VS or if I...more >>

Open a window - get info - back to main page - in c# how?
Posted by KavvY at 8/10/2004 10:27:38 AM
Ok I've spent the best part of today looking for information on this exceedingly common task with little progress! All I want to do is have a window (or a page I'm not fussed) open when the user clicks a button, one variable is sent to the new page which is used to populate a list box. Then th...more >>

different modifier for get and set
Posted by bhavin at 8/10/2004 10:04:04 AM
hi, can i have different access levels for the get and set of a property example property Color, can i make the get public, and set protected? bh ...more >>

Can't set transpparent control as doublce buffer (Again)
Posted by °Ë´óɽÈË at 8/10/2004 10:03:21 AM
Hi, Thank you for your response. I really have some big problems in Transparent control. Can you help me? 1. Can you give me some detail information about double buffer transparent control? I found that In .net FrameWork, SelectionUIService is implemented by a double buffer transparent con...more >>

History List
Posted by Bob C. at 8/10/2004 10:01:01 AM
Hi, I would like to get the History List of Internet Explorer. (List of websites visited). How can i get this? I appreciate your help. Thanks, Bob ...more >>

newbie: updating table - proposed value
Posted by Jeff at 8/10/2004 9:57:03 AM
IDE: Visual Studio 2003 .NET OS: XP pro I have placed a datagrid on a form, and configured the datagrid to retrieve data from the database... I have also created a script that update the table, which the datagrid is based on... The script update the table, but... If I enter values into a c...more >>

Resource file
Posted by Zürcher See at 8/10/2004 9:44:20 AM
I have a form with about 10 data adapter, 3 connections, one dataset and other components on it, sometimes it goes crazy and all the inherits form tries to initialize all the components again, like setting again the dataset primary key, that will throw an error, all the dataapater command becom...more >>

<generics>
Posted by benben at 8/10/2004 9:28:55 AM
What is the difference bw the C# generics and C++ templates? ben ...more >>

System.ComponentModel.PropertyDescriptor ???
Posted by Darryn Ross at 8/10/2004 9:21:16 AM
Hi, I am wondering what this class is for System.ComponentModel.PropertyDescriptor? i need to create one of these in order to set the format property on my DataGridTextBoxColumn when setting up custom table and column styles for my datagrid for displaying my data correctly. Regards Darr...more >>

Incorrect Namespace
Posted by Huzaifa Patanwala via .NET 247 at 8/10/2004 9:09:26 AM
I have created an enterprise template project MCMSystem under my= Visual basic =2Enet solution=2E Under which I have various projects= such as DataAccess Which has a class patient and others=2E I have= specified the namespace for this class to be= MCMSystem=2EDataAccess=2E Now when I want to...more >>

Very strange thing with Time check
Posted by ssk NO[at]SPAM chol.net at 8/10/2004 9:02:00 AM
Hello! To measure some performance, I made the following code. using System; class Speed { public static void Main() { long start_time = DateTime.Now.Ticks; double d = 0; for (int i = 0; i < 1000000000; i++) { d = d + i; } Console.WriteLine...more >>

Server 530 Authetication error
Posted by sunnysearch NO[at]SPAM yahoo.com at 8/10/2004 7:48:07 AM
Hi, I am new in development. I want to develop a application which send email from yahoo acoount to rediffmail acount I am trying following Code But its giving Server 530 Authetication error.Could you suggest me anything in this matter. Thank you, Sunny try { MailMessage oMsg = new...more >>

Adding Summary Information to a file
Posted by Dennis C. Drumm at 8/10/2004 7:01:42 AM
I have an application that creates it own files to store data using a BinaryFormatter, IFormatter, and FileStream. I would like to add summary informaiton to the file and can't seem to find the documentation on this subject. Can someone stear me in the right direction? Thanks, Dennis ...more >>

Thread closing Socket
Posted by Dai Michael at 8/10/2004 6:07:01 AM
I have a server app that has several threads, one for listening, one for connecting and one for processing messages. The listening thread will listen untill the app closes, but the connecting thread will try to connect to X amount of other apps then close down once all the connections are vali...more >>

UserControl designer
Posted by Barguast at 8/10/2004 4:45:02 AM
I've got a UserControl which itself has a panel control on it. I want to make it so that other controls can be dropped onto this panel during design time. Can someone tell me how I can do this? If I've not explained well enough then tell me and I'll attempt to rephrase. Thanks....more >>

How to find yesterdays date
Posted by Mike P at 8/10/2004 4:03:47 AM
How do I use DateTime to get for example, yesterdays date, or the date 5 days ago? I am using DateTime.Now.ToString() to get today's date, and I need to also find the date at certain intervals back from that. Any assistance would be really appreciated. Cheers, Mike *** Sent via ...more >>

Translating VB.NET-code into C#.NET + ASP.NET
Posted by Sjakie at 8/10/2004 3:47:01 AM
VB.NET: Sub Application_AuthenticateRequest(sender As Object, e As EventArgs) If Request.IsAuthenticated Then 'Determine this user's roles Dim reader As SqlDataReader = _ SqlHelper.ExecuteReader(connection string, _ CommandType.StoredProce...more >>

default constraint
Posted by Patty O'Dors at 8/10/2004 3:39:03 AM
is there any SQL that can be fired off against Access that will cause it to apply a default to a particular column? using alter table mytable add constraint myconstraint default (0) for mycolumn doesn't seem to work, either over ADO or within Access. Any ideas?...more >>

Weird problem with String.Format
Posted by Scott at 8/10/2004 2:13:18 AM
I have a fairly irritating problem. I have a class with a range of public properties, one of which being 'CustomerAccountNumber' which is a string type. At one point in my application I need this customer account number in the format 'CAXXXXX XXXXX'. Now, I've tried a number of formatting opti...more >>

Process.Start() opens console window under W98
Posted by aaa at 8/10/2004 1:54:16 AM
We're running a cmdline process from our app via Process.Start(ProcessStartInfo), setting the CreateNoWindow property= "true". The process executes fine, and under NT and XP no window opens. Under Windows98 a console window pops up. Does anybody have this problem? How can I get around this? ...more >>

How to call functions from a VB6 dll ??
Posted by 50230065 NO[at]SPAM alumni.cityu.edu.hk at 8/10/2004 1:19:42 AM
To all, How can I make function calls from a VB6 dll in c# ??? What are type libraries ?? Is it the XXX.lib file generated by VB6 ?? I've tried using P/Invoke to call the dll, but IO Exception occurs (..... can't find the function's Entry Point ....) Thanks From Jason (Kusanagihk)...more >>

ListView scrollbar problem
Posted by Bartol at 8/10/2004 1:07:59 AM
Hi, On one of my forms I have a ListView with Dock=Fill, a StatusBar with Dock=Bottom and a VScrollBar with Dock=Right. It all looks and behaves as one would expect, the only problem is the ListView control doesn't display horizontal scrollbar as it should, and as it does when the Dock prope...more >>

Virtual Classes
Posted by vijaybooms at 8/10/2004 12:13:02 AM
Is there Possiblity of declaring a Class virtual in C# ?...more >>


DevelopmentNow Blog