Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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

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

SEARCH&REPLACE in a textBox
Posted by Tomomichi Amano at 9/30/2003 9:31:50 PM
Hello. I want to make replace & search functions in my text editor. Thanks to the kind people here at the newsgroup, I was able to make the [REPLACE ALL] function. But I was not able to understand how to REPLACE the next word (the nearest word from the cursor; not REPLACE ALL, but replace only ...more >>


newbie timer question
Posted by Chris Winstanley at 9/30/2003 8:10:24 PM
Hi, I'm running version 1.0 of the .net framework on windows XP and Windows 2000. I need to run a timer that fires accurately at a 10ms interval. I've been having problems trying to get a System.Threading.Timer to run accurately at this rate (it seems to wander around 12ms to 20ms). The ...more >>

Return string + enum?
Posted by Lasse Edsvik at 9/30/2003 7:27:40 PM
Hello I was wondering if it's possible to return both a string and an enum value? both "I have a caddilac" and CADDILAC? as an example.. if so, could you guys show me? TIA /Lasse ...more >>

hashtable + binary
Posted by Ching-Lung at 9/30/2003 6:19:19 PM
Hi, I have a hashtable with some data and want to write it to a binary file. Also, if I read this binary, I want to be able to reconstruct the hashtable. How do I do this? Or is this possible to do this? Please help, thanks! -CL...more >>

ComboBox
Posted by Ehud at 9/30/2003 6:08:02 PM
does anyone know how to make a combobox readonly? that is, you can choose from it, but not enter new text at the top row (when closed) ehud ...more >>

How do I make a pop up page call in asp.net C#?
Posted by Charles at 9/30/2003 5:39:37 PM
Hello, I have a very full .aspx page in c# that I need to use another aspx page as a pop ups to help me populate? Response.redirect doesn't work what does? Also, I need to get the answer from the pop up page back to the first page. Charles ...more >>

Alter Data DataSet of one DataGrid (urgent)
Posted by Ahmet at 9/30/2003 5:26:24 PM
Hi all; I have an application in which I use dataset - dataview pair to show some values to users. On database this is my sample table named members no type name ---- ------ --------- 1 N name value 2 S xyz value and on my program I have so...more >>

System.Security.SecurityException thrown when running app from network drive.
Posted by David Lindgren at 9/30/2003 5:21:52 PM
Hello! When I am trying to run my .NET application from a network drive a System.Security.SecurityException exception is thrown. Why is that? How do I prevent it? Thanks! /David. ...more >>



table
Posted by yuen at 9/30/2003 5:11:41 PM
I want to know how to create a table which is similar to JTable. Thanks! ...more >>

newsgroup server
Posted by achh1 NO[at]SPAM yahoo.com at 9/30/2003 5:00:01 PM
Hi I want to add the newsgroup for c# in mail client of mozialla . Can you let me know the server name That is what should I enter for NNTP value in the configuration setting... Cheers ATul...more >>

timestamp
Posted by Jonas Knaus at 9/30/2003 4:02:34 PM
hi there in my database i have a column timestamp. now i read this entry with a reader: .... .... byte test ; while (reader.Read()) { test = Convert.ToByte(reader["AdrTimestamp"]); } .... .... i got the answer that this cast is not valid i also tried to do id wit...more >>

Can't override Dispose)( ?
Posted by Gawelek at 9/30/2003 3:48:10 PM
When I write this code namespace WindowsApplication1 { public class Form1 : System.Windows.Forms.Form { (...) /// <summary> /// Clean up any resources being used. /// </summary> public override void Dispose() <------- {} (...) } I obtain : C:\Temp\CSharp\WindowsAp...more >>

Crypto with Digital Certificate
Posted by Leandro H. Delamare at 9/30/2003 3:47:37 PM
Hello Group.. Someone have a sample to how crypt a string using Crypto API with digital certificate ? If someone have a sample and can send to me :) Best Regards Leandro Delamare ...more >>

weak, soft, phantom
Posted by memememe at 9/30/2003 3:44:32 PM
I see weak reference on the .net api, but I do not see soft or phantom, are they supported on .net? ...more >>

Redirection troubles
Posted by ecastro NO[at]SPAM hp.com at 9/30/2003 3:24:11 PM
I want to start a process from a C# application. I also want to redirect standard error to standard output so that I can read output from both streams just like I could from a command line. In other words, I want to emulate the following: command arg1 arg2 > file.txt 2>&1 I know I can get Str...more >>

Disposing delegates of an event
Posted by Greg Patrick at 9/30/2003 3:07:54 PM
Let's say I have a Form and I create a delegate (MyDelegate) and an event (SomethingHappened) for that form. Now other classes add their delegate to the event, e.g. theForm.SomethingHappened += new MyDelegate(this.myMethod); When I Close the form, how do I properly dispose of the delegate...more >>

treeview conrol question
Posted by kidzero at 9/30/2003 12:26:55 PM
Hello, Is there any easy way to control treeview selection ? For example if user pushes button "next" treeview control selects next node. if user pushes button "prev" treeview control selects previous node. I asked because by default in treeview control if you press arrow keys such as "up" or...more >>

Urgent Help Required from Gurus - Conditional databinding
Posted by CGuy at 9/30/2003 11:59:55 AM
Hi, I have an ASPX page which has a datagrid and this datagrid is bound to a Custom Collection. sample code this.DataGrid1.DataSource = UserManager.Users; this.DataGrid1.DataBind(); Everything works fine and when the page is loaded, the datagrid displays the list o...more >>

Wait - how ?
Posted by peteZ at 9/30/2003 11:13:00 AM
How can I tell my C# program to do nothing for 5 secs ? ie. I want to slow down a process and introduce a deliberate delay. - peteZ ...more >>

Does anybody know?
Posted by Jacek Jurkowski at 9/30/2003 10:45:24 AM
What to do with this error while compiling Setup project? "An error occured while validating. HRESULT = '80040155'" And what's wrong with this newsgroup?! ...more >>

"Optimised Debug" in Visual Studio 2003 ?
Posted by John Smith at 9/30/2003 10:19:23 AM
Sorry if this is the wrong forum... Does anyone know what the difference is between a debug build and an optimised debug build in Visual Studio 2003? ...more >>

DBF
Posted by Klaus Kaiser Apolinário at 9/30/2003 9:57:49 AM
Guys, I have a DBF ( :-S ) pseud-database here, and I need to access this dbf with C#, how I can make this??? Klaus Kaiser Apolinário COL ...more >>

Does anybody know?
Posted by Jacek Jurkowski at 9/30/2003 9:38:29 AM
What to do with this error while compiling Setup project? "An error occured while validating. HRESULT = '80040155'" ...more >>

ThreadPool and COM+
Posted by Duane Pressley at 9/30/2003 9:35:27 AM
I'm looking for someone to help me make sense of the results I'm = observing when using the ThreadPool class in a COM-Interop scenario. = Here's the set up: 1.. A classic ASP page instantiates and calls MethodA on COM+ Class = (C1).=20 2.. MethodA of COM+ class (C1) instantiates and calls M...more >>

Cannot implicitly convert type 'object' to 'int'?
Posted by Michael Schindler at 9/30/2003 9:14:54 AM
frmHauptmenue.IntMandantID = (dataGridFiBuMandant[hti.Row, 0]); Why? What can I do? possible solution is, I convert this: Convert.tostring(frmHauptmenue.IntMandantID) = (dataGridFiBuMandant[hti.Row, 0].tostring()); But, i would like not sring this is a integer...what can I do? Thanks...more >>

listview problem - simple problem
Posted by newbie001 at 9/30/2003 8:50:18 AM
I have the following code in a listview control's initList function (called from form_load event). i can't understand why the listview box still appears blank with no columns or listview items. all help is appreciated. public void initList() { listView1.Enabled = true; list...more >>

Constructors or properties
Posted by john sutor at 9/30/2003 8:36:20 AM
Is it better to set a class's properties or to pass arguments to the class initially in the constructor? ...more >>

Outlook 2000 visibility & UserProperties.Find
Posted by Eric at 9/30/2003 7:31:39 AM
I am trying to start Outlook from C#. I have succeded in accessing the Outlook Inbox and SentMail folders but I'm nowhere in being able to make the application visible! What is the secret? Also, I'm am trying to ascertain if a UserProperty has been defined for a given MailItem. The method...more >>

Component exception design question...
Posted by intrepid_dw NO[at]SPAM hotmail.com at 9/30/2003 6:42:41 AM
Hi, all. I'm looking for a "straw poll" of opinions on two ways to implement part of an exception hierarchy. Forgive the silly example I offer, but its what came to mind on the fly as I decided how to illustrate the question. Let's assume you have an application called "FruitStore," with a co...more >>

Printing a pdf stream?
Posted by craigg NO[at]SPAM gasullivan.com at 9/30/2003 5:38:48 AM
I am retrieving a pdf file from a database blob field. I want to be able to print it out on a printer now. There doesn't seem to be a way to do this. I've seen the RawPrinterHelper class on MSDN but it doesn't work with pdf's since they are in postscript and not RAW format. Also the pdf.ocx prin...more >>

Problem wiyh Application Configuration
Posted by Mevar at 9/30/2003 3:05:09 AM
Hello to everybody.I have a problem.I'm using an application configuration file to store particular settings.I use a custom Section Handler to read settings and everything work fine if I read my settings.If I add some settings to the file and I read the configuration file again I can see o...more >>

array size problem
Posted by jayson_13 NO[at]SPAM yahoo.com at 9/30/2003 2:58:02 AM
hi, I want to create a public array that can be accessible through the same class. But the problem is the size of that array is unknown until some method in the same class has been called. How can i do it? private int[] CategoryID; private void FillDataSet() { ... ...more >>

Excel object in C#
Posted by Bart Filipski at 9/29/2003 11:54:03 PM
Hello, Does anyone know how looks the syntax of SORT method in Excel object ( i mean precisely in Excel.Workbook.Worksheet.Cells.Sort(...) ) I have tryied in VBA and it works great, but I don't know how to build a Keys for this method in C# and how to pass this arguments in this method. A...more >>

Making an executable out of a project
Posted by VM at 9/29/2003 10:29:07 PM
I'm trying to make an executable that contains as few files as possible. What would I need to do that? The client really wants one file (the EXE file) that contains everything -so they can move that file from one PC to another very easilty- but I don't know if that's really possible. I tried co...more >>

C# Memory Leaks
Posted by Valerie Hough at 9/29/2003 10:03:42 PM
Currently our client runs one particular C# .NET executable, and after a few hours performance slows to a crawl. It would be very useful for me to be able to rule in (or out) the possibility that this is a result of memory leakage. Can someone point me to an article that discusses how bad prog...more >>

SEARCH&REPLACE in textBox
Posted by Tomomichi Amano at 9/29/2003 9:56:55 PM
Could some one tell me how I can seach and replace only one word in a textBox (THE FIRST WORD THAT COMES AFTER THE CURSOR). I already know how to replace ALL , but I don't know how to REPLACE one, and how to SEARCH one and select that point. Thank in advance ...more >>

Sample Code: Blocking Queue
Posted by zane NO[at]SPAM abderaware.com at 9/29/2003 9:39:57 PM
BlockingQueue implements a single-writer single-reader queue, something I find myself needing frequently when working with multiple threads and internet protocols. After an instance of BlockingQueue is created the reader can invoke Dequeue and will be blocked until either there is some objec...more >>

How do I ... Make the Calendar pop up over other controls
Posted by Charles at 9/29/2003 9:08:49 PM
Hello, I would like for my users to have a calendar control only when needed. IE button click for the control to appear and then once the date is selected. Populate a text box and the calendar control then is invisible. How do I make the calendar control pop up over other control in a ...more >>

C# equivalent to Win32 API 'LockWindowUpdate'?
Posted by Dan H. at 9/29/2003 9:03:37 PM
Hello, I've been having a pickle of time trying to find any information about the following. The Win32 API has a function called 'LockWindowUpdate' which, if I'm not mistaken, prohibits all painting of the window including children controls until unlocked. The only thing that I can find that...more >>

Internet Filter by C# Code
Posted by joey.powell NO[at]SPAM goldcoinc.com at 9/29/2003 8:48:11 PM
I would like to know if anyone has any information on how to write C# code to "intercept" http traffic to and from websites. Not that I'm trying to re-invent the wheel here, but I am having a very hard time in finding some out-of-the box software to do what I consider to be something relativel...more >>

VB Mid() funtion in C#
Posted by Tom J (Darth) at 9/29/2003 8:11:25 PM
Is there by chance a function in C# that can be used just like the built-in Mid(str,z,z) in VB? ...more >>

Memory Leaks in C#
Posted by Valerie Hough at 9/29/2003 8:01:19 PM
Currently our client runs one particular C# .NET executable, and after a few hours performance slows to a crawl. It would be very useful for me to be able to rule in (or out) the possibility that it is a result of memory leakage. Can someone point me to an article that discusses how bad progra...more >>

Integer Calculator Form
Posted by Corey Dyke at 9/29/2003 7:09:47 PM
Hi, I'm doing a lab for my C# course. This is the jist of it: Allow the user to enter 2 integer in seperate text boxes, then give them the choice of 4 buttons: +, -, * and / The answer should display in a seperate textbox upon the user clicking one of the 4 buttons. I have it all done, I j...more >>

Dislpaying values like 01,02 ---10 in a combobox
Posted by Vinitha at 9/29/2003 6:49:29 PM
Hi, Values to be displayed in a combobox(it should be in a loop). 01 02 03 --- -- 10. how 'll i display these values in a combobox ...more >>

How to format datetime?
Posted by Vinitha at 9/29/2003 6:45:42 PM
Hi, I 've ("9/27/2003 12:11:31 PM") this value in database . i need to get only this value ("9/27/2003 " ) .How will i format it to get this value? It will be helpful if some one could point me to some code sample for the same thank you in advance ...more >>

Automatic build number broken?
Posted by David Lindgren at 9/29/2003 6:44:17 PM
Hi. I'm using automatic increase on the assembly build number. Only problem is it's doesn't increase. Anyone know what might cause this? In AssemblyInfo.cs: [assembly: AssemblyVersion("1.0.*")] Thanks! /David. ...more >>

Threading problem.
Posted by muscha at 9/29/2003 6:09:00 PM
Hi All, I'm having a bit of problem with threading, when I first call Start() on my code the thread work, I call Stop() and it stopped, but when I call Start() again my thread is not started. Although in the debugger I can see that it went to the Start() method and creating the thread again. ...more >>

Server Variables
Posted by Charles Stanley at 9/29/2003 6:00:37 PM
Hi All, In a WebForm, I'm trying to assign a variable, in this case a label, the IP address of the user. The code goes something like this: Label6.Text = Request.ServerVariables("REMOTE_ADDR"); When compiling this, I get a message telling me that this denotes a property where a met...more >>

Adding resources to an assembly
Posted by Andreas_HÃ¥kansson at 9/29/2003 5:21:25 PM
Is it possible, with the use of code, to add a resource to an assembly? = Perhaps using the ResourceWriter ? Basiclly I want to do the equivalent of = adding a file to my project and making it an "embedded resource", but with the help of = code on another assembly. --=20 ANDREAS H=C5KANSSO...more >>

Handling Exception
Posted by Franz at 9/29/2003 5:21:09 PM
try { } catch (ExceptionA A) { XXXXXXXXXXXXX } catch (ExceptionB B) { XXXXXXXXXXXXX } catch (Exception) { YYYYYYYYYYYYY } Actually the codes of hanlding both Exception A and B are same. I want to put it in a single catch block. Although I know that I can gro...more >>


DevelopmentNow Blog