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 2005 > threads for tuesday may 24

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

How to attach a control to combobox drop down event?
Posted by Patrick Blackman at 5/24/2005 11:58:37 PM
I want to attach a usercontrol or form to the combobox drop down so that when I click the down arrow the usercontrol or form is shown and not the combobox dropdownlist. My aim is to create a color picker control functionality. ...more >>

File to Memory stream
Posted by Robert Strickland at 5/24/2005 6:23:13 PM
I have code that opens a file to a textreader then I load the reader into memory through the System.Text.Encoding.UTF8.GetBytes. Is there a way to open a file directly into memory? ...more >>

How to profile an app?
Posted by Frank Rizzo at 5/24/2005 6:19:21 PM
Hello, I was wondering whether was a product out there that profiles a .NET application. What I mean by that I want to know how much each line spends in code, etc... I remember there used to be one for VB6 (Numega), but their current version doesn't seem to support this feature. Than...more >>

Really Simple Math
Posted by Christopher Weaver at 5/24/2005 5:14:34 PM
I've declared o to be a double and c an int. No matter what the value of c, o is never greater than 0 after the following line of code: o = (c / 100); Any ideas why? ...more >>

Updating a DataSet with a ComboBox
Posted by Christopher Weaver at 5/24/2005 4:23:05 PM
I would like my user to be able to type in a value or select one from the dropdown of a ComboBox. I've set the DropDownStyle to DropDown so that they can do both within the component. But I can't seem to get the value typed in to replace the original value in the DataSet as it would in a tex...more >>

Extracting icons from frx file
Posted by John Holmes at 5/24/2005 2:55:02 PM
I have some icons that I used in a VB6 program several years ago and I'd like to use the same icons in a newer C# windows forms app. I haven't been able to find the icons which are common icons for a document imaging applications. Is there a way to extract icons from an frx file? I see a referen...more >>

new OdbcParameter("
Posted by Christopher Weaver at 5/24/2005 2:44:43 PM
I'm more than a little bit confused by the last parameter of one of the overloads of this constructor. I'm pretty certain that I need to specify that the parameter is an output and what the source column is, and so I'm constrained to this overload. I just don't know what the last parameter i...more >>

HKEY_LOCAL_MACHINE Registry Access
Posted by Kevin Swanson at 5/24/2005 1:41:03 PM
I'm attempting some remote registry manipulation via C#. I've written a test app to simply grab a specified key from a specified hive on a specified machine. The call to OpenSubKey is throwing System.SecurityException. Also of note: Sitting at my local box, I can open regedit and connect to t...more >>



UserControls
Posted by Kim at 5/24/2005 12:47:35 PM
Im kind of new to the C# world so please bear with me. I have a form that contains a navagation bar in the bar is a listing of clients. I also have a usercontrol that has a bunch of textboxes that will fill the data on a client. My problem that Im having is once the user clicks on a clients n...more >>

Specified cast is not valid
Posted by nchary05 NO[at]SPAM gmail.com at 5/24/2005 12:38:52 PM
Hi, When I am trying merge all my dlls, at the end (in log file), I am getting following error: ILMerge: Writing target assembly 'communicationsall.dll'. An exception occurred during merging: Specified cast is not valid. Please help me resolve this error. Thanks in advance. Chary ...more >>

dio_.Net_to_Linux–for_free_
Posted by John Bailo at 5/24/2005 12:38:14 PM
http://blogs.zdnet.com/BTL/index.php?cat=2 5/23/2005 Grasshopper hops code from Visual Studio .Net to Linux–for free Mainsoft launched a free Visual Studio .Net plug-in called Grasshopper and a developer community forum for creating Web applications and Web services that run on Linux,...more >>

Having trouble with custom combobox control
Posted by Flack at 5/24/2005 12:18:08 PM
Hello, I am beginning to write a custom combobox control. Right now it doesn't do anything special. I created a class that extends ComboBox: public class TimeSelector : System.Windows.Forms.ComboBox and in its constructor I call Populate: public TimeSelector() { try ...more >>

Setting values automatically
Posted by Maziar Aflatoun at 5/24/2005 12:08:35 PM
Hi, I have the lKey object that can be used to enable different operation systems such Windows 2000 Linux FreeBSD etc. Now I want to read a database table that contains key/values and if the key is "OSTypes", I like to set the appropraite OS (more than one OS can be set). lKey.Ena...more >>

C# Datagrid Newbie:
Posted by Nigel at 5/24/2005 12:00:02 PM
C# Datagrid Newbie: Hello, I am trying to get the value the user selected from a Datagrid. Here’s what I got: Update_SKU_Status = DataGrid_Update_SKU_Status.SelectedIndex.ToString(); It returns the index. Which is not very user friendly. I have tried: Update_SKU_Status = DataGrid_U...more >>

Splash Screen Fade app causing main app to flutter.
Posted by BillZondlo at 5/24/2005 11:55:02 AM
Can someone look at this and tell me why, when I call this from my main app, it displays fine (fades form in and out) but then before my main app displays, I see other dialog boxes flash monentarily on the screen and this delays the main app display? Here is the fade which I compile to a dl...more >>

Importing C# code into Web Application
Posted by scparker62 at 5/24/2005 11:34:06 AM
I've created a C# class to access the Active Directory. I want to use this code in several different web applications. Do I have to create a dll for that code or can I import the code directly using something like ASP include statement? <!--#include virtual="/blahblah/ad_functions.inc"--> ...more >>

Deserializing data
Posted by Steve Teeples at 5/24/2005 11:09:03 AM
I use serialization to write class data to a file. During my development of this class I need to add properties or fields on occation. After adding a property, when deserializing the data saved to disk I get an exception error indicating that the class data members no longer match. To avo...more >>

ToolTips showing behind form
Posted by Billy Greening at 5/24/2005 10:49:44 AM
Hi, I have attached tooltips to some buttons on my toolbar, but the tooltips at some times are showing up behind the form. When I hover over the button on the far right of my toolbar, I can see the tooltip popping out from under the form. On the other buttons they aren't visible. This pr...more >>

how can i call an oracle function
Posted by Newbie at 5/24/2005 10:30:05 AM
how can i call an oracle function? given a project_no, i need to call the function: ops$sqltime.pa_new_job_no_fn which will return the next job_no thanks in advance. ...more >>

read text file
Posted by microsoft.news.com at 5/24/2005 8:53:35 AM
I need to read a text file but I need to start on line 2 of the file, How can I start reading the text file starting with the second line and not the first line in the file? ...more >>

Custom Control Loses Device Context
Posted by Dennis at 5/24/2005 8:45:27 AM
I'm using VS 2003 my project uses COM interop and the Tao Framework. I have a custom control derived from UserControl. It implements many functions similar to the Tao's SimpleOpenGLControl, for example I also have a MakeCurrent() method. Inside of the overriden method for CreateParams() I ...more >>

Win Forms application on network share
Posted by Mark at 5/24/2005 8:32:58 AM
Assuming a windows domain, and a windows file server, what are the performance implications of placing a data driven .exe Winforms application on a network share, and having multiple users use the .exe? Assume that the application uses no outside resources other than a SQL Server database, an...more >>

BinaryFormatter version mismatch
Posted by pak20116 at 5/24/2005 8:31:05 AM
Hi, all: I've seen numerous questions and answers about this topic on the web, but none of them quite fit to my case. My application is a business process model (like approval process) using ASP.NET. Each transaction, I store related data in the database as a blob. When I retreive the da...more >>

Finding server with broadcast
Posted by pekspro NO[at]SPAM home.se at 5/24/2005 7:41:12 AM
I need some code that gets the address from a server. I read somewhere that you could do this by starting some broadcast server using UDP. The client should send an broadcast message, and when the server answering the client gets the address. But how do I implement this? I did this simple quic...more >>

Which is faster
Posted by niteshs NO[at]SPAM yahoo.com at 5/24/2005 7:38:46 AM
Hello all, just checking which method is faster string A; A = ""; if (A == string.Empty) { MessageBox.Show("a is empty"); } else { MessageBox.Show("a is not empty"); } //or is this quicker if (A.Equals("")) { MessageBox.Show("a is empty"); ...more >>

Console App trying to do a ChDir?
Posted by Chris at 5/24/2005 6:16:02 AM
Hi, For info I am using VS 2005 beta 2 I have a Console App and I want it to do the equivalent of a Change Directory (CD) command that you would do in normal command line mode as follows: >CD ToASubDir I am using the System.IO.Directory namespace to query where I am and look for av...more >>

how to call an oracle function
Posted by Newbie at 5/24/2005 6:13:10 AM
how can i call an oracle function to get data without using a select statement or stored procedures? given a project_no, i need to call the function: ops$sqltime.pa_new_job_no_fn which will return the next job_no thanks in advance....more >>

Passing Properties to Generics
Posted by Jeff Bush at 5/24/2005 6:08:54 AM
I am trying to create a generic Command object (following the Command design pattern) that allows me to specify a generic type, an object to operate on, and most importantly, a public Property on that object for getting and setting the value in question. Currently the only approach I've fou...more >>

Get Bytes from Bitmap Object
Posted by Raed Sawalha at 5/24/2005 6:00:59 AM
I have a Bitmap Object and I need to return it as array of bytes is it possible...more >>

convert error?
Posted by eddy de boer at 5/24/2005 5:34:06 AM
Dear reader, In my code I get the following error: AddComment.cs(32): The best overloaded method match for 'WebLogger.Message.SelectMessage(string, out string, out string)' has some invalid arguments This is the code: class Message { ... public int SelectMessage(string pID, ...more >>

GroupBox Selected
Posted by jez123456 at 5/24/2005 5:23:08 AM
Hi I have a Windows GroupBox (m_groupBox) on a form which acts as a filter and contains 26 filter radiobuttons (m_radioButtonA through m_radioButtonZ). How can I check in code which radiobutton has been selected? There does not seem to be a property in the groupBox for this. Thanks ...more >>

Number conversion
Posted by Nick Weekes at 5/24/2005 4:10:42 AM
Im just curious as to why the following applies to conversions of Double/Float to integers (taken from MS docs): "When you convert from a double or float value to an integral type, the value is rounded towards zero to the nearest integral value" Doesn't this produce inaccurate values, i.e. 2...more >>

Message queue deployment
Posted by Brian Keating at 5/24/2005 2:02:06 AM
hello, doesn anyone know how to deploy message queues? I've got a program which uses message queues and i wish to deploy it, one click deployment in vs2005 doesn't allow me to specify message queues and a setup project doesn't allow me to specify message queues. Any help appreciated thank...more >>

Problem displaying Unicode characters on my forms labels and butto
Posted by Kidus Yared at 5/24/2005 2:00:20 AM
I am having a problem displaying Unicode characters on my Forms labels and buttons. After coding Button1.Text = unicode; where the unicode is a Unicode character or string (‘\u1234’ or “\u1234”) It seems to work the first time I set the button to the Unicode character. After a while, w...more >>

New C# Developers Group
Posted by Balaji K at 5/24/2005 12:00:00 AM
Hi Y'all, There is a new community for C# developers@ http://groups.msn.com/IndiaCSharpDevelopersGroup This is a forum for C# Developers and those who wish to become C# Developers. Just about any topic is allowed, as long as it's in C#. Think Sharp. C#. Note: I didn't mean to advertise ...more >>

Seting ntfs persmission of a remote folder with wmi from a web app
Posted by Amit Desai at 5/24/2005 12:00:00 AM
Guys. I need to set the file permissions of a folder on a remote fileserver for a user I have just created using the web app I am writing. I have the users account name and SID, the name of the file server and the physical path to the parent folder. This is what I have so far.. but cant get...more >>

string.CompareTo(string) oddity/bug/misconseption?
Posted by Helge Jensen at 5/24/2005 12:00:00 AM
In my locale (US-english/DK i think, dunno how to state it properly :), ..NET-1.1-sp1 I observe the following: "A".CompareTo("B") == -1; // A < B "B".CompareTo("F") == -1; // B < F "A".CompareTo("F") == -1; // A < F Seems like lexicographic order, and also: "...more >>

ILMerge
Posted by Antonio Palermo at 5/24/2005 12:00:00 AM
I don't know how to use "ILMerge", Can you help me? TIA Antonio Palermo Excuse me for my bad English, I'm italian...more >>

unblocking a port
Posted by WAkthar at 5/24/2005 12:00:00 AM
Hi I have a simple socket program which needs to connect and send an xml stream through sockets. private int nCommPort = 4555; private string HostName = "localhost"; private Socket TcpSocket; private XmlDocument objXmlDocument; IPAddress HostIP = Dns.Resolve(HostName).AddressLis...more >>

Highlight LisView?
Posted by perspolis at 5/24/2005 12:00:00 AM
Hi all How can I highlight a row in a listview? ...more >>

Custom key words and statements in C#, possible?
Posted by SpotNet at 5/24/2005 12:00:00 AM
Hello NewsGroup, More curiosity than actuality for now anyway, just wanted to ask if it's possible to extend C# by creating custom made key words and statements? If it is possible, what would I have to consider if I wanted to build a customised object for loop? Being the foreach loop in 're...more >>

Translate from C++ to C#
Posted by PL at 5/24/2005 12:00:00 AM
Hi, I would need the equivalent in C#, suggestion? HRESULT LoadWebBrowserFromStream(IWebBrowser* pWebBrowser, IStream* pStream) { HRESULT hr; IDispatch* pHtmlDoc = NULL; IPersistStreamInit* pPersistStreamInit = NULL; // Retrieve the document object. hr = pWebBrowser->get_Docume...more >>

Enumerating Printer Drivers Help Please
Posted by Brett Mostert at 5/24/2005 12:00:00 AM
Hi, I need to be able to Enumerate through Printer Drivers, ports, printers and so fourth. And even add printers, ports, and drivers and setup printers. Sofar i can do all of the following except anything to do with drivers. I have added a reference to the PRNADMIN.DLL from MS Windows 200...more >>

Multi-Line Text Box Line Length
Posted by Jow Blow at 5/24/2005 12:00:00 AM
I am trying to make a word wrap type function for a multi line text box field that will be saved to a text file. The word wrap property looks good in the app but when saved to a text file the line goes on and on where there is not a new line character in the text box. Here's kinda what I'm ...more >>

Beginner Question
Posted by Brent at 5/24/2005 12:00:00 AM
Hi everyone. I tried to convert this line of code last night from vb.net to C# and i had problems. Could anyone tell me you how you would convert this line of code to C#: Private Vector() As Byte = {&H12, &H44, &H16, &HEE, &H88, &H15, &HDD, &H41}Of course the problem is with defining the ...more >>

Database
Posted by Seelan at 5/24/2005 12:00:00 AM
Hey, How do I create a dynamic web control from a database table... PLEASE help... Thanks...more >>

Bitwise NOT
Posted by Aamir Mahmood at 5/24/2005 12:00:00 AM
hi how can i perform a bitwise NOT on a int or long or uint type variable? so that the bits should be inverted in the result. - aamir ...more >>

Debug or Release mode ?
Posted by JezB at 5/24/2005 12:00:00 AM
Any way I can programatically test whether my (c#) code is running in Debug or Release mode ? I want to load a smaller dataset when running in debug, for testing purposes. ...more >>

Simple solution compiler?
Posted by pnp at 5/24/2005 12:00:00 AM
Is there a way to make a simple compiler that builds cs projects in a solution? thanks in advance, peter...more >>

Formatting Date
Posted by Daniel Groh at 5/24/2005 12:00:00 AM
Hi all, i need to return this line: return objPessoaFisica.datDataNascimento But it's returning d/m/yyyy 00:00 I just need: dd/mm/yyyy How do i do ?...more >>

How to find the base type or interface declaring a specific property?
Posted by Joe Jax at 5/24/2005 12:00:00 AM
I have an object which has a base object hierarchy as well as a number of implemented interfaces. Given any one property on that object, how do I find out which base class or interface defines that property? ...more >>

preventing multiple logins in asp.net
Posted by The Crow at 5/24/2005 12:00:00 AM
if a user logs in, i want other logged in user with the same credentials to log out. how can i solve this problem? ...more >>

how to access the queries made and stored in MS Access (thru C# Code)?
Posted by b. hotting at 5/24/2005 12:00:00 AM
hi, Does anybody know how to access the queries made and stored in MS Access thru C# Code. thanks, bjorn ...more >>

Threading/monitoring external dll network calls
Posted by Claire at 5/24/2005 12:00:00 AM
We've had problems with a third party dll that communicates over a network and would like to be able to monitor each function call. We thought of using a 2nd thread which would log an alert if the 1st thread didn't emerge from a dll function call within a certain timeout period What I need to ...more >>

How to get Login/Logoff Information in C#?
Posted by arlef at 5/24/2005 12:00:00 AM
Does anybody know how do i get the various logon and logoff times for winxp in c#? Thanks Arlef ...more >>

Fill DataSet from stored procedure
Posted by PawelR at 5/24/2005 12:00:00 AM
Hello everybody, I have one littel question: How fill DataSet values witch return stored procedure? My SP have parameters. Thanks PawelR ...more >>


DevelopmentNow Blog