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 2005 > threads for tuesday october 11

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

bitwise [OR]
Posted by David at 10/11/2005 11:34:21 PM
hi, I have a question. I have a method written by ASP, and I need to convert to c# asp.net: [ASP] call method1 ( 32 or 2 ) this method's parameter is using the bitwise Or operator. but when I convert to c#: [c#] method1 ( 32 | 2 ); I got this error msg after compelie: Cannot covert 'i...more >>


Q: Bind SQL table to TreeView
Posted by Martin Arvidsson at 10/11/2005 10:51:49 PM
Hi! I have a table containing three columns, containing following data.. ID, SUB, DESCRIPTION 1,0,Main 2,0,Main2 3,2,Main2 Subto2 What i want to do is to fill the tree view with the data if sub is non zero, i want to create a subtree of ID... Is it possible or do i have to fill a Dat...more >>

Hovering Buttons
Posted by Zach at 10/11/2005 9:17:51 PM
Is it possible to hover a button and by doing so e.g., make it chage its color? Apart form a possible "yes", please give a code example. Zach. ...more >>

Sending null character via TcpClient?
Posted by Danny Tuppeny at 10/11/2005 7:42:29 PM
Hi all, I'm trying to send a null character as a string delimiter through a TcpClient (code below). It's to connect to this poker bot room: http://games.cs.ualberta.ca/webgames/poker/bots.html My code is as below, but I never get a response. I'm assuming my transmission is ending at the...more >>

Make the label's text selectable
Posted by Adrian Grigorof at 10/11/2005 7:12:24 PM
Hi all, How can I configure a label control so I can select its text with a mouse (for copy/paste)? Regards, Adrian ...more >>

getting icon from embedded resource
Posted by farseer at 10/11/2005 6:38:09 PM
Hi, I created a new resouce ("app.resx") in my project and added an icon to this resource with name "IL_ICON". I would like to use this resource in some unmanaged code, in particular, with the api function SHNotificationAdd. How can i do this? i have tried using ResourceManager to get that ic...more >>

Trouble with databinding on a textbox
Posted by AEgir Sveinsson at 10/11/2005 6:35:17 PM
Hi, I am having trouble with the databinding of my textboxes. They display correctly the data they are getting from the dataset but when I enter a new value, nothing seems to have changed and the following if statement never gets true. if (dataSet1.HasChanges(DataRowState.Modified)) { ...more >>

c# property exposed as COM bindable property
Posted by Miguel.Herrera NO[at]SPAM visy.com.au at 10/11/2005 5:51:35 PM
I like to create an assembly with a property exposed in COM as bindable. I have tried to use [Bindable(true)] attribute but when I check the typelib produced by regasm for my assembly the property does not have bindable on it. Here is some code of what I mean: [Bindable(true)] public boo...more >>



Network login and e-mail address
Posted by Bruce Wood at 10/11/2005 5:47:34 PM
I've been mucking about with Environment.UserName and similar properties in .NET. I can get the user's login name for their machine, but unfortunately that doesn't get me much for users logged into our corporate network through laptops: all its gets me is their user ID on the laptop, which means...more >>

listview drag and drop
Posted by MAF at 10/11/2005 5:05:39 PM
I have created my own user control that is a simple control with a menu and a list view. I want to invoke a drag and drop. here is where I run into a problem the event never fires on the form. if my control is named lvwVariable within my user control what do I need to add in order to init...more >>

Startup problem with Main()
Posted by CSharpNewBie at 10/11/2005 4:38:11 PM
Hi I am creating a Winform application and I need help. Let me explain my problem This is what i do on startup, I create a form (a Login screen) at runtime and that will ask user to enter a user/password on entering the password the form will check the local file to authenticate, (encrypte...more >>

DataGrid (Winforms) change color of text in celected cell, when i put mouse in it...
Posted by Serdge Kooleman at 10/11/2005 4:27:48 PM
Hi! i have a windows app, DataGrid on it... when i clicked at cell, it's appear small edit box in it. how to change foregraund and background color of this text? (by default it is blue selection on gray background)... i want red background for example... -- thank you serge ...more >>

Advice on use of static methods (and ADO)
Posted by Laban at 10/11/2005 3:26:58 PM
Hi, I find myself using static methods more than I probably should, so I am looking for some advice on a better approach. For example, I am writing an app that involves quite a bit of database operations on purchase orders and inventory. I have created a PurchaseOrder class and Inventor...more >>

Error loading configuration file
Posted by Michael Rodriguez at 10/11/2005 3:22:35 PM
I had VS 2005 RC installed along with the Sep CTP of SQL Server (tools only) and it was working fine. Then I installed VS 2003 on that same machine. Now, everytime I lauch VS 2005 I get this message: The configuration file RSReportDesigner.config could not be loaded. The type initializ...more >>

Binding for Office automation
Posted by Max at 10/11/2005 2:27:56 PM
I am using late binding to automate my code to Microsoft Outlook and I'm getting an error in my code: [CODE] Type objClassType = Type.GetTypeFromProgID("Outlook.Application"); objApp_Late = Activator.CreateInstance(objClassType); objInspectors_Late = objApp_Late.GetType().InvokeMember("Inspe...more >>

Binding to DataGrid
Posted by Luis Arvayo at 10/11/2005 2:08:35 PM
Does anyone have one example binding a DataGrid that implements the interface IListSource or IList ? I need to implement binding to a DataGrid but by means of not using a DataTable because the data is created at runtime. Thanks in Advance. ...more >>

commas underneath each other
Posted by svm NO[at]SPAM pc.dk at 10/11/2005 12:33:45 PM
Hi! I'm in the process of creating an invoice-generating program in C#... I've already written the code to produce the page using a PrintDocument, but graphics.DrawString only accepts truetype fonts, so i can't just use spaces (" ") to line up commas... Basically, i would like to do somet...more >>

DataBase update with Dataset
Posted by cvncpu at 10/11/2005 11:59:46 AM
I have this function: [WebMethod] public string SetUserInfo(string AuthID, DataSet dg2) { if (AuthID=="********") { Oconn.Open(); da.Update(dg2); Oconn.Close(); return "it seems to have worked."; } else { return "Your Authentication Failed"; } } and this is my da ...more >>

InterProcessCommunication
Posted by victor at 10/11/2005 11:59:18 AM
Hi, I'm working on a project involving .NET Frwk and legacy MFC app's. Within the MFC sub-project there exists several IPC's, using FindWindow and then PostMessage; they all works fine. My situation is: I need to 'enter' the legacy world with my .NET app, and send a message (2 bytes) to one of ...more >>

UTF-8 preamble -> Possible bug in StreamWriter(or at least strange behaviour..)
Posted by Oscar Thornell at 10/11/2005 11:14:42 AM
Hi, I generate and temporary saves a text file to disk. Later I upload this file to Microsoft MapPoint (not so important). The file needs to be in UTF-8 encoding and I explicitly use the "Encoding.UTF8" in the constructor like this: StreamWriter writer = new StreamWriter(file, Encoding.UT...more >>

Application does not contain a definition for 'Run'
Posted by ohayo at 10/11/2005 11:08:03 AM
In a windows form app (which acts as a front end to my quickfix application), I get the following error on compiling Application does not contain a definition for 'Run'. What does this mean, thanks for any pointers. ...more >>

Regex: Capturing HTML
Posted by kevin at 10/11/2005 10:52:06 AM
I am trying to strip the outermost html tag by capturing this tag with regex and then using the string replace function to replace it with an empty string. while stepping through the code, RegEx returns the entire input string although testing this in The Regulator returns just what I want. ...more >>

variable scope inside a method
Posted by Chris at 10/11/2005 10:25:02 AM
Hi, I'm having trouble with variable scope inside procedures. this is pseudocode LDAP NewUser; if (something = true) { NewUser = LDAP.FindUser(use emailaddress) this.textbox1 = NewUser.name } else { NewUser = LDAP.FindUser(use employeeID) this.textbox1 = NewUser.name } I'd rath...more >>

TreeView node...
Posted by Tim at 10/11/2005 10:14:18 AM
Hi I have a form with a treeview on it. When I select a particular node it adds/shows a tab on the form. The treeview node remains selected as it should. The user can close the tab or remove the focus to another tab. Clicking on the same already selected node should add/show the tab, howev...more >>

Not getting all my Order_IDs in C# While loop
Posted by .Net Sports at 10/11/2005 10:11:13 AM
I am trying to get all the sales reps and their combined sales totals for a given queried date, in which i loop thru (using C# while loop) the available sales reps to get their rep IDs, then match it up with their sales results for the day. The portion of my code below is successful in retrievin...more >>

(Sql)DateTime and Null value
Posted by Matt Jensen at 10/11/2005 9:46:47 AM
Howdy all I know this is a common question as I've searched a lot of this NG on the topic, however I haven't been able to find an answer. All I want to do is pass a DateTime value to a SQL Server SP DateTime parameter, and either pass a web form text field value to it if there is one or else...more >>

executing DTS packages in C#
Posted by Mike P at 10/11/2005 9:30:30 AM
How do you execute a DTS package in C#? Any help would be really appreciated. Cheers, Mike *** Sent via Developersdex http://www.developersdex.com ***...more >>

using System.Web.UI not possible in c# 2005 express edition beta 2
Posted by Stropher at 10/11/2005 9:02:57 AM
I cannot import the following in visual studio c# 2005 express edition... using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; I just want to make use of the classes Page and HTMLTextWriter Thaks ...more >>

Populating Business Entities into UI
Posted by apoc69 NO[at]SPAM gmx.net at 10/11/2005 7:26:44 AM
hi people, i got stucked in my project and i just dont know how to continue. it's about puting business entities into the UI (web). first some simple example code how an entity looks like in my project: public class Person : Entity { string firstName; string lastName; publ...more >>

start program directly from memory?
Posted by wavemill at 10/11/2005 7:15:06 AM
Hello! I would like load teh data(it's my program decrypted) in memory and run it directly from my memory. If you have an idea? best regards, wavemill...more >>

How do I correctly pass by ref using InvokeMember?
Posted by Pat Ireland at 10/11/2005 7:00:08 AM
The following code shows what I am trying to do. The normal invocation of the CalcByRef produces the correct results, however, using the InvokeMember fails to correctly pass the single argument by reference. How can I correctly pass the short by ref through a InvokeMember. using System; ...more >>

C# Express
Posted by MicroMoth at 10/11/2005 6:20:12 AM
Does anyone when the final version C# Express is coming out? ...more >>

Office Development BIG PROBLEM
Posted by Zamolxe at 10/11/2005 5:05:08 AM
I have installed the Visual Studio 2003 FULL With MSDN (ORIGINAL NOT CRACKED :), Office 2003PRO FULL. After installing Office i have insatlled the MSDE form OFFICE CD, IIS is installed. Then: Microsoft Office Access 2003 Developer Extensions (English) Microsoft Visual Studio=AE Tools for the ...more >>

Starter KIT Problem
Posted by Zamolxe at 10/11/2005 5:04:38 AM
In VS2005 Beta the oersonal web kit is available, I have loaded and CTR+F5 the I closed the page and tryed to add a user as it says in the doc, the page is loaded and after I click the Security tab this error is shown: "There is a problem with your selected data store. This can be caused by an ...more >>

drag and drop functionality in web datagrid
Posted by sonu at 10/11/2005 4:37:09 AM
I want to drag rows from one datagrid and drop that rows in other datagrid. when we drop rows into 2nd datagrid the rows will be deleted from first datagrid i want this functionality in web application. please tell me any DLL,or Com Component,Class or any code regference related ...more >>

How to send message to all window(include child window)
Posted by harvie wang at 10/11/2005 3:50:05 AM
Hi, How to send a message to every window(include child window), I use SendMessage ,but It can't do that. class frmA { public const int WM_test = 0x400 + 1; protected override void WndProc(ref Message m) { // Listen for operating system messages. switch (m.Msg) { ...more >>

byte[,,] to Bitmap?
Posted by mallolnolla NO[at]SPAM gmail.com at 10/11/2005 3:28:47 AM
Hello there, I'm trying to display a grabbed picture from a matrox meteor II to a picturebox (I know I can use the matrox display, but I need to show it on a PictureBox). I've tried to fill the bitmap with the setpixel method, but it's too much slow (my camera's resolution is about 700x500 pi...more >>

Writing from database to file
Posted by Gidi at 10/11/2005 3:08:03 AM
Hi, I'm using a SQL 2000 DataBase in my program, and in some cases i need to bring some information from my dataBase and write it in specific way to a file. i know how to write to a file, but i wonder which way is the best to do it? i need to edit the information before i write it to the fi...more >>

Getting the name of a function
Posted by Matias at 10/11/2005 2:34:37 AM
Is there any rapid way to identify the name of a function within the function? This can be achieved with StackTrace but this runs too slowly for my needs as I am trying to measure performance. My current less optimal solution would be to dissasemble the code and then manually parse the code...more >>

Invoke MDI Child by name
Posted by Jassim Rahma at 10/11/2005 12:43:26 AM
Hi, I have MDI Child called MDIChild_! and I want if the user click on the button which shows that form to invoke the same openned form not a new form everytime unless it's not openned then it should open a new form. Best Regards, Jassim Rahma *** Sent via Developersdex http://www.de...more >>

The installer was interrupted before <Product> could be installed.
Posted by BuddyWork at 10/11/2005 12:02:12 AM
Hello, When a particular user (has administrator rights) on a Windows 2000 Server SP4 tries to run any MSI's we get the message mentioned in the subject. If we logon with another user that has administrator rights then it works, if we create a new administrator user then it does NOT work, ...more >>

How to enum CSPs in C#?
Posted by mRbEn at 10/11/2005 12:00:00 AM
Hi: I'm trying to write a web page by using c# under dotnet framwork. My target is lets the user to choose a csp to get a certificate from CA. But, I only know how to enum providers by cryptoapi like: CryptEnumProviders(...). Who can tell me how to enum csps by using C#? thanks ...more >>

Array conversion question
Posted by Pavils Jurjans at 10/11/2005 12:00:00 AM
Hello, I think this is classical problem, but I can't figure out how to do it in most right way (I know ineffective way though ;) So, I have this method that does some database work and has to return an array of custom type, let's say public MyType[] MyMethod(params) { ArrayList o...more >>

Does WebBrowser control in .net 2.0 support blocking pop-up windows?
Posted by nicholas at 10/11/2005 12:00:00 AM
If yes, how? Thanks ...more >>

Handling string and null value?
Posted by ___Newbie___ at 10/11/2005 12:00:00 AM
Hello, Why can't a string handle null values? Do I really need to check with IsDBNull() for null values? e.g. fieldName = reader.GetString(0); if (!reader.IsDBNull(1)) { fieldNationality = reader.GetString(1); // Exception here! for null value } else { fieldNation...more >>

ReadLine and WriteLine
Posted by alberto at 10/11/2005 12:00:00 AM
In this code for a console application: int n; n = Console.Read(); Console.WriteLine(n); Console.ReadLine(); I need write the last sentence (Console.ReadLine()) twice to the program make a pause. Can somebody tell me why? Thank you ...more >>

Displaying configuarion data from text file or database
Posted by Macca at 10/11/2005 12:00:00 AM
Hi, I am writing a C# application that needs a lot of calibration data. In a previous C++ application, i used a text file which displayed the various calibration data, between 25 and 40 different items and allowed the user to add/delete/change items. The user changed these setting through...more >>

Using ms paint in my C# app
Posted by Macca at 10/11/2005 12:00:00 AM
Hi, I have been using MS paint to manipulate bitmaps by adding layers and points to existing bitmaps. I need to know where in the bitmaps i have been adding layers and points and paint tells me this by giving me the co-ordinates that the cursor is pointing to in the bitmap on the status bar. ...more >>

COM Object Property not accessible
Posted by Saurabh at 10/11/2005 12:00:00 AM
Hi Gurus, We are in the process of writing a code in C# and have to use a dll written in VB through interop and have come across an issue; In one of our other development projects in Visual Basic 6.0, we are using the dll very successfully to get a list of all properties of a class exposed...more >>

Acrobat 7 ActiveX Control
Posted by William Chan at 10/11/2005 12:00:00 AM
I am now using Acrobat 7 ActiveX Control in C# and VB.net. Is there any way to modify the default right click popup menu on that control? Thanks in advance! ...more >>

Form based editing ?
Posted by ___Newbie___ at 10/11/2005 12:00:00 AM
Hello, What is the best way to implement a form based editing? The user would select first from a list control (highlighted selection) ? e.g. through a listbox or datagrid. Then, select from buttons: [New], [Edit], [Delete]. When editButton is clicked, a form will be displayed for editing. H...more >>

WebBrowserBase.DrawToBitmap Method
Posted by Danny Tuppeny at 10/11/2005 12:00:00 AM
The MSDN page for this method reads: --------- Quote --------- WebBrowserBase.DrawToBitmap Method Note: This method is new in the .NET Framework version 2.0. This method supports the .NET Framework infrastructure and is not intended to be used directly from your code. This method is not ...more >>

nullref problem
Posted by lajo_79 at 10/11/2005 12:00:00 AM
//file EventTest.cs using System; namespace Test { public class EventTest { public string name,phone,email; public bool enabled; public EventTest() { name="empty";phone="emtpy";email="empty"; enabled=false; .. .. } } } //file Class1.cs using System; namespace Test { ...more >>

How to draw inside of a transparent region of a form?
Posted by Carsten Klotz at 10/11/2005 12:00:00 AM
Hi, I've set the TransparencyKey of a form to black. That means, all black pixel will be shown transparent within the drawing content of that form. If I set the background to black, I can see the underlying window (ie. Desktop or IE). But when I want to draw with the mouse inside that transpar...more >>


DevelopmentNow Blog