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# > december 2005 > threads for tuesday december 13

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

Urgent Requirement for Dot Net Professionals in Bangalore, India
Posted by jobs NO[at]SPAM chimeratechnologies.com at 12/13/2005 10:20:02 PM
Greetings from Chimera Technologies Pvt Ltd, Bangalore We are URGENTLY looking for candidates for the position of a Senior Software Engineer with around 4-6 years of relevant experience with the following skill set : 1)Candidate should be proficient in C#, XM, XSL and Webservices 2) Should...more >>


bind GUI elements to xml
Posted by Sharon at 12/13/2005 10:07:55 PM
hi all I have a small application assembled from C# winForm client side (few of them) C# webService at the server side I'm using xml file to transfer the GUI information from client to server For Example in the client window there are 3 text box's and one button Text boxes are "first num" ...more >>

datareader record null
Posted by jack at 12/13/2005 9:57:33 PM
Hi im new to csharp I want to check the value of the field is null or not this is my code if ( dr["timeout"] =???? which is the function orthe method through which i can do this please help ...more >>

Events - Delegates - Inheritance
Posted by Tim at 12/13/2005 9:43:02 PM
There are a set of clients who need to be notified of certain events. I have used events and delegates (publisher-Subscriber model) for the notification mechanism. All the clients register with the event publisher and subscribe for the events that they are interested in. When a certain eve...more >>

How: Layout Managers in .Net [Windows Forms] like Java?
Posted by Mahesh Devjibhai Dhola [MVP] at 12/13/2005 9:32:22 PM
Hi, How to achieve effect of LayoutManagers like java has Grid, Flow, Border etc layouts in .Net? The case is: I am creating the form runtime and adding controls on run-time so at that time its very hactic to manipulate about other control's sizes, positions etc so there must be easy way to do ...more >>

Debugging COM DLL written in C++?
Posted by zhaoyandong at 12/13/2005 9:28:29 PM
I wrote a simple COM DLL in C++. And call the methods of this DLL from an C# project. But I don't know how to debug into this DLL. Can you help me, pls? Thnx in advance. ...more >>

Disable datagrid sorting
Posted by Mike at 12/13/2005 9:05:49 PM
Hi, I would like to disable sorting in a winform datagrid when a column header is clicked. The following does *not* seem to disable sorting and clicking the column header still sorts the grid: After loading data into the dataset: { .... this.dataGrid1.DataSource = this.ds1.tableA...more >>

difference between uint in C# and DWORD(unsigned long) in c
Posted by Virajitha Sarma at 12/13/2005 8:32:28 PM
Hi, I have a code in C which i am rewritting it in C#. I am facing problem with the following two lines : char *cipher; (DWORD*)cipher(C) and (uint*)cipher(C#) are giving different values though both DWORD(which is unsigned long) and uint occupy 4 bytes Why is it happening ? Any in...more >>



'System.ExecutionEngineException'?
Posted by sxbluesky at 12/13/2005 7:48:48 PM
when me close the application, the messagebox is coming out as below: "An unhandled exception of type 'System.ExecutionEngineException' occurred in axinterop.teechart.dll" anyone can save me ? ...more >>

combobox problem
Posted by Frederik Vanderhaegen at 12/13/2005 7:29:17 PM
Hi, I'm trying change the layout of a combobox when f.e. a certain property is set to true. My problem is the following: when I execute the code, the combobox is repainted but there always stays an area unpainted. After soms research I discovered that a combobox also contains a textbox. W...more >>

The 64 bit question
Posted by Frank Rizzo at 12/13/2005 5:55:55 PM
Hello, I have a pretty nice box in production (2 dual core Opterons) and it is running the 32-bit version of Windows Server 2003 and 32-bit version of SQL Server 2000. The application that's running on it is very performance sensitive and runs 24x7x365. However, after a bit of profiling...more >>

C# and Excel problem
Posted by Jason Huang at 12/13/2005 4:50:01 PM
Hi, In my C# Windows Form project, I want to use the Microsoft Excel as report tool. However, not all my PC clients have the same version of Microsoft Excel, some has Excel 2000, while the others has Excel 2003 and Excel XP. When I surfed the internet, I found some samples for passing value...more >>

Can a Window C# app be ported to the Web?
Posted by David at 12/13/2005 4:45:37 PM
One advantage of ActiveX is that something that is developed for (and tested with) a desktop app can be used on the web. Can .NET do this? Is there a way to develop a user interface first for a Windows app and then use that UI on the Web? It seems to me that the classes used to develop a Form...more >>

Access SQLRS2005 from .NET 1.1 application
Posted by Martin Robins at 12/13/2005 4:41:38 PM
I currently have a windows service written using VS2003/.NET 1.1 and = this accesses reports from an SQL2000RS server and distributes them via = email. My customer wants to use SQL2005RS in order to facilitate end-user = report creation; is it possible to access SQL2005RS from .NET 1.1 as I = ...more >>

DataAccess Class
Posted by dm1608 at 12/13/2005 4:32:12 PM
Hi, I'm developing a simple DataAccess class using VB.NET and C# 2005 and currently query a SQL Database with the class which returns an ArrayList object. Only about 50 rows or so. This works fine. From my main form, I simply loop thru the arraylist and populate a datagridview control and...more >>

Web User Controls returning values
Posted by Varangian at 12/13/2005 4:17:25 PM
Hello there :) I have a problem with Web User Controls but I may be doing an incorrect C# code. Basically I have a Web User Control. ascx file that has a 1 ImageButton on it. On my main page I successfully load this imageButton 3 times. Ok when the I click on the ImageButton it performs t...more >>

gmail with System.Net.Mail.SmtpClient -- release version
Posted by John J. Hughes II at 12/13/2005 3:51:21 PM
Has anyone gotten the System.Net.Mail.SmtpClient to work with gmail? In ..NET 1.1 I have it work with the Mentalis org thing but that has problems in ..NET 2.0. Regards, John ...more >>

How to support SQLite and PostgreSQL at the same time?
Posted by Karlo Lozovina at 12/13/2005 3:21:44 PM
Hi everyone! One quick question, with hope that the answers will be the same :). What to use if I want to ship two versions of my application, one using SQLite, small embedded database for single-computer instalations, and one using PostgreSQL for multi-computer instalations. Of course, ...more >>

synchronous call
Posted by Ivan at 12/13/2005 3:05:46 PM
how to make a single method thread safe? example: class A { void func() {} } thread1: A a1 = new A(); a.func(); thread2: A a2 = new A(); a.func(); Ivan...more >>

Why copy local with DLL in VS.NET?
Posted by Brett Romero at 12/13/2005 2:34:39 PM
What is the difference in copy local = true/false in VS.NET when referencing a DLL? I've noticed that changes to the DLL (recompiling) aren't reflected in my project either way. I have to remove then add the DLL to see any changes. Thanks, Brett ...more >>

Want to create either a stream or a file
Posted by Steve at 12/13/2005 2:27:56 PM
I am reworking a class that generates source code. I want to add a "preview" function, much like the refactor dialog in vs2005. To facilitate this, I have changed what used to be my "writeToFile" method to "generate" - the plan is, I will generate the text in memory, then I can either show i...more >>

WebClient question
Posted by chris.dannemiller NO[at]SPAM gmail.com at 12/13/2005 2:02:49 PM
I have a connection through WebClient running via a thread. Then I call a .OpenRead(). I would like the main thread to be able to cancel this connection. How do I go about it. ...more >>

Equivilent of VB InStr(Lcase())
Posted by MikeLing at 12/13/2005 1:48:06 PM
Hi, String.IndexOf is case sensitive so I need to covert to lower before testing the string contains a given string. In VB this is: Instr(Lcase(StringToTest, "StringToCheckFor")) What is the C# equivilent? The closest I've comeup with is: string lowerString = testString.ToLower(); low...more >>

when text is longer than its textbox
Posted by melanieab at 12/13/2005 1:42:43 PM
Hi, Is there an easy way to say, on textboxHover, if the text inside the box isn't completely visible, have a popup tool come up showing the complete contents of the box? I'm guessing I need to know if there's a way to determine the number of pixels that some generic text takes up. Also, is ...more >>

Reflection and Interfaces
Posted by John F at 12/13/2005 1:41:58 PM
Hello All, I'm dynamically loading a form through reflection. I have this working. What I'd like to do is implement an interface so that I can cast my instance to that interface. I want to be able to call methods and pass parameters normally in the dynamically loaded Form. Yesterday...more >>

Unable to read data from the transport connection
Posted by Josema at 12/13/2005 1:41:40 PM
Hi to all, Im searching a hand to solve an Exception that i get when i try to give the user to a gmail account... Any help would be appreciated.. Thanks in advance This is a piece of my code: Server=new TcpClient("pop.gmail.com",995); //stablish a connection Networkstre...more >>

abstract, virtual and interfaces
Posted by Steve at 12/13/2005 1:36:34 PM
I am designing a new class hierarchy and I've already run into a bit of a bump in the road. I have this structure so far; class CodeGen class CodeGenHeader : CodeGen class CodeGenProtocolHeader : CodeGenHeader CodeGen is not an entirely abstract class, there are properties li...more >>

Currency Manager with Grid and Form Views
Posted by C Glenn at 12/13/2005 1:34:24 PM
I have both a DataGrid and collection of data editing controls within a form connected to the same table within the same DataSet with a CurrencyManager. But they don't remain in sync with one another. I expected that when I moved the row pointer within the grid that the controls would poin...more >>

C# and VB.Net?
Posted by Mantorok at 12/13/2005 1:14:19 PM
Hi all We are an organisation that use C# currently and we have some members who are not yet trained in .Net or C#, some staff have requested they use VB instead (probably due to their background). Given that we are already using C# I think adding VB into the mix is a bad idea - not with...more >>

DoubleClick on DataGrid
Posted by C Glenn at 12/13/2005 12:53:01 PM
I would like one DoubleClick event handler to handle all double clicks throughout a DataGrid. I've assigned a DoubleClick event handler to the DataGrid and it works nifty-spiffy so long as I click outside the data. The trouble is, the underlying cells or columns or whatever would like to ...more >>

Interfaces
Posted by jjmraz NO[at]SPAM hotmail.com at 12/13/2005 12:46:57 PM
Hi, I have the beginning of an Interface class that has this in it. namespace Samples.Money { /// <summary>The common interface for simple Monies and MoneyBags.</summary> interface IMoney { /// <summary>Adds a money to this money.</summary> IMoney Add(IMoney m); <- Here ...more >>

Can not add rows into dataset using Merge()
Posted by muntyanu NO[at]SPAM hotmail.com at 12/13/2005 11:50:01 AM
Hi all, I have problem when merging existing DataTable into new dataset. DataSet ds = new DataSet(); while ( done ) { // fill myCustomDataSet.MyTable with data ds.Merge( myCustomDataSet.MyTable, bPreserveChanges, MissingSchemaAction.Add ); ds.AcceptChanges(); // tried with an...more >>

Find out if classis used in asp.net or windows app
Posted by MuZZy at 12/13/2005 11:46:06 AM
Hi, I need to be able to find out if the assembly is currently used by an asp.net app or a windows app. Assembly contains a class which has an object factory, but this object factory should throw an exception if used in asp.net app. //------------- public class CLogin { public static ...more >>

C# Open Source Projects
Posted by Eric Anderson at 12/13/2005 11:40:39 AM
Does anyone know of any C# Open Source Projects that I can get involved = in? I am a beginner in the C# world but I would like some experience = with this language though. If anybody happens to know of any projects = please let me know. --=20 (\(\ (=3D':') (,(")(") Eric Anderson...more >>

Rebuilding from command line /rebuild
Posted by Dyl at 12/13/2005 10:19:48 AM
Hello, I am trying to use an executable which when an option is clicked, it goes out and rebuilds a .sln file. I read about devenv and /rebuild, but I am still confused. Would I run something from a command prompt using a process? Any help would be appreciated, if you could give an exam...more >>

Need MailSlot sample
Posted by Rainer Queck at 12/13/2005 10:13:00 AM
Hi NG, I am working on a project in VS2005 that has to comunicate with an older application, using MailSlots. As far as I know, I have to use pInvoke to achieve this. It would be greate, to have a little sample on how to do this, please not only the C# signature like: [DllImport("kernel3...more >>

Smart client - general data access best practice question
Posted by Marc Gravell at 12/13/2005 9:16:23 AM
Kind of an open question on best-practice for smart-client design. I'd really appreciate anyones views (preferably with reasoning, but I'll take what I get...). Or if anybody has any useful links on the subject? (and yes, I have already googled it at length, but still no strong decision) ==...more >>

SQL query on in-memory data
Posted by ajay at 12/13/2005 9:08:10 AM
Hi I need to read data from flat files in memory and execute SQL query on the in-memory data. I do not have an option of using a database and I am using c# .Net to build my application. Does anyone know whether it is possible to make SQL query on datasets or on XML data for that matter. Or is...more >>

SQL query on in-memory data
Posted by ajay at 12/13/2005 9:07:58 AM
Hi I need to read data from flat files in memory and execute SQL query on the in-memory data. I do not have an option of using a database and I am using c# .Net to build my application. Does anyone know whether it is possible to make SQL query on datasets or on XML data for that matter. Or is...more >>

COM objs problems with .net
Posted by zq at 12/13/2005 9:07:24 AM
Hi! I am have a COM object which occupies more and more memory everytime it's used. The "VM size" counter (private bytes) of the process that uses the COM object keeps on growing when instantiating and using the object frequently. I tried following strategies for using the object: 1. ...more >>

GetType Question - Best way to do this?
Posted by Doug Handler at 12/13/2005 8:58:16 AM
Hi, I'm using a modified Tree control that contains a Tag property of Object. I iterate through two different tables to build the Tree w/ root nodes being Groups and child nodes being GroupMembers. As i iterate, i'm adding to the Tag property either the instance of that specific Group or ...more >>

how to Embed Winforms controls in Pocket IE
Posted by whidbeywave at 12/13/2005 8:47:46 AM
Hello Elite minds, I have worked on embedding winforms control in IE, and I have seen it works superb. I wish to do same thing for Pocket internet explorer in pocket pc and on any other WIN CE platform 4.2 binary image. I really have no clue how to go about. I still use CE 4.2 and win 2003 mob...more >>

Send voice stream to another application?
Posted by HeshamSalah at 12/13/2005 8:14:21 AM
Hi All, Is it possible to play a wave a wav file from my application and send the output to another application (like a voice chat application) instead of the speakers? I hope you can guide me or give me hints on how to do this. thanks in advance. ...more >>

Windows Service in Web Garden
Posted by RK at 12/13/2005 7:35:54 AM
Here I am using Windows service as failover for the regular C# web application which will read failed uploads( to database from the MessageQueue) and re-uploads to the database. I am using MessageQueue.GetMessageEnumerator method in PeekCompleted Event. Is this thread safe?? Any suggestions?? ...more >>

virtual properties?
Posted by ^MisterJingo^ at 12/13/2005 4:45:30 AM
Is it good pratice to make base class properties virtual? For example: public abstract class Person { protected string name; public virtual string Name { //get, set stuff here } } public class Student : Person { } In the above example the p...more >>

How to extract words out from a string?
Posted by Sling at 12/13/2005 3:26:02 AM
I code in Rexx on the mainframe which has 2 built-in functions: word(s,i) & words(s). word(s,i) returns the ith word in the s(tring), and words(s) returns the number of words within the s(tring). Is there something equivalent in C#, preferably built-in (assumed better performance), or samp...more >>

javascript validation
Posted by Mike P at 12/13/2005 3:05:12 AM
I have a method that I use for Javascript validation (see below). What I want to do is change the alert title, buttons, icon etc. Does anybody know the correct syntax to do this? private void Gen_Alert(string Key, string msg) { string str = ""; str += "<script language='javascript'...more >>

Editing Xml
Posted by Diogo Alves - Software Developer at 12/13/2005 2:49:03 AM
Hi, I'm pretty new with XML, and I need to edit a XmlDocument in C#.... now here is an example on what I need. I have this XMLDocument: <?xml version="1.0"?> <root> <name>John Doe</name> <conf class="7" uniqueid="1" password="0" /> <userlist> <users id="1" userid...more >>

Issue while closing a StreamWriter
Posted by mohit.jha NO[at]SPAM gmail.com at 12/13/2005 2:43:23 AM
Iam using streamwriter class of .net to write in a file. The location of file is a network drive. Now if for some reason the network is not there and I execute sw.close I get a exception ( that's ok). But later when network comes and I try to delete this file, it says tha...more >>

how to host applications in c# forms
Posted by khaled at 12/13/2005 2:41:03 AM
hi, i am new in c# programming and i am trying to host two applications in the same c# form. my two applications are "VLC"(video lan) and notepad. can someone help to do that? thanks. ...more >>

C# clock() function
Posted by Macca at 12/13/2005 2:23:32 AM
Hi, I am porting some code from C++ to C# I would like to know what i can use in C# to replace the clock() function that is being used in the C++ app, Thanks In Advance Macca...more >>

Convert binary64 into "avi"
Posted by nacho at 12/13/2005 1:14:00 AM
Hello, I'm developing an application using C# as main language, InfoPath as Input for a XML file and a Web Service in c# to deal with the XML file generated by InfoPath and then convert it into another different and customized XML file which I will used from a web application in C# The proble...more >>

Resizable graphics elements, scaling, etc...
Posted by mookid8000 NO[at]SPAM gmail.com at 12/13/2005 12:29:31 AM
Hi group! I want to make a program with options similar to those in Microsoft Publisher - i.e. the ability to create different types of rectangle objects in which pictures/text/whatever may be embedded. In my first attempt an element inherits from UserControl. But this gives me the followin...more >>

min max of a form
Posted by Pohihihi at 12/13/2005 12:17:13 AM
when we minimize a form and after that when we restore it ( by clicking on windows bar or by right click restore) where does the form's size and location information is saved? I need to use it to save it to registry. I know other ways to achive the same result but I want to know how windows rest...more >>


DevelopmentNow Blog