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# > october 2006 > threads for monday october 9

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

UICulture on MUI WindowsXP question
Posted by schaf at 10/9/2006 11:48:06 PM
Hi ! I have determined, that System.Threading.Thread.CurrentThread.CurrentUICulture is en-US if I choose english as language for menus and dialogues in a MUI WindowsXP. If i set the LOC flag on english (US) it is possible to change the dataset settings, because these are also en-US. But if I ch...more >>


How to know if the user canceled the download?
Posted by jht5945 NO[at]SPAM gmail.com at 10/9/2006 11:21:46 PM
I am using C# + ASP.NET writing a web application. I set the Response.ContentType to "application/download", the use who open this URL can download the file that it outputs, but how to program the C# to know if the user clicked "cancel" button to cancel the downloading? ...more >>

Selecting current Item in C#
Posted by Kannan at 10/9/2006 11:07:01 PM
Hi, In VB.net if we want to identify current mail item in outlook, we will use following code. Set objApp = CreateObject("outlook.Application") Set objselection = objApp.ActiveExplorer.Selection Set objItem = objselection.Item(1) I am looking corresponding code in C#. I can able to ...more >>

Generics for Customer and Phones.... should be easy!
Posted by Stefano Peduzzi at 10/9/2006 10:18:03 PM
Hi, I'm building an application where I've defined a custom class Customer. Customer can have many phones (defined by phoneType and phoneNumber). I want to check that a phoneNumber is not already present in customer phones. So i've build a PhoneCollection class inheriting for List<Phone> and ...more >>

Cannot serialize BuildEventArgs : EventArgs
Posted by Danny at 10/9/2006 8:26:06 PM
Am trying to XML serialize a BuildEventArgs (used for msbuild stuff) object but I don't get any xml outputted! just a header.The docs say I should be able to serialize the class[SerializableAttribute] public abstract class BuildEventArgs : EventArgsExample:BuildErrorEventArgs test = new Build...more >>

save streaming content to local resources
Posted by Daniel Marious at 10/9/2006 7:25:24 PM
Hi, I'm looking for a .Net/COM component which would allow a .Net programmer with no streaming experience to be able to save online streams to local resources (files or to DB). I know that if I read this post I would surely think - pick up a manual and start reading, however we have no t...more >>

Is this a bug in the data adapter wizard?
Posted by Alan Pretre at 10/9/2006 4:28:13 PM
In VS 2003 when I use the Configure Data Adapter option in VS 2003 I get the size parameter to the SqlParameter set to the correct size for a varchar, for example, .... new System.Data.SqlClient.SqlParameter("@SWA_SO_TYPE", System.Data.SqlDbType.VarChar, 256, "SWA_SO_TYPE"), whereas...more >>

Problem running app in .NET 2 when .NET 1.1 was installed
Posted by Mike9900 at 10/9/2006 3:25:01 PM
Hello, If I install an application that is made with .NET 2 over an application that was made with .NET 1.1 it creates problem. Here is what I am doing: I unintall the application X that was made with .NET 1.1 and then Install the same App X that is made with .NET 2. Then I double click the...more >>



Decoding strategy
Posted by marcin.rzeznicki NO[at]SPAM gmail.com at 10/9/2006 2:57:40 PM
Hello everyone I've got a little problem with choosing the best decoding strategy for some nasty problem. I have to deal with very large files wich contain text encoded with various encodings. Their length makes loading contents of file into memory in single run inappropriate. I solved this pro...more >>

Apostrophe in Column value of DataTable select query
Posted by Tom at 10/9/2006 1:51:02 PM
Hi, I have some kind of problems with an apostrophe character ('). I would like to select from DataTable DataRow containing value horses' (with an apostrophe on the end). But when I do it in an obvious way, like this: DataTable dt = new DataTable(); DataColumn id = new DataColumn("ID",...more >>

can I add a style to RadioButtonList?
Posted by Kevin Blount at 10/9/2006 1:50:14 PM
Here's the C# code I'm trying to add: <% listitem1.Text = commIndexText["tx_3"].ToString(); listitem2.Text = commIndexText["tx_8"].ToString(); listitem3.Text = commIndexText["tx_9"].ToString(); %> <asp:RadioButtonList CssClass="smallFont" ID="login_details" runat="server" TextA...more >>

Problems with code execution on Mobile devices
Posted by Robert Iver at 10/9/2006 1:48:54 PM
Hello fellow developers, I'm hoping someone out there can steer me down the right path with this little conundrum I have, because I am getting frustrated more and more by the minute. I have a feeling it has something to do with security/authentication, but I don't know where to star...more >>

.NET 2.0 WebBrowser Mouse events
Posted by Matt S at 10/9/2006 1:26:03 PM
Is there any way to get mouse events inside a .NET 2.0 Webbrowser control. I would like to used a web browser control do display an HTML page, but not allow browsing or context menus. It will act as a viewer, but by clicking on the links, certain things should happen. Any advice is welcom...more >>

How to close a web page?
Posted by Todd Jaspers at 10/9/2006 1:15:01 PM
Hey guys, I've developed a C# Web Form using Visual Studio 2005. I can't quite figure out how to exit the form though??? On my form, I have a button which says "CLOSE". I'd like for someone to be able to click that, and then have it automatically just exit out of the application. How d...more >>

Need Help Converting VB6 to VB.NET
Posted by manmit.walia NO[at]SPAM gmail.com at 10/9/2006 1:01:31 PM
Hello All, I have tried multiple online tools to convert an VB6 (bas) file to VB.NET file and no luck. I was hoping that someone could help me covert this. I am new to the .NET world and still learning all help would be greatly apperciated. Attribute VB_Name = "Module1" Option Explicit ...more >>

DataAdapter and MS Access
Posted by elena at 10/9/2006 12:32:01 PM
Hi, All Please, help I have .NET 1.1 and MS Access, i am reading text file into MS Access table, 1. I did it with following statments; OleDbConnection conn = null; conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=C:\\Development\\WhitePlainsDB\\Data\\WhitePlai...more >>

Console app printing
Posted by evidica NO[at]SPAM gmail.com at 10/9/2006 11:19:13 AM
Does anyone know how to print an HTML file with images in a console application? ...more >>

Problem with checkboxes
Posted by DFDavis at 10/9/2006 11:12:00 AM
I know this probably isn't the best way to code this but I have to take in a group of members for a company, generate a web page with their names, what measures they meet and then place a check box for a reminder by the measures. I have created the check boxes by adding the html tag: sb.Appe...more >>

Regex question
Posted by AMP at 10/9/2006 11:05:21 AM
Hello, I have a long string that I need to take a section out of and use. The section I need always starts with "XX XX XX XX XX" and always ends with "YY YY YY YY YY" I want to throw away the rest and use whats between the 2 Marker strings. I am not sure how to do this with Regex. Any help wo...more >>

Error accessing Access DB
Posted by Mantorok at 10/9/2006 11:00:21 AM
Hi all I'm trying to connect to an Access db that uses workgroups, here is the connection string: "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=database.mdb;Jet OLEDB:System Database = system.mdw;User Id=infadmin;Jet OLEDB Database Password=******" The error is: "not a valid account nam...more >>

How to get value from SQLDataReader
Posted by teresa at 10/9/2006 9:56:42 AM
Hi Everyone, I appreciate any help if any of you know or have used this method before and can give me some suggestion. It's a bit difficult to explain: Here is my table: Table1: there are 4 columns in this table as follow: Column1 | Column2 | Column3 | Column4 | A | ...more >>

populating treeview from database table
Posted by babu17 at 10/9/2006 9:07:09 AM
hi , I have a database table with 3 columns table1: eid ename parentid 0 root 0 1 child1 0 2 child2 0 3 gchild1 1 4 gchild2 1 5 gchild3 2 6 gchild4 2 7 ggchild1 3 ..... and so on. now i want to populate the ASP.NET and C# tree view with the table entries by querying the eids an...more >>

Vista RC1 & 2 - Developers perspective?
Posted by JDeats at 10/9/2006 7:54:10 AM
This message is for any developers using Vista RC1 or RC2: I would like to know generally how you feel about developing with Vista using Visual Studio.NET 2003 or 2005. What are you likes what are your dislikes and have you encourted any major show stoppers regarding compatibility (i.e. things...more >>

RegLoadMUIString Vista P-Invoke
Posted by lissbpp at 10/9/2006 7:50:02 AM
Hello, I'm trying to get an MUI string out of the registry in display friendly format. From what I've read, strings in the following format: “@[path]\dllname,-strID” are MUI strings and receive special handling via the RegLoadMUIString API call. This is what I have come up with for the...more >>

Custom button.
Posted by Kannan at 10/9/2006 7:36:02 AM
I am creating Outlook Add-in Component using C#. I have created custom button "Formard mail" in outlook using C# component. This is displaying in Outlook menu bar. If user pressed this button, I want to save the selected mail in C: as a .msg file. Could you help me how to do that. Thanks...more >>

How to create variables and configuration settings for C# Windows Project
Posted by rohan_from_mars at 10/9/2006 7:28:55 AM
I need to store configuration details like Database Connection String, and other config details in a single location so that I can access it from any .cs file of the prj. How is it possible? Thru some particular xml file or a text file?? PLZ reply asap as its urgent ...more >>

Windows Service project doesn't install using VS 2005
Posted by JM at 10/9/2006 7:26:45 AM
Hi, I have created a Solution in VS 2005 with 2 simple projects. First project is simple Windows Service which writes an entry into event log when it starts and when it stops. Nothing else. I have added a projectinstaller also for that. I have used following settings for it (developed in VS...more >>

architecture problem
Posted by djlinsen NO[at]SPAM gmail.com at 10/9/2006 7:01:12 AM
hi I've build a webservice and a client application, the client application get's it's information from the webservice, just like it supposed to. Now comes te problem, the webservice should have an extra task, and that is maintaining socket connections with a device and send commands from the...more >>

"Late binding" in C#
Posted by Katit at 10/9/2006 6:55:19 AM
Hello, I searched archives and all pointing to use of VB6 objects from C# I want something different. 1. How can I build expandable platform? Let's say DLL's will have common set of methods (interface) and I will have main program using those DLL's. I want to achieve when I won't have to ...more >>

check RAM size and configuration?
Posted by Tarun at 10/9/2006 5:54:01 AM
Hi coders, How can check the total RAM size and the number of RAM modules and their respective sizes using C#? Regards, Tarun...more >>

Adding Two button
Posted by Kannan at 10/9/2006 5:31:02 AM
Hi, I am trying to created Outloook Add-in Com in outlook using C#. I have seen this URL for developing this sample http://support.microsoft.com/?kbid=302901 When I executed this program it created new custom button called "My Custom Button" in the Outlook menu bar. But when I tried t...more >>

Using P/Invoke to call a pointer to a pointer
Posted by harter.jim NO[at]SPAM gmail.com at 10/9/2006 5:17:24 AM
I am currently calling a 3rd party external library using P/Invoke. The library gives me a handful of functions that I need to call. I have been successful at calling many of them, but I am some trouble calling a certain function that requires a pointer to a pointer. Here is the relevant heade...more >>

Get precompiler value in C#
Posted by knurgb at 10/9/2006 4:58:59 AM
Hello, Is it possible to read precompiled value in C# code? E.g.: in VS define sumbol VER="1.1.1.*" and in C# code read this value to some parameter. Thanks, Grzegorz ...more >>

setup ask for key during installation
Posted by salman at 10/9/2006 4:37:04 AM
hello i want to make setup of my software with software protection key (like cd key ). so i can distribute my software to my two client with different keys. i want to add key so that setup will ask for product key during installation. Like windows or other software ask cd-key during installati...more >>

copy SortedList
Posted by aeshiels NO[at]SPAM gmail.com at 10/9/2006 3:34:07 AM
Hello, I have a SortedList defined as... SortedList<CUser, CUser> userList = new SortedList<CUser, CUser>(); ....and which to copy it to another sorted list SortedList<CUser, CUser> userList2 = new SortedList<CUser, CUser>(); What is the easiest way to do this w...more >>

Connect VB with C#, VB give instruction to a C# code ?
Posted by tomas_nordlander NO[at]SPAM yahoo.com at 10/9/2006 3:22:05 AM
Hi, I and a college are working on 2 projects, one in C# and one in Vb.NET, and would like to connect the projects using VB.NET project as the main GUI and let an search algorithm in C# do the heavy work. We are both rather new .net programmers and would appreciate some newbie help in letti...more >>

Searching
Posted by Alakhim Mohamad at 10/9/2006 12:31:37 AM
I want to count my document length, my windows' winword file contains images, and many more that are not text, so how should the count function treat those ? thanks ...more >>

How to create a DLL that can be called from another Win32 appl.
Posted by Claus at 10/9/2006 12:00:00 AM
Hi all, I am new to C#, .NET and Visual Studio but I have been coding professionally for more than 10 years, so I am not a complete newbe :-) At my work we are now in the process of switching from Borland Delphi to Visual Studio and C#. We have a lot of applications that we do not have time...more >>

Casting a parent class to a child class
Posted by S. Lorétan at 10/9/2006 12:00:00 AM
Hi guys, Sorry for this stupid question, but I don't know why it isn't working. Here is my (example) code: namespace Test { class A { public string Label1; } class B : A { public string Label2; } class Program { static void Main(string...more >>

Minimum age validation in C#
Posted by Jens Jensen at 10/9/2006 12:00:00 AM
How do i verify that an age entered as dd-mm-yyyy is minum 21 today in C#? Any suggestion will be highly appreciated. JJ ...more >>

Drop your pants and grab your ankles..its VISTA!
Posted by smerf at 10/9/2006 12:00:00 AM
I haven't delved into the beast that is Vista from a programming standpoint yet. But, if the blog at http://west-wind.com/WebLog/posts/4983.aspx is any indication of what we're in for.....I say we all refuse to deploy this monstrosity and make Redmond get it right. There is NO WAY people a...more >>

Seeking info on httpweblistener....
Posted by smerf at 10/9/2006 12:00:00 AM
There's damned little that I can find on this little gem. Supposedly it lets you create a mini webserver a lot easier than using sockets and covers things like SSL encryption and authentication. From what I can find it requires XP SP2 and above (can anybody verify that?). And, if you kn...more >>

C# equivalant for dll function call
Posted by Brian at 10/9/2006 12:00:00 AM
Hi, I have a standard windows dll library with the call below. Converting the structure is fine and the function call for P/Invoke is fine but is there any equivalent to the C FILE structure in C#? Thanks, Brian struct fann_error { enum fann_errno_enum errno_f; FILE *error_log; ...more >>

How to access ModuleController from View Presenter?
Posted by peter shaw at 10/9/2006 12:00:00 AM
Hi, I have a solution, that includs a project. The project have some folder, (like folder1, folder2, folder3,...). Inside folder there is a view and view presenter. Directly under project, there is modulcontroller that controls load win forms etc. In the moduleControoler I show a form like...more >>


DevelopmentNow Blog