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# > november 2006 > threads for wednesday november 1

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

Encoding.Default - reliable ???
Posted by MrNobody at 11/1/2006 10:24:01 PM
I am having alot of difficulty with text files in .NET when they have special characters like í, ó, ç etc... When i read a text file with them and then write it back out it ignores all of those characters completely. I tried all the encoding types and it seems only Encoding.Default does...more >>


User Control in C# for vb6
Posted by callavin at 11/1/2006 10:18:01 PM
Hi, My application requires the user control to be made in C# which we have to use in VB6. Now I have to add some custom properties in that user control. I added the properties in the user-control, and these properties are visible in the "Properties" pane of that user control in VS.net but th...more >>

working with ASP:HYPERLINK
Posted by nicknack at 11/1/2006 10:04:43 PM
Hello. I have an asp:hyperling in my page and I'm trying to make it "clicked" from my code behind. Is this possible? I also tried it with JS but its look like the hyperlink doesn't have a "click()" method :( Any body have an idea? Thanks in advance, Roy. ...more >>

Need help on Regular Expression
Posted by Prakash at 11/1/2006 9:10:48 PM
Dear Friends, In my web application i have two textboxes to collect "ORIGIN" and "DESTINATION" stations. These stations are represented as three letter code.. We have an option like to provide multiple stations as seperated by comma(,) or slash(/) operator. Example Data Origin BOM, DEL,...more >>

Debug a WEB application
Posted by Dan Aldean at 11/1/2006 9:05:55 PM
Hi, I try to debug a web application and I get the following message: You don't have the permission to debug the server. Verify that you are a memeber of the 'Debugger Users' group on the server. What is that I need to do please to debug this application on the local machine? Thanks ...more >>

immutable
Posted by fallenidol at 11/1/2006 6:50:18 PM
how do you create an immutable object in c#? thanks in advance ...more >>

Transaction and RowState problem
Posted by perspolis at 11/1/2006 6:41:46 PM
Hi all I have a master detail table which I use them in Transaction to Update them. in some cases the detail table generates error and I Rollback transaction but RowState of master table dosen't go back to previous state and no data has entered in database yet but in my master table in memory it...more >>

issue with collecting Hwnd
Posted by --== Alain ==-- at 11/1/2006 5:41:39 PM
Hi, When i debugged my code (see below) from my overrider WndProc method, i discovered that update has alway left, right, botton and top set to 0. therefore i wonder if my hwnd point to the right value. how can i know that ? thx. Al. case WM_PAINT: if(m.Msg == WM_PAINT && this...more >>



Remove Values From Dictionary while Looping Through Values
Posted by O.B. at 11/1/2006 5:24:46 PM
I need the ability to parse through the values of a Dictionary and remove certain ones depending on their attribute values. In the example below, an InvalidOperationException is thrown in the foreach statement when the first item is removed from the Dictionary. From looking at Dictionary'...more >>

if else in datagrid item template
Posted by Allan Ebdrup at 11/1/2006 4:37:48 PM
I'm using dotNet 2.0 and VS 2005. I have a datagrid that I'm binding to an object data source (ODS), the objects in the ODS have an FromDate property and an Id property. Now I want to display a hyperling if(FromDate>DateTime.Now) and a label if not, how do I do this the best way? I tried to do ...more >>

How to serialize an object into the other one?
Posted by Maxwell2006 at 11/1/2006 4:24:47 PM
Hi, I have two different classes that are created from the same xsd file by using xsd.exe. How can I serialize the instance of the 1st class into an instance of the second one? Thank you, Max ...more >>

WinForms exception not including any code of me
Posted by Martin Carpella at 11/1/2006 4:24:40 PM
Hi, I've got the following stacktrace, suddenly while my application was idle and didn't even have the focus: System.InvalidOperationException: Object is currently in use elsewhere. at System.Drawing.Graphics.CheckErrorStatus(Int32 status) at System.Drawing.Graphics.DrawImage(Image i...more >>

ISO Currency code - existing enum in .NET ?
Posted by José Joye at 11/1/2006 4:12:58 PM
Hello, Is there an enum available within the .NET library which gives the valid ISO currency code? Thanks, -José ...more >>

HDC to IntPtr
Posted by --== Alain ==-- at 11/1/2006 3:27:34 PM
Hi, how to convert a HDC to IntPtr ? thx. Al....more >>

How to maximize MDI child?
Posted by Brett Romero at 11/1/2006 3:17:32 PM
I set an MDI child form to Windowstate=maximized at design time. When I new up and show the child form in the MDI parent, the child's title is hidden since it's pushed to far up (below parent tool bar). On the MDI parent, the resize icon is displayed in the top right. That means the child is ...more >>

sequence of foreach
Posted by Wilfried Mestdagh at 11/1/2006 2:27:28 PM
Hi, does foreach guarantees the sequence order starting from index 0 ? -- rgds, Wilfried [MapPoint MVP] http://www.mestdagh.biz...more >>

Updating and appending XML file
Posted by Svein Erik at 11/1/2006 12:44:58 PM
I'm creating a program which is to be used in soccer-cups. I'm going to use a xml-file to store some values, the xml file looks like this: <?xml version="1.0" encoding="utf-8" ?> <root> <player> <playername></playername> <matchesPlayed></matchesPlayed> <matchesWon></matchesWon> <...more >>

Sending messages between program instances
Posted by rwakelan NO[at]SPAM gmail.com at 11/1/2006 12:33:29 PM
I am trying to create a program that implements the Singleton pattern. If another instance of the program is created, I want to send the information to the first instance and then close the new instance. I have a couple of different ways of keeping the second instance from opening up and they s...more >>

Can I draw witohut knowing what the size would end up being?
Posted by MrNobody at 11/1/2006 11:31:02 AM
I've got a problem where I need to create an image so I can draw to some "offline" graphics object and in order to create that image I need to specify size but I will not know size until I'm done drawing... Is there any way I can just draw to something that doesn't have a size and then crat...more >>

Java System.currentTimeMillis() equivalent
Posted by AzenAlex NO[at]SPAM gmail.com at 11/1/2006 11:29:34 AM
Does anyone know what the C# equivalent of System.currentTimeMillis() would be? ...more >>

how to trigger default email client (.Net 1.1 with C#)
Posted by jswedberg at 11/1/2006 10:49:33 AM
Hi all, I'm trying to have a Windows App (.Net 1.1 with C#) trigger the default email app and populate the email with the To addresses and the subject. I'm not having any luck tracking down any references on how to accomplish this. Any suggestions would be appreciated. Thanks, Jon ...more >>

WebBrowser Click event
Posted by jjsavage NO[at]SPAM gmail.com at 11/1/2006 10:44:03 AM
Hi all, I'm trying to create a program that will do the following: 1. Load a web page 2. Fill in some fields on the page 3. Click the 'Submit' button. I've got 1 and 2, but I can't figure out how to programatically click the button on the page. Does anyone know how to do this? Th...more >>

MACROS for current function name?
Posted by Scott McFadden at 11/1/2006 10:40:08 AM
C++ has some nice macros for obtaining the current function name, current source file, and current line number (__FUNCTION__, __FILE__, __LINE__). Does C# have any comparable MACROS? ...more >>

Problem with reflection casting in .NET 2.0
Posted by TheLongshot NO[at]SPAM gmail.com at 11/1/2006 10:23:40 AM
I'm in the process of converting a VS 2003 app to VS 2005. Right now I've run into a problem which I can't figure out. The following statement: return (IDataProviderBase)(((ConstructorInfo)cache["IDataProviderBase"]).Invoke(null) ); worked fine in 2003, but gives me an InvalidCastExcepti...more >>

Resize a .exe I started in a Windows Forms Panel?
Posted by timnels NO[at]SPAM gmail.com at 11/1/2006 10:02:08 AM
I have been able to execute Notepad.exe in a Panel (set to Dock.Fill) on a Windows Form, like: ProcessStartInfo psi = new ProcessStartInfo("notepad"); p = Process.Start(psi); p.WaitForInputIdle(); SetParent(p.MainWindowHandle, uiAppPanel.Handle); ShowWindow(p.MainWindowHandle...more >>

Oracle connectivity
Posted by Will at 11/1/2006 9:30:42 AM
We have several large Oracle databases that we are writing new front ends for in .Net. The applications will be Windows clients. We are looking for the best method for connecting with the Oracle database. The Microsoft data provider requires the Oracle client to be installed, a huge footprint ...more >>

Const parameter to function
Posted by awheeler NO[at]SPAM alumni.utexas.net at 11/1/2006 8:42:02 AM
Is it possible to pass an object reference to a function and ensure that the function is unable to modify the state of the object? Thanks. ...more >>

memory leak or not?
Posted by docschnipp at 11/1/2006 8:28:02 AM
Does such a function result in a memory leak because of not explicitely setting result = null? ------------------ public override string GetValueAsString() { StringBuilder result = new StringBuilder(10); result.Append(Month.AsString()); ...more >>

First call to HttpWebRequest.GetResponse() takes forever and fails, after that it works?
Posted by mr.newsgroupguy NO[at]SPAM gmail.com at 11/1/2006 7:48:04 AM
I am working in C# .NET 1.1. My app has a button on its main form that checks to see if it has access to a file on our server, just an XML file. On our server we are running W2K IIS with a virtual directory, set to Windows Authentication. I am creating an HTTPWebRequest object on the client, ...more >>

BindingManager Problem
Posted by Mitch W at 11/1/2006 7:45:02 AM
Consider the following: I have two Access tables: TableA & TableB TableA is a list of Names with a ZipID TableB is a list of City, States, and Zips with a ZipID as a primary key autonumbered On a Windows Form I have two text boxes, Name (from TableA) and City (from TableB) I have ...more >>

Overriding Key Strokes
Posted by Irvin McCoy at 11/1/2006 7:43:02 AM
I need to override the Enter key for the entire form. In my Windows form, when a user presses Enter, I want it to behave just like a Tab, except when the focus is on a button. Here are the 2 methods I've tried: public EstDefaults() { InitializeComponent(); ...more >>

Converting form C# alias type to .NET framework type
Posted by Sharon at 11/1/2006 7:42:02 AM
There is an built-in types table for .NET framework type to C# type which are aliases of predefined types in the System namespace (http://msdn2.microsoft.com/en-US/library/ya5y69ds.aspx). How can use access and use this table (by C# code) to convert the alias to the .NET framework type. ...more >>

Debugging Unmanaged C++ DLL from C#
Posted by dvestal NO[at]SPAM gmail.com at 11/1/2006 7:35:55 AM
Sorry if this double-posts, google just crashed on me. I'm trying to debug an unmanaged C++ DLL from a C# application. The C# app references the DLL using DLLImport attributes. They are in the same solution. Here's what I've done so far: 1) Enabled unmanaged debugging in the C# application...more >>

Checking if a DataRow is "empty"
Posted by mcbobin at 11/1/2006 7:34:35 AM
Hi, Here's hoping someone can help... I'm using a stored procedure to return a single row of data ie a DataRow e.g. public static DataRow GetManualDailySplits(string prmLocationID, string prmType, DateTime prmEffectiveDate) { CRUDXHelper myCRUDXHelper = new CRUDXH...more >>

Identity Block Reserved For Inserts Issue - Are you good?
Posted by Rob at 11/1/2006 6:31:03 AM
Hi all, I have a bit of a complicated question, hope we have an SQL guru out there that can help us solve this killer problem. Due to the size of SQL Database we have (largest in the US), we try to pre-process large data files in IO until we are ready to insert directly into the database...more >>

Acess Image
Posted by Audrey at 11/1/2006 4:53:49 AM
Hi, Can I access image by image with c#.net from windows media player ? Tks for your help ...more >>

C++ to C#
Posted by funzia at 11/1/2006 2:20:16 AM
Hello! I must migrate from a project in C++ to C#. Can i convert it with a tool? Thanks!! ...more >>

Insert Byte array to SQL Server using string
Posted by james at 11/1/2006 12:00:00 AM
Hi, I am trying to insert a record into a database table, one field of which is a byte array. Using the below: Byte[] imgArr; .... <code to put image into imgArr> String sbSQL = "INSERT INTO qlink (qlink_name, qlink_start, qlink_end, qlink_image, qlink_allday, " + "qlink_am, qlink_...more >>

how to control crystalreport non database aware
Posted by Wilfried Mestdagh at 11/1/2006 12:00:00 AM
Hi, I need to do reporting. As far as I can see to get crystalreport to work you need to go to some wizards and then it is connected to a database. that is not what I want. Seems a double storage to make a report, put it into a database then read it again to print. And even then some addi...more >>

Adding Controls nearby Minimize Box
Posted by muhammet at 11/1/2006 12:00:00 AM
Hello, I want to add new controls to the blue bar that located at the top of form. I want to add controls nearby the minimize box. Is it possible? Best Regards, Muhammet ...more >>

override WNDPROC
Posted by --== Alain ==-- at 11/1/2006 12:00:00 AM
Hi, i was thinkging to override WNDPROC of my ListView control, in order to control how the headers and items will be redrawn. My purpose is to : - keep the header format (horizontal and vertical alignment) - place a sorting arrow on the extrem right of the header (close to the header bo...more >>

Help example does not compile
Posted by Waldy at 11/1/2006 12:00:00 AM
Hi there, the help for InvokeMember shows an example that will not compile: typeof(C).InvokeMember("F", BindingFlags.SetField, null, C, new Object{"strings new value"}); The error message is: A new expression requires () or [] after type ...more >>


DevelopmentNow Blog