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# > september 2003 > threads for tuesday september 16

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

Price List for MOM & POP when choosing between MySql/PHP and .NET
Posted by nospam at 9/16/2003 11:22:12 PM
DEAR MICROSOFT: WOULD YOU PLEASE put up a web page showing the price list of EXPECTED COSTS for MOM & POP when choosing between MySql/PHP and .NET. FIRST: Show INITIAL COSTS for like a 5-10 page web site that can take a few orders... INCLUDE THE ISP charges..developer, software... *****...more >>


mouse move event
Posted by Logan Mckinley at 9/16/2003 11:10:26 PM
I need to be able to detect mouse movement even when it is not over my application. I can get the mouse cords using MousePosition but I am not sure if there is an event that hits my program when the mouse is not over my program. One idea i had was make a child form that was transparent and use ...more >>

Error passing a class instance by reference
Posted by AA at 9/16/2003 10:20:52 PM
I have this simple class public class Person { public Person(){} public String Name = String.Empty; public String LastName = String.Empty; } and this procedure that has one input parameter of type Object public void FillPerson(ref Object inObj) { //do something with t...more >>

Win Service Deployment
Posted by Rajesh Abraham at 9/16/2003 10:13:34 PM
Is it possible to make/use an msi pack to install a Windows Service instead of using InstallUtil. Rajesh Abraham Chacko...more >>

combo problem
Posted by drishtik at 9/16/2003 10:12:03 PM
hi i have a combobox which has some values like (eg) a b c d i want to retrieve the value from the db (a, or b or c or d) and then select that item in the combo according ly foreach (DataRow dr in recs) { cmbType.SelectedText = dr["description"].ToString(); } but this doesnt w...more >>

Udp Multicasting and buffers...
Posted by Ryan Cromwell at 9/16/2003 9:49:17 PM
I have a question concerning developing a generic multicast subscriber. How do you go about determining a decent buffer size? Why does the Socket.(Begin)ReceiveFrom method require an instanciated buffer instead of requiring a stream or returning a correctly sized buffer? Aside from DOS attack...more >>

building an ECommerce site with .Net and web hosting
Posted by VM at 9/16/2003 9:39:45 PM
Assuming I build and Ecommerce site in C# or a normal site in .Net, would my site be compatible with any web hosting service? I'm new with the concepts of web hosting but I was wondering what the limits are on making a site on C# and using a web hosting service to publish it. Can web apps be...more >>

Object reference not set to an instance of an object
Posted by Bill Cart at 9/16/2003 7:11:13 PM
I am very new at this C# stuff. I keep trying to understand it but I don't seen to have a clue. I am trying to fill a DropDownList from a data adapter. I have a web application. In the Global.asx I have private System.Data.SqlClient.SqlConnection sqlConSWT; private System.Data.SqlClient.SqlCom...more >>



populate a treeview in c#.net (windows forms)
Posted by Jacob John at 9/16/2003 7:00:03 PM
how to populate a treeview in c#.net (windows forms) from a SQL Server database ??? pls help me. thanks in advance, JJK ...more >>

Plans for Internal (C#) / Friend (VB.Net) And Protected ?
Posted by Carlos J. Quintero at 9/16/2003 6:54:37 PM
Hi, As you know the current keywords "protected internal" (C#) or "Protected Friend" (VB.Net) means "Protected Or internal" (C#) or "Protected Or Friend" (VB.Net), that is, the member is accesible from whichever types inside the assembly or from derived classes included those outside the assem...more >>

DllImport in C#
Posted by Mr.Tickle at 9/16/2003 6:53:01 PM
I made a DLL with some test functions like in the .CPP file.. void test(void) { return; } and in the .H file i have.. #define DLLEXPORT __cdeclspec (dllexport) DLLEXPORT void test(void); This is showing as [c++] void test(void) in dependancy walker but... In my C# applicati...more >>

PInvoke and arrays
Posted by Andrea Palmieri at 9/16/2003 5:50:27 PM
hello everybody, I exported a function from a dll written in c. This function has an array of long among the parameters and the content of the array is modified in the dll function How can I invoke this function from a c# program ? I tried I declared the function as: public static extern ...more >>

Help for ActiveX (please)
Posted by Alessio Brizi at 9/16/2003 5:02:25 PM
I don't know if this is the right place for this post. I am developing a Web Application (e-learning platform) with ASP.NET and C#. To be SCORM compliant I need to place an object in the DOM of the HTML document that acts like an "API Adapter". But the entire funtionality of the application is...more >>

listview scrolling
Posted by RickN at 9/16/2003 4:49:47 PM
We want to populate a listview with incremental amounts of data, when someone scrolls to the bottom of the list, it will retrieve more data from the database. How can you tell when the scrollbar elevator is near or at the bottom of the listview? Thanks, RickN ...more >>

Single sort column in DataGrid!?
Posted by Brett P. at 9/16/2003 4:37:55 PM
Hello, I am trying to have only one column sortable within a data grid. I know you set the allowsorting property to true on the style or the grid, but this enables sorting for all columns. Is there a way to override this implementation so that only a few or one of the columns may be ...more >>

UML in VS
Posted by William Stacey at 9/16/2003 4:19:53 PM
I use the UML in Visio - cool tool. How about integrating that directly into VS.NET so you can see your classes graphically and the two would stay insync (or at least one way - code to UML.) Maybe the UML class element could also contain Unit tests in a code-behind way and stay with the UML o...more >>

DataGrid - Detecting which cell was clicked
Posted by Randy at 9/16/2003 4:12:58 PM
Hello, How would one go about detecting which row/column was clicked in a datagrid. I'm sure it can be done but I can't figure it out. Thanks ...more >>

help - need to validate date and time in c#+asp.net
Posted by Frank Rocco at 9/16/2003 4:00:40 PM
Hello, What is the best way to validate a textbox to see if it contains a valid date or a valid time or both? Thanks Frank ...more >>

Remoting (but need a binary data transfer)
Posted by Sunny at 9/16/2003 3:50:28 PM
Hi all, I'm creating client/server app in C# (VS. 2003). So, I need the client to call the server with some auth info (user and pass). If the auth is OK, server will do some work and will prepare a zip-file and some other text and numeric data and will notify the client that everything is r...more >>

Open project from web problem
Posted by Hardy Wang at 9/16/2003 3:28:15 PM
Hi all: we used to have a development web server in our LAN within same domain. Now we need to build another web development server, but that server is inside its own domain without any trusting. I copied my web projects to new server, created same virtual directories in new IIS, shared...more >>

Force a write
Posted by MAF at 9/16/2003 3:23:28 PM
I am trying to save an XMLDocument and I occasionally get a sharing violation. Can I force the write in this case? System.Xml.XmlDocument XMLDoc = new System.Xml.XmlDocument(); //Load file //Do something XMLDoc.Save("c:\test.xml"); ...more >>

Is there an alternative to remoting?
Posted by Michael Culley at 9/16/2003 3:14:45 PM
In vb6 it was possible to create an exe as an activeX exe and communicate between 2 apps. Now we have remoting which requires opening a tcp port to listen on, which seems kinda crappy cause another app might be using the same port. Is there an alternative way of communicating between 2 exes on t...more >>

Find Current Users Desktop
Posted by JB at 9/16/2003 3:13:32 PM
I'm using an OpenFileDialog and I want to set the Initial directory to the current users desktop, any quick way to get this? Jason ...more >>

How do I change the button text for the MessageBox ?
Posted by RickDee at 9/16/2003 3:13:06 PM
Pls help. What I am trying to do is to change the text of the MessageBox. For example, when we use : MessageBox.Show("Pass or Fail ?", "Dialog Title", MessageBoxButtons.YesNo); Then we will have the Yes and No button for user to press. Now how can I have the enum struct option where I can...more >>

creating the SMS Package instance using ManagementBaseObject
Posted by Rajesh Tammana at 9/16/2003 2:55:53 PM
Hi, I am trying to create an SMS package using GetPDFData method. When I call this method it returns the PackageData object instance with C# object type ManagementBaseObject. Usually I call Put method on ManagementObject class to create an instance of the object. Since the GetPDFData m...more >>

Toolbars
Posted by Nuno Esculcas at 9/16/2003 2:31:03 PM
What happen to the CRebar controls from MFC? The controls for menus and toolbars in .NET are very poor, isn't there any more powerfull, like the Rebar controls? Thanks Nuno ...more >>

Help - implement a dropdown button control
Posted by JLOI at 9/16/2003 2:30:55 PM
Hi All, I am trying to implement a dropdown-button control in C# which provides a list of actions. Many Microsoft applicaitons use this kind of control. One example is in the V.S IDE's file open dialog box (goto File -> Open -> File). The Open button has a dropdown icon that gives...more >>

Poly-Morph
Posted by News VS.NET ( MS ILM ) at 9/16/2003 2:02:27 PM
How does the Runtime figure out what method to call? ...more >>

Unhandled Exception after Remointg...
Posted by Salvador Ponticelli at 9/16/2003 1:39:33 PM
In an ASP.NET Application I have an instance of a remoting object. After the instance was created, I saved it in a Session variable. When I try to use this instance with the Remoting Service down, it throw an exception wich it is catched. After this exception is catched, another exception is thro...more >>

Date Formatters
Posted by PeteZ at 9/16/2003 1:34:17 PM
There seems to be loads of alternative date formats but not one that suits what I need. eg How could I format the current date like: DD-MON-YY hh:mm:ss ( sample: 02-NOV-03 7:35:55 ) - Simon ...more >>

Datagrid problem...
Posted by Anthony Boudouvas at 9/16/2003 1:26:41 PM
Hi to all, i think, this datagrid will drive me nuts... I have the below code and i cannot figure out what is wrong and i cannot format the columns in the grid. I, for example, try to format some things in "Sender" column but this is not happening.. Can anyone give me a shot before i ju...more >>

how to make a selection tracker?
Posted by Jeroen Ceuppens at 9/16/2003 1:23:13 PM
I need a selection tracker on a graphic Idea: left click: rectangle appear en grows when you move the mouse, again clicking is lock te rectangle How do you do that? Greetz Jeroen ...more >>

News: Amazon moves into web services using Java/C++
Posted by kalim1999 NO[at]SPAM yahoo.com at 9/16/2003 12:36:46 PM
BIG news from the web services front. Amazon will use web services to tie all its vendors together. The company implementing the system will be using Java/C++ (migrating to all-java later). Isn't it funny how Microsoft spent so much touting .NET for web services, and J2EE is actually taking a ...more >>

is there 'static' variable inside a method?
Posted by Action at 9/16/2003 12:06:17 PM
in c++ if i put static int count = 0; in a method; count can only accessed inside the method and retain it's value. is there equilvant thing in C#? thx ...more >>

Help for building a simcity-like game
Posted by AlternativaMente at 9/16/2003 12:05:15 PM
I need help to build a simcity-like game. Exspecially I don't know how I can render the graphics. I'm looking for a not-too-difficult way to do it Thanks in advance Emanuele ...more >>

C# compiler and windows directory
Posted by Abhishek Srivastava at 9/16/2003 12:04:57 PM
Hello All, Many people ask this question. I have installed .Net framework I wrote a program but I can't find csc.exe. I have to tell them that it is inside windows directory. But I myself don't understand what is the csc.exe compiler doing over there. Why is the C# compiler in the windows ...more >>

Hiding datagrid columns
Posted by Paul Sampson at 9/16/2003 12:04:48 PM
Hi, I have a datagrid programatically bound to a DataSet which contains a single table, with a primary key and two other columns. I want to hide the primary key column in the datagrid, so I created a TableStyle and a GridColumnStyle, which I set to Width = 0 This doesn't hide the column, de...more >>

check for sound card
Posted by Uzi Baruch at 9/16/2003 11:46:58 AM
Hi! is there a way through the .NET framework, to check if a sound card exists on a local computer. Thanks, ...more >>

DataSource initial load time issue
Posted by Daniel at 9/16/2003 11:12:01 AM
Hi there, I'm working on a app that has a number of combo boxs, my issue is that on loading the app, when the code gets to the datasource property of the first combo box it takes about 4 seconds to load. I have tried binding it to a table or to a table view, i have also tried adding the elemen...more >>

MS Project Question (very Difficult one)
Posted by Wongalogic at 9/16/2003 11:11:28 AM
Dear friends: Do you know how to change working time in MS Project by C#? I want to = create a MS project file from C# using Project Library 9.0. I got = MSProject.Application and MSProject.Project objects. Now I want to use = them to set non-working date/time, like set 25-Dec-03 as a non-wor...more >>

Unmanaged DLL
Posted by Ady at 9/16/2003 10:32:31 AM
Hi I am trying to call a function in C# that I wrote in unmanaged C++. I am getting the following error. An unhandled exception of type 'System.EntryPointNotFoundException' occurred in TestApp2.exe Additional information: Unable to find an entry point named DllMain in DLL levelreader.D...more >>

Any C# library for reading DWG (Autocad)?
Posted by Action at 9/16/2003 10:29:58 AM
thx... ...more >>

Newbie Question ( dataset,dataadapter.datagrid)
Posted by Manish at 9/16/2003 10:22:44 AM
Hi All I am new to C#. Can anyone tell me what is the difference between 1.DataAdapter (or is it called SqlDataAdapter) 2.DataSet 3.DataGrid ( i know datagrid is a control) I am been reading things about them ,but still confused as to how to effectively use them and what is the relation ...more >>

MySql
Posted by Rafael Flórez at 9/16/2003 10:18:39 AM
hello all :) Quite a simple question for you .net veterans. Naturally I am using the language c#, and now I want to sue the database MySQl. Unfortunately at this point I got all confused, I have connected to a MsSQL DB, and an Access DB no problem, however I cant seem to find out how I ...more >>

Using Excel in c#
Posted by Daniel Plocica at 9/16/2003 10:01:54 AM
I have a c# app and I added the reference of Excel 10 to it. I build an Excel doc within the app and I can not figure out how to: 1. Print the doc to a printer?? and 2. I would like to be able to use the 'create PDF document' feature, and I can't figure out how to do this ??, is there any ...more >>

Math ?
Posted by John Cantley at 9/16/2003 10:00:09 AM
What am I doing wrong here? lFreeBytes = 3849510912 double dbFree = (lFreeBytes / 1073741824); Console.Write(dbFree.ToString()); result shows 3.0 should be: 3.58... jc ...more >>

???
Posted by Kate Luu at 9/16/2003 9:49:37 AM
Hi all, does any body know what going on? float f1 = 0.1f; float f2 = 0.2f; f2 - f1 = 0.100000098 if I check the number like this: if( f2 = = 0.1f ) ............... NEVER WORKED !!! ...more >>

File association problem after install VS. NET2003
Posted by Hardy Wang at 9/16/2003 9:36:36 AM
Hi all: I just installed VS. NET 2003, after then I uninstalled VS .NET 2002. At this point all my file associations are lost. Is there a way I can recreate all file association with my new VS. NET 2003? Thanks!!! -- WWW: http://hardywang.1accesshost.com ICQ: 3359839 yours Ha...more >>

Using a .NET component in VFP
Posted by John Spiegel at 9/16/2003 9:21:57 AM
Hi All, I've been working on building a .dll in C# (framework 1.1) and using it in VFP8. As always, the example that runs so smoothly in the article fails at a rather basic point in practice. When attempting to create the object, After building a dll, I used RegAsm.exe to register and rece...more >>

select a piece of a bitmap and draw that selection somewhere else (or put it in another picturebox))
Posted by Jeroen Ceuppens at 9/16/2003 9:11:03 AM
Which methods, classes should I use to become the easiest programming manner? Thx ...more >>

Cursor Hotpoints
Posted by Marcus de Leon at 9/16/2003 9:10:44 AM
Hi, How do you set a hotpoint on a cursor in C#? Or is it built into the cursor itself? Thanks Marcus de Leon ...more >>

Using Resources for SQL
Posted by Marc Stober at 9/16/2003 8:54:35 AM
Hi, I am thinking that it would be a good idea to use .NET resources to store SQL statements that would otherwise be hard-coded into an application. I could even store them in a text file as shown in <http://msdn.microsoft.com/library/en-us/cpguide/html/cpconresourcesinte xtfileformat.asp>....more >>

Try&Buy
Posted by SvenÅke Andersson at 9/16/2003 8:51:34 AM
Hi I am trying to do a Try&Buy application. After Try expiration I don't want the application to be possible to use just by re-installing. How to do this? Write something somewhere in the registry? /SåA ...more >>

Legacy Code interface (No good answer): Java JNI better than .NET interoperability??
Posted by Sai Kit Tong at 9/16/2003 7:40:09 AM
I posted for help on legacy code interface 2 days ago. Probably I didn't make it clear in my original mail. I got a couple of answers but none of them address my issues directly (See attached response). My first reply directed me to source code migration but I didn't have the source code. The se...more >>

Pass pointer parameter to axtiveX.
Posted by fustl NO[at]SPAM freemail.hu at 9/16/2003 7:31:59 AM
Hello! I have a problem with C#. I have a method in an activeX: func(long FAR* pRes, long lBufSize, long FAR* lpNeeded) This activeX have written in VC 6. I should call this method in a C# application, but I don't know the type of the first parameter. I tried many ways, but I always g...more >>

"Use of possibly unassigned field" compile error
Posted by Chris LaJoie at 9/16/2003 7:00:24 AM
Our company has been developing a program in C# for some time now, and we haven't had any problems with it, but just last night something cropped up that has me, and everyone else, stumped. I have a struct that contains several different types of data. This struct is used throuout the program...more >>

Regular Expressions
Posted by dagda1 NO[at]SPAM hotmail.com at 9/16/2003 6:20:18 AM
Hi all, I am trying to remove all carriage returns from a long string. I have the following code //use a regular expression to remove all carriage returns Regex regex = new Regex("\r"); regex.Replace(decodedString, ""); It is not working, does anyone know why?? Thanks Paul...more >>

UNION with nested Structs
Posted by Sean S. at 9/16/2003 6:14:09 AM
I have been following the strings of Unions here however I have not yet seen any that can help me with this one... I am needing to convert some 16bit C code into C#... can some one assist? Here is a bit of the code: typedef union { struct { int nZWord; ...more >>

File problems
Posted by mongo NO[at]SPAM ameritech.net at 9/16/2003 5:56:24 AM
i have a program that reads through an ini file and does stuff so far the only thing i am having trouble with is the writing to the ini file. if the section is alreadey there i want to do a search for that line then all text to the next line of end of that block can someone help with this....more >>

Datagrid Customizing
Posted by Bui Trung Nguyen at 9/16/2003 3:24:32 AM
How can I customize Datagrid in ,NET such as DataGrid in VB 6.0 (I can add column with combobox button) thanks ...more >>

network programming
Posted by waleed at 9/16/2003 2:33:53 AM
i have to come up with the best solution for using files in a LAN. The problem is like this: In a client-server application is it more feasible to let the client(s) edit a file on the server or let the client(s) download the file first and then upload the file again to the server after its ...more >>

param array and stored procedure call
Posted by M at 9/16/2003 2:10:30 AM
Is there any way to modify the following code so I can run it with any number of paramNames as well as any number of paramValues? So far it works with an array of paramValues, but since you can only pass a variable number of parameters in the last parameter of a method, I'm stumped. Perh...more >>

csharp tutorial
Posted by Mr. x at 9/16/2003 2:06:41 AM
Hello, where can I find csharp tutorial/help/samples. *.chm file is preffered. Thanks :) ...more >>

Delay starting Win Service
Posted by Rajesh Abraham at 9/16/2003 1:06:24 AM
I have a Windows Service and in the OnStart, I am initializing the BusinessLayer Object and calling a method of the object, which normally takes about 10 mts to finish execution. Now when I start the Service from Administrative Tools services, it shows starting and after sometime throw e...more >>


DevelopmentNow Blog