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 tuesday november 7

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

Learning & a little confused.
Posted by GW at 11/7/2006 10:41:42 PM
Hello, I started to study c# .net today, coming from a background of classic ASP VBScript. I am having an issue with one of my beginner projects, a real simple one too. I have three files: index.aspx formControl.ascx - has a form with a few fields captureData.cs - this file contains...more >>


Framework 3.0 and Graphics
Posted by dave at 11/7/2006 10:16:02 PM
Hello: I have appl with a LOT of graphics developed in GDI+ It runs on XP( SP 2 ) and tablet PC. Q: Does 3.0 have more efficient graphics API that will work on XP(SP2) and Tablet PC ? Thank you, dave. ...more >>

Grow and shrink in percentage on the whole form?
Posted by Svein Erik at 11/7/2006 7:59:21 PM
Is it possible to grow and shrink all the controls within a form? The form contains buttons, textboxes and comboboxes. ...more >>

The thread 0xdb0 has exited with code 0 (0x0).
Posted by Martin Pöpping at 11/7/2006 5:55:16 PM
Hello, I´m writing a windows application in C-Sharp which makes long calculations (10-40 minutes). Very often I get messages like: The thread 0xdb0 has exited with code 0 (0x0). Although I do not use Threading for my program. It seems to me that Visual Studio or the designed GUI of m...more >>

Borderless Form drag and drop.
Posted by David Gouge at 11/7/2006 5:22:26 PM
Hi All, I have a borderless form that i can drag around fine when dragging anywhere on the form by using the following code: protected override void WndProc(ref Message m) { const int WM_NCHITTEST = 0x84; const int HTCLIENT = 0x01; const ...more >>

Project References or Assembly References?
Posted by User1013 at 11/7/2006 4:41:44 PM
What is the recommended method of referencing libraries in Visual Studio 2005. Project references or Assembly references?...more >>

Make the object smart, or the collection manager?
Posted by Burt at 11/7/2006 4:06:39 PM
I'm designing a C# app with Security and Portfolio objects. The goal is to value all the Securities in the Portfolio. There are four security types, and each is valued a different way, but all use the same Portfolio level market data for valuation. For each security, data is passed to a 3rd part...more >>

bind dropdown to enum
Posted by John A Grandy at 11/7/2006 3:45:05 PM
Is there a way to quickly bind/populate a dropdown list with an enum ? ...more >>



Service application and NotifyIcon
Posted by dave at 11/7/2006 3:37:02 PM
Hello: Does somebody know if NotifyIcon work with service app. I have exactly the same code that displays balloon in Windows appl, but doesn't display ballon when called from service.OnStart(). Service is LocalSystem and manual. thank you, dave ...more >>

what contains the ContextMenuStrips ?
Posted by pamelafluente NO[at]SPAM libero.it at 11/7/2006 3:32:34 PM
hello I need to iterate on the ContextMenuStrips that are on one of my form. I tried by iterating within "controls" looking for the type "ContextMenuStrip", but there seems to be no ContextMenuStrip even if I do have some of them on my form. What is the "container" where I have to look fo...more >>

Excel won't embed into WebBrowser in WinsForm
Posted by Joe at 11/7/2006 3:16:02 PM
Hi I am able to embed Excel into a WebBrowser on my Dev machine but on a client machine an instance of Excel starts in it's own window. Anyone seen this before??? Thanks Browser = new WebBrowser(); Browser.Dock = DockStyle.Fill; Browser.Location = new System.Drawing.Point(0, 0);...more >>

ThreadPool - Terminating Function Exsists?
Posted by NvrBst at 11/7/2006 3:02:28 PM
I have a thread pool. Is there a function I can override that all the ThreadPool work queues call before they terminate? IE so I can just do something like override void _threadpoolterminate(...) { //My 1 line of code "Running[this] = false;" base(...); } Kinda thing... I have a...more >>

asp.net "the object is currently in use elsewhere"
Posted by boeledi at 11/7/2006 2:16:08 PM
Dear All, (First of all this is not a c# piece of code but it does not really matter). I would really appreciate if someone could help me. I am developing an ASP.NET web site and I have to deal with images upload. When the user is selecting an image, I save it as such together with a thum...more >>

Creating POST data for Server.Transfer()?
Posted by David Veeneman at 11/7/2006 1:50:56 PM
I want to programmatically create some POST data on a web server, then pass that data to another web page that the server calls, using Server.Transfer(). What's the best way to do that? I'm programming some buttons that link to PayPal's shopping cart. The shopping cart needs a bunch of data...more >>

{ literal with AppendFormat
Posted by ramhog at 11/7/2006 1:42:26 PM
Hello all, I would like to use AppendFormat to replace tokens in a string with actual string values. The problem I am running into however is that my string uses {} around a string that I do not want formatted. Is there a way to tell the AppendFormat method not to see certain {} as a token to...more >>

Type alias in C#
Posted by peter.tornqvist NO[at]SPAM gmail.com at 11/7/2006 1:41:02 PM
Maybe I'm stupid or maybe I am missing the obvious, but I can't find a way to define a type alias in C# for primitive types (class and interfaces I can inherit from, no problem). I.e I want to declare a type that is an alias for, say, int. Conceptually, this is what I want to do: public MyI...more >>

reflection to read/write unmanaged data stucture
Posted by bill at 11/7/2006 1:35:46 PM
All, I have an unmanaged data structure that I use to pass to an umanaged DLL written in C. This works great. The structure looks sort of like this: unsafe public struct Inputs { ..... [StructLayout(LayoutKind.Sequential)] public struct InputA { public fixed doubl...more >>

Enterprise library 2.0 logging block
Posted by nyhetsgrupper NO[at]SPAM gmail.com at 11/7/2006 1:21:19 PM
Hi, Is it possible to configure the enterprise library logging block to log to different destinations based on priority. I can see it is possible to do this based on category, but would it not be logical to do this on priority also. If I have a category named "NORMAL" I maybe want messages of t...more >>

System.Net.FtpWebRequest class.
Posted by JPS at 11/7/2006 12:37:40 PM
I have Visual Studio 2005 and when I type System.Net. , I never get the FtpWebRequest object. What am I missing? ...more >>

Component model and attributes with AllowMultiple=true
Posted by Marc Gravell at 11/7/2006 12:02:27 PM
It appears that when using the component model (or the default implementation, at least), then any duplicated attributes (e.g. from properties) are dropped. In my test, component-model outputs "abc" only, and reflection ouotputs "def" and "abc" (in that order). Is there any way to get dupli...more >>

Dashboard display kiosk style
Posted by SRussell at 11/7/2006 11:14:41 AM
I have been tasked with generating a kiosk display that is comprised of two grids and one graph. I'll be showing daily production of the plant to areas of management in real-time displays. I need to update every so often, and that will be data driven I'm sure :) I'm guessing updates of ever...more >>

Balloons on system tray icon
Posted by Mythran at 11/7/2006 10:41:48 AM
There a way to add balloons to the system tray icons (our own) via C#/VB.Net 1.1? Thx, Mythran ...more >>

How to make a variable accessible to the whole application?
Posted by adodotnet20 NO[at]SPAM gmail.com at 11/7/2006 10:40:43 AM
I'm developing a Windows application and I'm having some problems in making variable accessible to the whole application. I use VS.NET 2005 and I create a database connection object in the method private void connect_Click(object sender, EventArgs e). That object I create seems to be accessible...more >>

Asnc Calls and events in .net 1.1
Posted by Glenn at 11/7/2006 10:37:41 AM
I have a class which has an async function which uses begininvoke on a delegate to run a private function in the class. The class has an event which reports back i) a unique identifier for that instance and 2) the progress of the operation on my form class I create a new background thread and...more >>

Limit a class library or assembly references to specific projects?
Posted by Che.Gonzalez NO[at]SPAM gmail.com at 11/7/2006 10:34:35 AM
Can a project or assembly limit the projects that may reference it? For example, I have a legacy project used by a data layer project. I don't want the object model project to be able to directly access the legacy project. The object model or business logic project should only be allowed to r...more >>

disable standby
Posted by Scott S. at 11/7/2006 10:30:02 AM
Does anyone know how to disable standby and any other power saver settings when my app is running? My app runs on computers that use touch screens and there is a bug in the driver that doesn't register touchscreen input as input so computers are going into standby when they shouldn't....more >>

Unit testing with VS2005
Posted by Frank Rizzo at 11/7/2006 10:26:54 AM
Does VS2005 include integrated unit testing or not? The Professional edition. If so, how can I access it - I don't see it....more >>

How to disable Ctrl+F4?
Posted by Richard Lewis Haggard at 11/7/2006 10:11:54 AM
Is there an easy way to disable the hotkey sequence Control F4 or otherwise prevent the action from killing off MDI child windows in VS05/WinForms 2? I've already figured out how to get rid of the 'x' in the caption bar but the hot key sequence is still allowing users to kill off MDI child win...more >>

What is "VB.NET My" equivalent in C#?
Posted by Bishoy at 11/7/2006 10:10:02 AM
Hi, In VB.NET there is a keyword called "My" which has a lot of properties collected at it. Is there any equivalent to this "My" in C#? Thank you....more >>

member-name as string
Posted by Ruben at 11/7/2006 10:07:04 AM
Hi! I am looking for a way to get the name of a class-member as string, as example: class A { public string a; } [...] string MemberName = GiveMeTheNameOf(A.a); What I want is: MemberName == "A.a" Is there any way to do that? Thank you! Ruben ...more >>

ASP.NET 2.0 With DLL config files Shadow Copy Question
Posted by mark_overstreet NO[at]SPAM compuserve.com at 11/7/2006 9:49:11 AM
I have a generic data layer DLL that expects to read its connection string from it's own config file. The dll and config file have been placed in the bin directory (VS.NET2005). However, due to shadow copying, the config file does not get placed in the same directory as the executing assembly ...more >>

Strange characters - help needed
Posted by Code Monkey at 11/7/2006 9:38:40 AM
I'm exporting the contents of a GridView (in C# v2) into Excel. However, whilst the GridView displays on the web page correctly, when the data is in Excel, I get a lot of =C2 characters appearing ('A' with a hat on top) where there are numbers (ie; order numbers and line totals). Is there a...more >>

URI Possible Bug?
Posted by mark_overstreet NO[at]SPAM compuserve.com at 11/7/2006 9:35:39 AM
The following code appears to be a bug. Can anyone confirm? Uri newURI = new Uri("file:///C:/Projects/Labor/Helpdesk/Source/C#/Labor.Helpdesk.Website.Solution/Labor.Helpdesk.Website/bin/Labor.Helpdesk.DataLayer.DLL"); Console.Writeline(newURI.LocalPath); Output: C:\Projects\Labor\Hel...more >>

Convert string to Integer
Posted by Shawn Ferguson at 11/7/2006 9:16:22 AM
Hello All,=20 I'm trying to do what I would think would be simple and straightforward, = but it is not. I have a 2 textbox on a form, a label, and a button, when = I click the botton I want to add the 2 textboxes and place the value in = the label. Unfortunately, when I try to convert.Int32...more >>

Serial port visibility in user control
Posted by davetelling at 11/7/2006 9:10:03 AM
I'm a newbie that is still struggling with OOP concepts & how to make things work they way I want. Using Visual C# Express, I have a form in which I added a user control to display a graph, based upon data received via the serial port. If I run the serial port in the main form code, I can get ...more >>

Save a string to a text file
Posted by CCLeasing at 11/7/2006 8:17:34 AM
I would like to open a text file titled (c:\logs.txt). If the file doesn't exist i would like to create it. if it does exist i would like to append to it. I would like to insert a line into the end of the file. The line is contained in the variable 'line' which is a string variable. onc...more >>

Find out if a class is inherited from a certain other class
Posted by Joachim at 11/7/2006 8:16:02 AM
How can you find out if a class is inherited from a certain other class? Is there another way than using .BaseType several times?...more >>

Configuration is read only
Posted by Rua at 11/7/2006 8:13:02 AM
Hello I need to include some name value properties in runtime. I tried ConfigurationManager.AppSettings.Add(strLSystem, strClient); but it tells me that configuration is read only. Can anyone tell me how to do this? It does not have to be written in the app file, but I need to write per...more >>

DataReaders - networking problems or benefits?
Posted by Doug at 11/7/2006 8:11:29 AM
If I am grabbing a lot of rows (say 10,000 from SQL) would I be helping or hurting the network by using a DataReader? I would think helping because it's really only returning 1 row at a time, but I'm not sure. Are there good articles out there that explain how the DataReader does this as well...more >>

Help with string.StartsWith() please
Posted by CCLeasing at 11/7/2006 7:24:43 AM
I have a text file which consists of lines of data. Each line has units of data seperated by semicolons, like so. AAAA ; some text relating to AAAA ; some more text relating to AAAA BBBB ; some text relating to BBBB ; some more text relating to BBBB I have a form which consists of a combo bo...more >>

CJK Text in Console Application
Posted by TheOne at 11/7/2006 7:13:57 AM
I'm newbie. I tried to compile and excute this super simple code. =3D=3D codestart =3D=3D class Sample1 { static void Main() { string person; person =3D "=C0=CC=C8=BF=B8=AE=BE=BE"; System.Console.WriteLine(person + ", =BE=C8=B3=E7=C7=CF=BC=BC=BF=E4= "); ...more >>

add radiobuttons to the first column in a datagrid
Posted by neoret NO[at]SPAM gmail.com at 11/7/2006 6:43:55 AM
Hello. I need some help on how to add a radiobutton to every row in the first column in a datagrid. The datasource to the datagrid is a dataTable. I loop through this table to add rows and just need to find the right way to add a radiobutton for each row... I need the radio buttons to be...more >>

Listbox flickers on form resize
Posted by nirdeshonline NO[at]SPAM gmail.com at 11/7/2006 6:37:16 AM
Hi, I have added a simple listbox in windows form under c# 2.0. It contains a collection of approx 10 strings as list items. Now when i resize the form whole listbox flickers. Please tell me any feasible solution, i need to use a checked listbox which also has same flickering problem on resiz...more >>

Blitter 80 fps @ 1024x800 YUV420
Posted by jaggomiken at 11/7/2006 6:29:12 AM
Hi all, I'm working on a video acquisition project for industrial application. I need to capture, save and show 80 frames per second 800x1024 pixels YUV420/422 and RGB24 images. We are planning to implement business logic with unmanaged C++ code and GUI with managed C# code. What do you thin...more >>

Database schema using GetSchema
Posted by JPS at 11/7/2006 6:19:53 AM
I tried using GetSchma to return all of the tables in the database, but this doesn't seem to work. What I am trying to do is get schema information on all of the tables in one databes and then all of the fields in each table and their properties. Can anyone show me a code sample of how to do th...more >>

how can i call C# method in c++ code?
Posted by kumarabhijit NO[at]SPAM gmail.com at 11/7/2006 5:35:08 AM
Hi! Can anyone tell me how can i call C# method in c++ code? Thanks in advance! Regards Abhijit ...more >>

Get assembly interface implementations
Posted by Joachim at 11/7/2006 4:48:01 AM
Is there a way to get the names of all classes that implements a certain interface from an assembly?...more >>

network programming in c#
Posted by hinethql at 11/7/2006 3:56:42 AM
sorry everybody i'm newbie i want to learn network programming in c# but ,i don't know where i can start can u show me the way ...more >>

Microsoft enterpise library
Posted by nyhetsgrupper NO[at]SPAM gmail.com at 11/7/2006 3:52:17 AM
Hi, Are you using the Microsoft enterpise library? I am considdering using this in a new project. I am specialy interested in the Logging, database, and exception modules. Anyone having experience with this? It seems pretty nice, but I am concerned about the performance. I think the enterprise ...more >>

building XMLSerializer
Posted by learner at 11/7/2006 3:18:12 AM
how we can build XMLSerializer without using System.Xml namespace in c# ...more >>

Datagridview
Posted by Toze at 11/7/2006 2:53:02 AM
I need to manipulate each cell in datagridview. Is possible to divide one cell in 3 part or paint with lines? If you have advanced samples to work with cell in datagridview, please send me. Thank you...more >>

change permissions in the registry
Posted by sgr at 11/7/2006 2:51:02 AM
Hello All, How can i do in order to change a permission for an user in a registry key. How to do it programatically. Thanks in advance... Regards, ...more >>

Exception on send with UDPClient
Posted by pavel.orehov NO[at]SPAM gmail.com at 11/7/2006 2:33:31 AM
Hi, I am using UDPClient with C# to communicate with other peer. I have the problem that when I send a lot of data to the remote peer I get an error "An operation was attempted on something that is not a socket". From the beginning everything works fine, I receive and send data, but after s...more >>

help - populating a combox box from a text file and updating a listbox automatically
Posted by CCLeasing at 11/7/2006 2:21:39 AM
Hello, I have searched google but can not find a straight forward answer to my problem. Hopefuly someone will be kind enough to offer their expertise. Please forgive if this seems a bit convoluted but this is probabally a reflection of my not clear understanding of the mechanics behind what i'm ...more >>

Parsing multipart/form-data stream
Posted by Cuong.Tong NO[at]SPAM gmail.com at 11/7/2006 2:14:25 AM
Greeting, Can anyone give me some hints about parsing the mulitpart/form-data stream? I have a form looks something like this <form action=3D"process.dll> <input type=3Dfile name=3Dfileupload> </input> </form> So when I choose the local file from the browser, and click submit it w...more >>

Test for generic interface
Posted by kasper.rung NO[at]SPAM gmail.com at 11/7/2006 1:15:55 AM
I have a problem formulating a test to see if an object is implementing a generic interface. I have the following: public interface IGeneric<T> { void Foo(); } public class StringClass : IGeneric<string> { public void Foo() {/** something**/...more >>

ANN: .NET 3.0 Final
Posted by Thomas Scheidegger [MVP] at 11/7/2006 12:46:23 AM
Microsoft .NET Framework 3.0 Redistributable Package http://www.microsoft.com/downloads/details.aspx?familyid=10cc340b-f857-4a14-83f5-25634c3bf043 Readme http://msdn.microsoft.com/windowsvista/support/relnotes/netfx3/default.aspx Visual Studio 2005 extensions for .NET Framework 3.0 ...more >>

Anyone from Ukraine, East Europe or India here?
Posted by Vaux at 11/7/2006 12:20:24 AM
Anyone from Ukraine, East Europe or India here? I need someone on longer term that help me with learning VB and C#. I can open some small $20 bids by rentacoder or scriptlance for your patience. If I have some development job I can give this you in future too contact: gp(AT)f5web.com ...more >>

Form inheritence
Posted by Alan T at 11/7/2006 12:06:44 AM
Can someone tell me how to create a form inherit from another form ? In my project, I have created a form with buttons and groupbox to be used as ancestor, how to create a form inherit from this form ? ...more >>

Propagation of events from custom control to Form
Posted by Rob at 11/7/2006 12:00:00 AM
When a custom control is used within a form, that control does not get events directly. I've run into this a couple times with both mouse and keyboard events. Ex: A custom control inherits from UserControl (or Panel, etc). If that particular control is being edited, it IS possible to assign ...more >>

How to move a control at run time
Posted by Alan T at 11/7/2006 12:00:00 AM
I want to move a textbox to the same position as another combobox at run time, but got compilation error. I use the Location.X and Location.Y but no luck. ...more >>

Parse string from C# to stored procedure
Posted by Wing Siu at 11/7/2006 12:00:00 AM
Dear All Experts I faced a problem which cannot solve In C#, I am using SqlParameter to store the input parameter of stored procedure with their value Then in stored procedure, we have 2 style First, run the SQL normal, e.g. INSERT INTO Table1 (field1, field2, @param1, @param2) An...more >>

Inherited method
Posted by Alan T at 11/7/2006 12:00:00 AM
I got a method in my ancestor form declared as Protected, this method has empty body. In my descendant form I declared as Protected also, then compile has no problem but the name of the method has green underline. The warning of the compilation is about the method hides inherited member. Us...more >>

GridView with a View
Posted by Mikaël_PLOUHINEC at 11/7/2006 12:00:00 AM
Hello, I work with SQL Server 2005 and a dataset in my VS.NET project. I would like to use a GridView. Is that possible to use a grid View and configure his datasource with a View (in SQL Server)? How can I do that? Thanks a lot. Mike...more >>


DevelopmentNow Blog