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 2007 > threads for friday may 4

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

Help using the WebBrowser control as a generic ActiveX plug-in.
Posted by JDeats at 5/4/2007 9:17:33 PM
If I embed an WebBrowser control on a WinForm I have the ability to load any ActiveX containable object into that control using this syntax: webBrowser1.Url = new Uri(@"c:\myfile.doc"); Using this approach, I can load a MS Word document into the browser and access the Word document object...more >>


Server tags cannot contain <% ... %> constructs
Posted by lm Jr at 5/4/2007 8:59:57 PM
<cc:SourceWindow id="SourceWindow1" FileName="<%=Request.ServerVariables["PATH_INFO"]%>" RunAt="server" > The above produces the following error: Server tags cannot contain <% ... %> constructs. Any idea, what to do here? I am an old ASP programmer. Thanks for help ! LMJ ...more >>

What that site is running?
Posted by ASP.NET explorer at 5/4/2007 5:52:26 PM
http://news.netcraft.com/ has a simple utility "What that site is running?" that lets us know the server software of a website. http://toolbar.netcraft.com/site_report?url=http://www.sap.com I am just wondering how this checker utility can coded in C-sharp? Thanks, lmn ...more >>

Focus another application
Posted by Kbalz at 5/4/2007 5:24:00 PM
Hello - I've tried to search this, but the word Focus in searching always returns lots of control focusing. I would like my C# Win App to minimize, and focus a program that is already running, then send mouse clicks / keyboard interaction.. and when complete, restore my app, and focus it of co...more >>

Properties settings works on XP, but not Vista. What gives?
Posted by Thomas Thomassen at 5/4/2007 4:52:22 PM
Hi I made a screensaver in C# as a test project. At the time of creation I used XP and everything worked fine. Then I got a message from someone using Vista about an issue where the settings doesn't seem to stick. I tested on my own Vista box and I got the same result. The issue is that, ...more >>

Using ToString method to format nullable numeric variables
Posted by J Miro at 5/4/2007 3:40:01 PM
When I use ToString method to format the value of a nullable numeric variable, I get "No overload for method 'ToString' takes '1' arguments" error message. Example: Int32? myNum = 12345; Console.WriteLine(myNum.ToString("n0")); //error But if I declare myNum as non-nullable ...more >>

XmlSerializer and defaults
Posted by dmonder at 5/4/2007 3:03:35 PM
I am using the XMLSerializer to map the XML below to an object as follows: Config config XmlSerializer xmls = new XmlSerializer( typeof( Config ) ); try { TextReader tr = new StreamReader( "config.xml" ); config = (Config)xmls.Deserialize( tr ); tr.Close(); } catch ...more >>

custom listbox item w/ multiple checkboxes
Posted by brainfuelmedia at 5/4/2007 2:41:01 PM
Can anyone give me an idea of how to create a listbox with list items that look like the following: ------------------------------------------------- DatabaseUserName1 [ ] Select [ ] Update [ ] Insert [ ] Delete ------------------------------------------------- DatabaseUserName2 [ ] Select...more >>



System.Diagnostics.Process Question
Posted by RHPT at 5/4/2007 2:12:01 PM
When calling an executable via System.Diagnostics.Process, how can I pause my windows form execution until the executable closes? Basically, I want my applicatino stop processing code while the outside executable is running. Is this possible? Thank you! ...more >>

Fun with products and Expression columns
Posted by Earl at 5/4/2007 1:52:53 PM
I have somewhat of an interesting scenario: The form allows the user to select a service, which populates a a grid of product information related to that service ("service grid"). The user can then select from the products in the first grid and those choices populate the second "choices gri...more >>

Debug.WriteLine not working anymore
Posted by herc at 5/4/2007 1:02:13 PM
For some reason when I use Debug.WriteLine(), it does not send anything to the output window any more. I have noticed this in C#, VB.Net, and in Unmanaged C++. Any thoughts? ...more >>

Setting CurrentCell in DGV in CellEndEdit event ignores RowIndex
Posted by sklett at 5/4/2007 12:05:48 PM
I have a 2 column DGV. When a user enters a value in cell 0,0 I want to set cell 0,1 as current, when they enter a value in cell 0,1 I want to set cell 1,0 current, etc, etc basically zig-zagging down the rows from left to right. I'm calling this method below in my CellEndEdit event: priva...more >>

Assign repeated tasks back to the threadpool?
Posted by FLDaveM at 5/4/2007 11:56:00 AM
I'm developing an application that gets data from 100 sources (via telnet connections, but you can think stock quotes from a webservice if you like). I was planning on using the thread pool (25 at a time). I know I would start all 100 at once and as threads finish, a new thread would become...more >>

Multiple ComboBoxes, one data source
Posted by Matt at 5/4/2007 11:47:21 AM
Hi all, me again! :) I've now got an issue with combo boxes. Basically, I have a number of items that I want a user to pick from a single list. It's basically along the lines of: Fruit 1: [value] Fruit 2: [value] Fruit 3: [value] the values are setup in a string array called fruitList...more >>

Exec Class
Posted by randy1200 at 5/4/2007 11:45:36 AM
I need to be able to execute programs directly from a C# program. My first thought was to use exec, but the documentation states that exec should not be called directly from application code. Any suggestions on what should be used to start executable programs directly from C# code? Thanks, ...more >>

FileSystemWatcher with multiple folders
Posted by D2 at 5/4/2007 11:34:43 AM
Hi All, I'm just wondering whether a FileSystemWatcher object can be used to monitor multiple directores or we have to create one FileSystemWatcher object for each folder we need to monitor? I want to monitor multiple folders like: c:\windows c:\my docs d:\my pictures etc. Thanks,...more >>

XmlSerialization is failing due to a circular reference.
Posted by Jeremy Kitchen at 5/4/2007 11:22:26 AM
I have inherited a project and I am trying to figure out why the failing units tests that exist fail. I a, getting the following error when I attempt serialization. Any advice on what I should do to find the source of the problem would be appreciated. Thank you Jeremy Error 1 TestCase ...more >>

Issue with double quotes
Posted by SK at 5/4/2007 11:00:50 AM
Hello all, I need to pass a string to a sql procedure in this fashion <DateParam> <BeginDate="2007-01-25" BeginTime="08:30 AM" EndTime="09:45AM"/> </DateParam> If you notice the date and time are enclosed in double quotes. How do I achieve this in C# I tried using the escape sequence "\"",...more >>

Trivial P/Invoke question
Posted by Larry Smith at 5/4/2007 10:33:15 AM
Hi there, I need to initialize the first character to (binary) zero in a buffer returned via "Marshal.AllocCoTaskMem()". This is ultimately going to be assigned to an LPTSTR pointer inside a Win32 structure (for subsequent passing to a Win32 function). Can someone show me how to actually as...more >>

Urgent: Adding users to log on locally list programmatically using C#
Posted by abhishek.gilra NO[at]SPAM gmail.com at 5/4/2007 10:09:53 AM
Does anyone know how to add users to the log on locally list in User Rights Management inside Local Security settings. Thanks ...more >>

Active Directory get extensionAttribute
Posted by Phil at 5/4/2007 9:57:01 AM
Can someone explain to me how to find the value of a particular user's extensionAttribute1 in C#. I get this far and then have no idea what to do next. DirectoryEntry dsDirectoryEntry = new DirectoryEntry("LDAP://domain", username, password); I don't understand how to use the DirectoryS...more >>

Custom Control questions
Posted by Nathan Laff at 5/4/2007 9:52:31 AM
I have a custom Control that is a label, however I inherit from Control... 1) I override onClick and do a DrawFocusRectangle, that works great. How do I clear the focus rectangle once something else on the parent is clicked? I tried to override OnLostFocus and invalidate but that doesn't seem...more >>

Different Type of User Pattern
Posted by Craig at 5/4/2007 8:43:01 AM
What's the best design/pattern to use for a windows app that has different types of users, and where different things happen according to what type of user you are. For example: If you're User A then a button will be visible, however if you're user B, then that button will not be visible. ...more >>

save bit as 0 or 1not true or false
Posted by GotDotNet? at 5/4/2007 8:16:38 AM
I have a bit field in my dataset that reads true or false, but i need to save it to the db bit column as 0 or 1, how can i convert the true or false to 0 or 1 so it saves into the table? ...more >>

synch Outlook appointments bidirectional
Posted by tbb NO[at]SPAM uni.de at 5/4/2007 7:29:25 AM
hi I can create outlook apoointments using the outlook object model. But now to my problem, if the user edit/change the appointment in outlook I have inconsistent data because I store the appointment in my datbase too, so how can a make the change on the database, when someone change the ou...more >>

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.
Posted by kevingangsun NO[at]SPAM gmail.com at 5/4/2007 6:58:20 AM
I created an ASP.NET application for our company and it worked great on more than 4 windows 2003 servers. However, when we deployed it to another 2003 server (IIS6), we got the following error message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond ...more >>

System Architecture / .NET Remoting
Posted by Sam Shrefler at 5/4/2007 5:59:48 AM
I'm working on creating a SOA for my applications. We have numerous .NET IIS applicaitons. They all tie into a central client database for certain pieces of information. I'm trying to decide the best way to architect the system. Placing the business logic into stored procedures seems like a...more >>

Reading date value from Excel
Posted by Bharathi at 5/4/2007 3:49:21 AM
Hi, I got strucked with reading date value from excel file using C#.NET. For Jan-2000 the value I am getting is 36526.0. For all other dates also I am getting some double value like this. Is there any manipulation so that I can find out the date entered in excel file. Exce...more >>

Writing an Excel plugin
Posted by Jon Harrop at 5/4/2007 3:32:51 AM
Hi! I'd like to write an Excel plugin for signal analysis that adds functionality to Excel. The signal analysis is easy but I've no idea how to write a plugin in C#. Where are the best tutorials and examples? -- Dr Jon D Harrop, Flying Frog Consultancy The F#.NET Journal http://www.ffc...more >>

Tab Order Issue
Posted by ShaunO at 5/4/2007 3:06:01 AM
Hi, I have a form with about 40 text boxes and selection of panels and labels. I applied them using cut and paste so went through and set the TabIndex properties starting at zero and incrementing each one by 1. If i press tab within the designer it works perfectly however once compiled it ...more >>

Windows Services and SQL Server
Posted by Diogo Alves at 5/4/2007 2:59:04 AM
Greetings everyone, I am trying to access my SQL Server 2005 database with a windows service, the problem is that I can't access it! It says ERROR [28000] [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'ONEWORLD\N5DALVES$'. ONEWORLD is my domain, N5DALVES is my com...more >>

Disposable Canvas?
Posted by Jon Davis at 5/4/2007 12:25:50 AM
OK, why is Canvas not IDisposable, and how do I get rid of all the Windows handles? I'm doing a performance test of looping through a dynamic XAML-to-JPEG conversion. It gets to about 500 conversions and then crashes. Task Manager says that about 6000 Windows handles were created and the co...more >>

Bind multiple DataTables as one object to a GridView
Posted by Joe Kovac at 5/4/2007 12:00:00 AM
Hi! I have got a very complex database schema. For example a customer is constructed within a Customer table and a Person table. I have both tables as DataTables in a DataSet. When I want to bind this data to a GridView I get offered both DataTable-Adapters. Now I believe that I should bu...more >>

column.expression
Posted by EmilH at 5/4/2007 12:00:00 AM
Hi. The following line gives me exception 'Cannot find column Motherboard' (where ;Motherboard = itemsLB.SelectedItem.ToString()) itemsTable.Columns["Name"].Expression = itemsLB.SelectedItem.ToString(); Thanks. Emil ...more >>

default click behavior of radio button on showing child form
Posted by Peted at 5/4/2007 12:00:00 AM
Hi Im using c# express edition 2005 I have an MDI form, where i load multiple child forms from a dll i create, using reflection and late binding The child forms have multiple radio buttons in a groupbox, and have the appearence set to button My problem is, they have functions that ar...more >>

GDI+ Marquee
Posted by James at 5/4/2007 12:00:00 AM
Hi there, Can someone give me some pointers on how to build a marquee control? Basically, I want a something that scrolls both images and text smoothly. I know I could easily have GDI+ to draw the text and change the coordinates, but I'm thinking there is a more elegant way? Arlef ...more >>

reverse the order of selected items
Posted by Doug at 5/4/2007 12:00:00 AM
Hi I have a datagridview in a windows C# application and i am allowing a user to select items from the datagridview. I allow the user to copy the selected items to the clipboard and then if they chose, to past to the notepad application. But the items that are selected seem to be pasted...more >>

SSLStream
Posted by Dubravko Sever at 5/4/2007 12:00:00 AM
Hi, I have problem with SSLStream. I'm using it with p12 certificate and it works well when I running my code as console application (manully called). But problem starts when I tryint run it as windows service (localsystem) and a got exception: "The server mode SSL must use a certificate wi...more >>


DevelopmentNow Blog