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 monday may 8

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

Aplication slows down
Posted by mamin at 5/8/2006 11:43:05 PM
My application works under IIS 5.1 and is connected with oracle 9.2 database. After a few days of working it starts to work slower aned slower. I've checked connections with database if they are closed but in Enterprise Menager Console - Instance - Sessions all connections are closed. I've noti...more >>

Correct usage of connections/data adapters?
Posted by Alex at 5/8/2006 11:21:45 PM
Hey all - I've found a lot of 'snippet' examples of hitting a sqlserver db from a csharp windows app, but I want to make sure I understand the proper usage. In the examples, they usually create the sqlconnection and pass the connection string in the form, and then open it and create a s...more >>

blocked form
Posted by Stefano at 5/8/2006 11:08:32 PM
Hi All, I have a Form1 that includes a menu. When I open a Form2, using the menu, the use of Form1 must be blocked. As can I do that? Thank you ...more >>

Problem with dynamically loaded assemblies when deployed thru notouch deployment
Posted by Ravi at 5/8/2006 10:37:04 PM
We have an application which dynamically loads an assembly and creates instances of classes. For this we have written a factory class which reflects the assembly and creates the classes and returns the created objects as plain objects. The caller method casts the object returned by the object fa...more >>

Stop two instances of a C# app running
Posted by Bishman at 5/8/2006 9:49:12 PM
I am sure this question has been asked many times before but can someone suggest a method of stopping two instances of a C# app running at the same time ? Preferably I would like an attempt to invoke a second instance to bring the first instance to the top. Thanks. Jon. ...more >>

Fastest possible serialization
Posted by _DD at 5/8/2006 9:38:13 PM
I had one experimented with binary serialization of an ArrayList of structs (each struct mostly contains strings). Strangely enough, it did not run as fast as custom XML storage (latter was nothing fancy, but did not use normal serialization). I was not pressed to get runtime optimized at the ...more >>

Literals
Posted by Rooly at 5/8/2006 7:47:00 PM
Why we use literals in simple example like here? uint a = 18U; can someone explain me more? ...more >>

Tags cloud
Posted by Sharon at 5/8/2006 7:29:32 PM
Hi all, I need to implement tags cloud. I get a collection of tags that have tag text and the number of times this tag is been used: [Movies], 52 [Dogs], 43 [Music], 52 And so on... How can i attach a font size to each tag? Any ideas or links. Thanks, Sharon. ...more >>



Show a tooltip programmatically
Posted by Paul E Collins at 5/8/2006 7:19:11 PM
How can I show a tooltip programmatically? I want to make it appear over a particular control at the specific time I choose, and not rely on the user's mouse movements. I don't mind using some Windows API call for this, if somebody can explain the parameters. Eq. ...more >>

Request.Form Loop Question
Posted by just.an.imbecile at 5/8/2006 7:01:37 PM
I have searched alot for this and cannot find an answer. I have a simple form, and when it submits, I have it posting the data. I have a simple function to loop through and print out all my form data: <table class="data" width="90%"> <tr> <th>Name</th> <th>Value</th></tr> ...more >>

Retrieving cookies from HttpWebResponse despite 404
Posted by Mr Flibble at 5/8/2006 6:31:22 PM
Hey! I get a 404 from a website (this is "correct behaviour") and I'm interested in the value in the cookie "SMSESSION". The question is the following code generates an exception due to the 404. How am I still able to read the cookies even though I get an exception? Here's the code: ...more >>

Process Question
Posted by Scott B at 5/8/2006 5:20:11 PM
I have a EXE that spits out text in XML fomat. I need to call this exe and have it write the XML to a file I am using the following code: System.Diagnostics.Process p = new System.Diagnostics.Process(); p.StartInfo.RedirectStandardOutput = false; p.StartInfo.FileName = "GetData.exe"; p.Start...more >>

Update a Draw
Posted by Luis Arnauth at 5/8/2006 5:19:42 PM
Hello, I've got a small aplication where i design a small scheme using System.Drawing. I need to use a NumericUpDown control to change some text i've draw. I have all the code under: protected override void OnPaint(PaintEventArgs paintEvent) How can i update my draws with new valu...more >>

Question about drawing bugs in DataGridView
Posted by TheSteph at 5/8/2006 5:19:05 PM
Using : Windows 2000 Pro SP4 / VS.NET 2005 / .NET 2.0 / C# - All updates done. I have several bugs when I use the DataGridView : When scrolling (or after scrolling) the grid have these problems : - Some Image/Icon (in rows) are half-drawn - Some Image/Icon are ...more >>

exporting c++ functions to c#
Posted by Pedro Fernandes at 5/8/2006 5:15:25 PM
Hi. I need held in exporting some c++ functions to c#. Does anyone has a simple sample? Thanks in advance....more >>

Label.Font.
Posted by dave at 5/8/2006 5:14:03 PM
Hello: I have array of Label controls allocated danamically. When I'm trying to change font as: LabelLeft[i].Font.Strikeout = false; I have error: "Property or indexer 'System.Drawing.Font.Strikeout' cannot be assigned to -- it is read only" Thank you. ...more >>

Adding design-time support?
Posted by Brett Romero at 5/8/2006 5:09:05 PM
How can I add design-time support to a custom control in VS.NET 2005? Thanks, Brett ...more >>

VS2005 & Firefox ???
Posted by genc ymeri at 5/8/2006 4:48:44 PM
Hi, Not sure how but everytime I start webservice project with VS2005, it runs with FireFox. I made sure that the default one is the IS but still VS2005 runs firefox with webservices. Any idea how to change that to IE ??? ...more >>

Preventing app shutdown
Posted by Mantorok at 5/8/2006 3:55:22 PM
Hi all Is there any way to prevent a user from closing down an application (via task manager)? Thanks Kev ...more >>

Simple provider crushing
Posted by Andrew at 5/8/2006 3:53:26 PM
Hi, I implemented a simple WMI Provider in C#. It is a service which expose 10 instances of a simple WMI Class. The WMI class pnly expose 4 public properties (Value,Min,Max,StdValue) which only return some constant data. First, I was using MOM 2005 (Windows 2003) to interogate the instanc...more >>

Making Convert.ToDecimal() adapt to the language settings
Posted by Gustaf at 5/8/2006 3:48:28 PM
I read some data from an XML file. Some datas need to be converted to decimals. The program is to be used in any country, so sometimes the decimal sign is "." and sometimes ",". How can I make Convert.ToDecimal() adapt to the user's language settings? Assume Windows XP and .NET Framework 1.1...more >>

Converting VB to c# with bitwise operations
Posted by jamie at 5/8/2006 3:11:11 PM
I'm having a hell of a time figure out how to translate this piece of code. Public Function AdDDNc32(ByVal Item As String, ByVal Crc32 As Long) As Long 'Declare following variables Dim bCharValue As Byte, iCounter As Integer, lIndex As Long Dim lAccValue As Long, lTableValue As Long O...more >>

Free Audio Codecs for .NET?
Posted by vighnesh at 5/8/2006 2:55:02 PM
Hello Everyone I am developing an Application in VB as well as in C#. I am able to play mp3 files using either Windows Media Player DLLs or Winamp DLLs, but I need to Convert an mp3 file in .QCP format and as well as .AMR , .MMF and .MIDI formats. Is it Possible in .NET. I came to know some...more >>

Setting the height and width of an IMG in a WebBrowser Control in a Windows Forms Application
Posted by Heidi V.Hundåla at 5/8/2006 2:54:09 PM
I have a WebBrowser-control on my win app and I want to set the size on the images which are displayed through an url like http://blabla.com/img.jpg, but somehow the setting of my WebBrowser browseMMS -object won't apply: ((mshtml.HTMLImg)browseMMS.Document.Images[0].DomElement).height = 10;...more >>

How can I get file name (url) from web
Posted by Paul M at 5/8/2006 2:42:29 PM
Hi I try to do this. I have a webpage, that i can load or display. On this webpage I have few links to files (txt or cvs). Webpage alway show same text but linked files are replaced and renamed.I have after a week another file. My question is ....: How can I get that filename who's behind...more >>

Search for File (how to)
Posted by Toco at 5/8/2006 2:01:02 PM
Hello. Anyone know how to use the FileInfo class to search for a specific file in a directory? My problem is the specific file I am looking for, but the actual filename can contain alot of extra characters that are created when a batch process takes place. for example, I know the root path a...more >>

how to create dynamic event handlers
Posted by mike at 5/8/2006 1:17:26 PM
i'm building an desktop windows app in C#. the main menu for the application will be different depending on the admin rights of the user. i've built the entire app. in delphi and i simply activated or deactivated the menu items in that case, but all the menu items are visble. i'm hoping / thinki...more >>

Threading.Timer Callback method called earlier than the specified
Posted by Ashish at 5/8/2006 12:34:02 PM
I have a timer object and i am specifying the 25 minutes after which the callback method will be called.The problem is that the method is sometimes getting called just after 2 minutes.What could be the problem?...more >>

What would be the best aproach?
Posted by Frank at 5/8/2006 11:48:17 AM
Hi All, I have a task at hand and I am trying to plan out how I should approach it. I can use either VS.NET 2003 or 2005 I need to grab data out of an Access 97 db and push it to SQL Server 2000. I intend on developing a standalone Windows app that sits on the same computer where the ...more >>

accessing static members through Type?
Posted by Rainer Queck at 5/8/2006 11:39:25 AM
Hi NG, I have a generic list of Type where I hold some class types like: List<Type> classList = new List<Type>(); classList.Add(typeof(Telegram1); classList.Add(typeof(Telegram2); ...... Each of my Telegram<x> classes has a static Member "TlgNo"; With out building a instance of the clas...more >>

3 dimension string array
Posted by Jackson at 5/8/2006 11:13:02 AM
I have something that is stumping me. I am trying to initialize a 3 dimensional string array with the code below, but it wont compile. Can anyone explain what Im doing wrong?????????????? Im going crazy with this one! Ive tried a 2 dimensional array minus the "test3" and it works fine. ...more >>

Please recommend books for learning C#
Posted by Johann Schuler at 5/8/2006 10:57:32 AM
I am learning C#. Right now I am working my way thru "Microsoft C# .NET Step by Step by John Sharp and Jon Jagger." After this I want to get into more depth. Eventually I want to pass the C# certification test. Please recommend books for me to read after I get thru the present book, in order o...more >>

user control
Posted by Hrvoje Voda at 5/8/2006 10:55:47 AM
I made a userControl for searching data in database. When I click a button Search in that userControl I would like to see result in another userControl grid. But it seems that that event never occures. Why? UserControl: public partial class CtlReceptiSearch : UserControl { public Ctl...more >>

How to direct output of console application to the screen?
Posted by Johann Schuler at 5/8/2006 10:54:02 AM
I'm learning C#. I want to direct a console application's output to a screen where I can select and copy some of the text. How do I do this? Many thanks! ...more >>

I need an answer, I must be missing something
Posted by Chris Bates at 5/8/2006 10:44:01 AM
What does the "@" char mean in the below line of code string abc = @"\\myclient\d$"; Thanks...more >>

how to change a SQL connection timeout
Posted by michael sorens at 5/8/2006 10:37:14 AM
I have used the visual designer to create a series of DataGridViews populated from SQLServer data. A typical call is: myCountsTableAdapter.Fill(myDataSet.myCounts); My application actually connects to different systems during a run; on some of these the default timeout is adequate, but...more >>

disable Scientific notation
Posted by Ryan Liu at 5/8/2006 10:27:22 AM
In C#, for a large float (9 digitals), how can I disable Scientific notation. When it auto convert to Scientific notation, I lost accuracy. Thanks a lot! Ryan ...more >>

Anoynmous methods and variable life time extension - bug or intendend?
Posted by Martin Carpella at 5/8/2006 10:24:01 AM
Hello everyone, I experience some strange behaviour of anoynmous delegates which refer to variables outside the scope of the delegate. Please have a look at the following code and output at the end of this post and tell me, if the observed behaviour is intentionally or if it is a bug. Th...more >>

safe to use string member class in finalizer?
Posted by Zen at 5/8/2006 10:10:52 AM
Hi, Is my finalizer safe? Thanks!! public class MyClass { private string m_str; public MyClass( string s ) { m_str = s; } ~MyClass() { // is this safe? if( m_str == "blah" ) // do something ; } } ...more >>

Calling C# Windows Form from C++
Posted by RedJoy at 5/8/2006 10:10:02 AM
I have inherited a huge multi project VS2003 .NET solution: Two of the projects call the same dialog boxes but have differences within the classes. For maintainability and future conversion to VS2005 C# for the Main GUI, I was creating C# Windows Forms: 1) I finally managed to call the Windo...more >>

Diffrent behaviour
Posted by M. Noroozi Eghbali at 5/8/2006 10:01:40 AM
Hi all, I put 3 validators in my page and set the "ClientScript" to true. All of them works fine when I run the .NET application on my computer. But when I publish the page on the internet, the validators cause postback events instead. this is the code: ---------------------------------...more >>

TIBCO Rendezvous
Posted by arun.hallan NO[at]SPAM gmail.com at 5/8/2006 9:57:20 AM
Hi, I have not been able to find any tutorials for using TIBCO RV online. I'm looking for something that will tell me how to send messages to a TIBCO network through it's API. Can you tell me of any you know? Thanks. ...more >>

Create rich enhanced UI
Posted by Melson at 5/8/2006 9:08:09 AM
Hi Can anyone tell me how to create a rich enhanced UI rather the normal UI in visual studio. Thanks. Regards Melson ...more >>

How do I get string's functionality with the StringBuilder?
Posted by Dan Aldean at 5/8/2006 8:50:51 AM
Hello, I have a file with CR/LF separated text. string.Trim() and string.Split() came very handy to process the content, but with the immutability the memory is badly managed. StringBuilder is a good alternative in string processing but it lacks at least the two methods above. Not to menti...more >>

Windows Login Authentication
Posted by Nick at 5/8/2006 8:06:44 AM
Platform: Visual Studio 2003 Language: C# NOTES: 1. Application will need to run on Windows 2000, Windows 2003, Windows XP 2. Client machines will be standalone NOT part of a domain. 3. I don't want to depend on having Active Directory installed Problem Description: When my application s...more >>

select node in treeview
Posted by KarlM at 5/8/2006 8:03:02 AM
Hallo! I'm filling my treenode tv with AD-infos with the following code: ____________________________________________________________________ private enum AdImages { AdRoot, Ou, Container, OpenContainer, Computer, User, Group, Unknown, Unavailable ...more >>

How to call a function in a dll on a CE device
Posted by Richard NO[at]SPAM nospam.nospam at 5/8/2006 7:57:03 AM
Hi All, I have a dll built under PB. I want to call a function in the dll from C# so... [DllImport("EventMgr.dll")] public static extern bool EventApiInit(); .... bool ret = EventApiInit(); (all within the same class def.) However when the call runs I always get: MissingMethodExcepti...more >>

How to know exception raised from a Thread
Posted by Ricardo Quintanilla at 5/8/2006 7:03:02 AM
After star a new thread and call Join() to blocks the calling thread, how can i know if an exception has been thrown inside the thread? Thanks to all...more >>

exception of type 'System.Management.ManagementException'
Posted by Lamis at 5/8/2006 6:44:02 AM
Hi, I need urgent help, this is my code to rename my hostName: (MY computer is not member of domain) string compName = System.Windows.Forms.SystemInformation.ComputerName.ToString(); WqlObjectQuery query = new WqlObjectQuery("SELECT * FROM Win32_ComputerSystem"); ManagementObjectSearc...more >>

code in .aspx page and not in the code-behind
Posted by maflatoun NO[at]SPAM gmail.com at 5/8/2006 6:40:04 AM
Hi, I have the following code in the code-behind file public string section; section = Request["section"].ToString() and I like to display it in my .aspx page (included .ascx) but it's not working. I tried <a href="default.aspx?section=<#=section#>"> is it possible to just place Re...more >>

LINEST Function
Posted by GhanaShyam at 5/8/2006 5:49:01 AM
Hi, How can I use the LINEST functionality of Excel in my .NET code. Can I use the Excel interopability dll or should I write the function code? Thanks in Advance GS....more >>

NewBie help.
Posted by archana at 5/8/2006 5:34:17 AM
Hi all, I want to develop windows application which will intiate long running stored procedure. So what i decided is to use web service for starting long running sp and setting oneway attribute. So if i close application after invoking web method asycnhronoysly and then closing my window...more >>

Need WebBrowser Help!
Posted by awacs.mod at 5/8/2006 4:54:49 AM
Hello NG. I have a WebBrowser from the ToolBox in my application. This webBrowser is there to show Internet sites as well as files on my computer. So far, so easy, but i permanently fail in showing my workspace in this WebBrowser. Can anyone help me PLEASE! Thanx in advance. Greetz, AWA...more >>

document.forms[0].submit() --- please help
Posted by Richard at 5/8/2006 4:29:34 AM
Hi, I want to have only one button to Upload file but i get Access denied error. Default.aspx.cs: protected void Page_Load(object sender, EventArgs e) { FileUpload1.Attributes.Add("onchange", "document.forms[0].submit();"); } Default.aspx: <head> <script language="javascript" type="te...more >>

Impersonating over a domain.
Posted by accyboy1981 at 5/8/2006 4:01:36 AM
Hi, I'm currently in charge of a website on an internal domain. I'm currently modifying some of the web pages and am wanting one of the pages to be dynamic and read two files located on seperate pc on a different internal domain. The code (C#) that I have in place works if the files are loca...more >>

Capturing all HTTP traffic between browser and server in .NET
Posted by gomisha at 5/8/2006 3:13:33 AM
I have a .NET (C#) web browser control wrapper that automates the browser for testing purposes. I'd like to add the ability of reading all HTTP traffic between the browser control and a web server and I'd like to do it in C#, through the web browser control. >From readings that I've done, it l...more >>

Disable events in Datagrid.
Posted by GhanaShyam at 5/8/2006 3:04:01 AM
Hi All, I am working on the winform datagrid. Now I have to disable the cursor movement in the datagrid using teh Arrow keys on keyboard and also I want to disable the mouse wheel (the scroll button) for the datagrid. Please help me in this regard. Its urgent. I will be waiting for the r...more >>

Regex to compare whether the value of a string is greater than a specific number
Posted by Stevie at 5/8/2006 2:07:07 AM
Hello I'm trying to work out the regular expression for carrying out a simple 'greater than' comparison. I have a directory with files such as asd345.log, asd346.log, asd347.log and so on. The regex is to be using in a find command, which should return a list of files whose numeric...more >>

C# 2.0 Book
Posted by Macca at 5/8/2006 2:01:02 AM
Hi, I am looking to purchase a C# book that covers .NET 2.0 and Visual Studio 2005. I have seen two books that seem good:- Pro C# 2005 & the .NET 2.0 Platform - Andrew Troelsen Programming C# 4th Edition - Jesse Liberty Does anyone have any opinions on what is the better book or ...more >>

How do I set a TextBox width acorrding to a string?
Posted by Udi at 5/8/2006 1:42:03 AM
Hi, I have a simple multiline TextBox which I need to set its width according to the longest line in Lines. I assume I need to calculate the font width, how do I do that? Thanks! ...more >>

WindowsMediaPlayer component??
Posted by Rooly at 5/8/2006 1:13:06 AM
where is WindowsMediaPlayer component in VS 2005?? in win 2003 I see it in Toolbox.. but in 2005 I can not see it! ...more >>

Strange Event Behavior (Controls with same tag value cause duplicate events)
Posted by Joseph Geretz at 5/8/2006 12:37:34 AM
Writing an Outlook AddIn with C#. For the user interface within Outlook I'm adding matching pairs of Toolbar buttons and Menu items. All of the buttons and menu items are wired up to send events to the same method (aka delegate?). I use the Tag property within this method to determine what use...more >>


DevelopmentNow Blog