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 monday september 15

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

instr function
Posted by Reb at 9/15/2003 11:58:40 PM
hi, any function in C# that is equivalent to instr or instrRev? Thx...more >>


OT: Linux/Java books lead upsurge in IT book sales
Posted by kalim1999 NO[at]SPAM yahoo.com at 9/15/2003 10:45:18 PM
Many Java programmers remind me of soothsayers - they try to see trends in the winds and use it to their advantage. Thus, you get the rather monotonous postings about how Java crushes all other languages/platforms when it comes to job postings, or how this survey and that survey purports to pred...more >>

progressbar and volume control as in Windows media player
Posted by manoj at 9/15/2003 10:20:52 PM
hi, could some one tell how to design progress bar, volume control and other buttons as in windows media player. I mean look and feel. thank you, manoj...more >>

right click
Posted by manoj at 9/15/2003 10:12:17 PM
hi, how to make a menu to appear when i right click on window/components thanks for any help manoj...more >>

.net framework interface implementation
Posted by chan at 9/15/2003 10:07:07 PM
Hi, I created a class that implements the System.Collections.IDictionary interface and I declared methods for implementing IDictionary, and also the interfaces it inherited from, include ICollection and IEnumerable. I have problem in compiling my class and the C# compiler complained ...more >>

Detecting a external application crashing
Posted by Mr.Tickle at 9/15/2003 9:57:01 PM
Is it possible to determine when and what application crashed from within C# ? I want to send data over UDP to an application socket, and after that I want to determine whether its crashed or not and decide what to do next, like report the crash etc.and stop sending (AV'd etc), is this easy ...more >>

Activator.GetObject sucks
Posted by pokémon at 9/15/2003 8:54:45 PM
I cannot get this method to work loading a SingleCall remote object hosted in IIS. Anyone else have any luck? ...more >>

any way to hide code or data ?
Posted by Ahmet at 9/15/2003 8:54:09 PM
Hi, I have one application in which I cyrpto password using a keyword. But when a user examines my binary using ildasm, he can see both my cyrpto key and cyrpto method. How people hide their IL code or cyrpto information in c# ? thanks.. ...more >>



formating datagrid
Posted by Jonas Knaus at 9/15/2003 8:39:16 PM
hi there... i fill my datagrid with a DataTable : DataTable DA = new DataTable(); sqlDA.Fill(DA); dataGridAdresse.DataSource = DA; now i would like to formate my datagrid but i don't know how to use tableStyle with DataTable. who do i set the width of a certain column ?? is there anyon...more >>

how to compile/debug from within VS
Posted by Robert Blackwell at 9/15/2003 8:22:23 PM
I want to be able to compile/debug from within VS. Currently, I'm just making a bunch of little console apps from book examples and so I've been typing them out, and compiling/running from the cmd prompt. I know it sounds kind of lazy but it would be nice to just be able to push F5 or ctrl+F5 and...more >>

WinForms: Can a textlabel be used as a progress indicator?
Posted by Ken Arway at 9/15/2003 8:20:29 PM
I've got a tab page on a tab control in a Windows form. The page includes a radio button (UseURL), a URL textbox (URLTextBox), a "Load" button (LoadButton) and a text label (LoadingLabel). The LoadingLabel default text colour is gray, the default text is "Nothing Loaded". When LoadButton...more >>

How to create custom dll not found message
Posted by dabby NO[at]SPAM uniroma.it at 9/15/2003 8:06:09 PM
Hi! I'm a student learning C#. I'm using Visual Studio Net. How can I create a custom "dll not found" message, listing the missing dlls? I've tried to catch the exception the first time I use a static method from the dll, but it's obviously not working. Even with the try-ca...more >>

resetting VS preferences etc
Posted by Robert Blackwell at 9/15/2003 8:00:20 PM
How do you reset Visual Studio's preferences and stuff to default? And more directly, how do I turn back on line numbering? ...more >>

Basic Question: string reference type
Posted by Nader at 9/15/2003 7:41:02 PM
Hello all, In C# string is a reference type but I learned that string is different from other reference types such as class. For example, if you pass a string argument to a method and then change the value in that method the modification will not be visible outside the method. However this is ...more >>

Listview item and color
Posted by Patrick De Ridder at 9/15/2003 7:23:09 PM
In a list view with various columns with numbers, I would like to give a few numbers a different color. I would be happy to know how can it be done. Many thanks. -- Regards, Patrick....more >>

Type.GetFields returning twice each field ...
Posted by DDE at 9/15/2003 7:00:22 PM
Hi, I have defined he following class: public class ContactInfo { public string con_nom; public string con_prenom; public string con_fonction; public string con_email; } When I use the following code, I get each field twice, whatever I use as BindingFlags: Type theType = ty...more >>

Datagrid Performance in XP and 2000
Posted by joannelai NO[at]SPAM yahoo.com at 9/15/2003 6:50:37 PM
Hi, I simply used datagrid (C Sharp) to connect mysql (odbcConnection). The project just display all records in the table that specified by the sql command (about 650 records). Also, the project was implemented using VS .NET 2003 under Windows XP Professional. I run the above project ...more >>

Installers
Posted by Sean Chapman at 9/15/2003 6:34:02 PM
since this seems to be one of the more high traffic dot net groups.. i thought id ask this here. does anyone know of some good resources on visual studio installers... mainly w/ custom actions? i need some interesting steps in an installer i have to write, and havent done it before. ...more >>

C# windows service and RegisterServiceCtrlHandlerEx
Posted by Miki Kalishov at 9/15/2003 6:22:53 PM
Hi all, I have a C# windows service that need to handle the SERVICE_CONTROL_DEVICEEVENT event. This event is not supported by the ServiceBase class so I tried to use the P/Invoke to call RegisterServiceCtrlHandlerEx() and register the call back method HandlerEx() but i was unable to receive v...more >>

Threading
Posted by Michael Culley at 9/15/2003 5:40:04 PM
I have some code that returns an event on a different thread. This is causing all sorts of problems, so I would like to just call a method on the main thread of the app and eliminate the second thread. The very first thing I want to do anyway is show a modal window so I don't need a second thread...more >>

DAL-Example
Posted by Jonas Knaus at 9/15/2003 5:23:19 PM
hello until now i allways wrote all my sql-stuff in my presentation-layer. i heard about that model of that presentation- / businesslogic- and data access layer -model. i found some example on the internet, but not very useful. does anyone has some examples for this ??? i would by very hap...more >>

Is Configuration.Appsettings Thread safe
Posted by Bijoy at 9/15/2003 5:14:27 PM
We seem to be having a lovely problem while trying to fetch Keyvalues in the Appsettings section from the Web.config, our program uses threading ( We fetch each table in a Dataset of a Separate thread) It breaks on the line whose code looks quite simple though connectionString=Configur...more >>

c# winexec equivalent...
Posted by Daniel Bass at 9/15/2003 5:02:35 PM
in VC++ you could go WinExec("C:\\myExe.exe", "open"); how do i do this in C#? can't find anything in MSDN... Thanks. =o) Dan. ...more >>

converting from string to float problem
Posted by ool at 9/15/2003 4:46:21 PM
Hello, How I can convert value from string to double. When I do this in that way: String sParam="150.00"; double dbValue= Convert.ToDouble(szParam); I get System.FormatEcxeption Thomas ...more >>

Java JNI calling .dll built with C#
Posted by cshupp1 NO[at]SPAM yahoo.com at 9/15/2003 4:19:39 PM
My question in a nutshell: Can a C header file be converted into a C# interface? Details for why I want this below... I am trying to use C# in lieu of C/C++ to build some libraries that java can call via JNI. Of course it seems that Java cannot make use of just any .dll file and make calls,...more >>

Can't Turn Off BOLD in ListView
Posted by Larry Re at 9/15/2003 3:42:16 PM
I have an app that contains a ListView box with columns (details view). I have no problem changing the text of any one line of text to Bold. I accomplish this using: lvMainList.Items[Counter - 1].Font = new Font(lvMainList.Items[Counter - 1].Font, lvMainList.Items[Counter - 1].Font.Style | F...more >>

DataGrid Complex Binding
Posted by K at 9/15/2003 3:32:36 PM
I created a collection which is derived from ArrayList and implements IBindingList and ITypedList. Then I bound the DataSource of a data grid into the collection. It could show up the data but the column heading is not in the right order, for eg. I want "ID" column to be the first column but i...more >>

Access of Panel scrollbar
Posted by Marco at 9/15/2003 3:24:54 PM
I need to set the SmallChange property of a scrollbar of=20 a panel (AutoScroll =3D true), but I don=B4t see how to acess=20 it. Any help ? _____ Marco...more >>

(un)boxing
Posted by Alistair Welchman at 9/15/2003 3:21:48 PM
I have a Hashtable of ints keyed on Guids, and I want to do the following: foreach ( DataRow row in dsWorkDays.Tables[0].Rows ) { Guid PersonId = (Guid)row["PersonID"]; DateTime Day = (DateTime)row["Datum"]; rLastWorkDays.Increment( PersonId, Day.DayOfWeek, ++((int)Offset...more >>

What is the best way to expand an array?
Posted by David Rogers at 9/15/2003 2:59:12 PM
Is this sequence about as efficient as I can get for sometimes expanding an array? MyClass [] MyFunc() { MyClass [] result = new MyClass [0]; { // Do stuff that might possibly allocate an array and put entries in it // This path is usually executed // ......more >>

Wait for synchronized access
Posted by Roger Down at 9/15/2003 2:48:51 PM
Lets say I have a method UpdateCache() called from a single thread. I also have a method GetCache() called from multiple threads. When UpdateCache() is called, the cache updating is being processed. This can take time. In the mean time, some of the multiple threads have called GetCache(), but ...more >>

Launching Directory Properties and UserProfile Properties from C#
Posted by JerryP at 9/15/2003 2:43:29 PM
Hello, is there a way to launch the property dialogue for a directory from my c# app ? I would also like to launch the User Account Properties from Active Directory Users and Computers, and the properties window for an Object in Active Directory. Thanks for any hints. ...more >>

Deployment Problems
Posted by Kyriakos Stavrou at 9/15/2003 2:34:21 PM
I deployed my project and made a file association, let say that the extension is .xyz Up to here all works fine. The problems i have are : 1. In the file types editor a verb named "open" is associated with the action "Open". How can I write the verb "open" in the main program? Can you pl...more >>

replacement for #include?
Posted by Michael Roper at 9/15/2003 2:34:13 PM
I'd like have a file with all of my Win32API stuff in it: namespace myStuff.InteropTypes { using HBITMAP = System.IntPtr; using HWND = System.IntPtr; public struct POINT { public int x; public int y; } } and then be able to do something like this in another file: ...more >>

Phisical machine address
Posted by Nicola Iuretigh at 9/15/2003 2:33:18 PM
Hi! I need to read my computer phisical address (the number with format 00-11-22-33-44--55-66 ) using C# and .NET framework's classes. Is there anyone who can help me please? Thank you very much. Nicola ...more >>

Loading script.
Posted by Curious George at 9/15/2003 2:21:14 PM
I have a page that takes about 10 seconds to load the first time it is run. I would like to first display a little animated gif telling the user that the page is loading. How do I do this with .NET? I used to create a loading layer at the top of the page. Flush the layer to the buffer. ...more >>

Friendly paging of large data
Posted by Duncan Welch at 9/15/2003 2:00:30 PM
I am in the process of developing a site that will, on completion, be quite high profile. I have successfully used the Datagrid to display paged data from a database of around 10k records, but the standard paging techniques use a linkbutton, which runs a small piece of client-side javascript. ...more >>

How to: Maximize window from the Main function?
Posted by MJB at 9/15/2003 1:49:47 PM
In the main function of my form I check to see if the application is already running. If it is, I throw up a message box telling the user. What I would like to do is also maximize the application, but I am unable to do so. Does anyone have any experience with this. TIA, Matt ...more >>

Can't set breakpoint
Posted by Randy at 9/15/2003 1:19:12 PM
Hello, I've had this to happen before and never found the cause. I have a project with about 4 different classes (forms). In the last form(class) I added, if I set a break point in this file, it won't break on it. If I set a break point outside this class and step into it, I see the break points...more >>

VS 2003 builds targeting framework v1.0?
Posted by Özden Irmak at 9/15/2003 1:03:56 PM
Hello, I've read in some websites that you need some sort of tweak (a config file) to do this... Let me give you a specific example...I'm mostly interested in developing components and user controls (Including Windows Forms and Web Forms)...If I develop it with VS2003 and target it to v1.0,...more >>

Setup Program (Cannot Access Network Location \.)
Posted by ashwinphilar NO[at]SPAM hotmail.com at 9/15/2003 12:41:36 PM
Hi!! Everyone, I have built a windows application in C#. I created a setup program, but when I run it I get the following error: "Could not access network location \." Why am I getting this error message? Thanks and Regards, Ashwin...more >>

delete a specific cell in my Datagrid
Posted by Michael Schindler at 9/15/2003 12:33:44 PM
Hello NG How I can delete a specific cell in my Datagrid. I would like if the user is in the column 6 the value changed, after automaticly the value in the column 7 in the same row to delete. Thanks Michael ...more >>

Problem?
Posted by Ady at 9/15/2003 12:10:31 PM
Hi, I posted this a few days ago but it seems no one has replied any help much appreciated. I know that i have to serialise my class, How could I pull out the value off offsetTextures and add it on to the beginning of the file to get the offset to the start of my texture data. typedef ...more >>

Vector in the STL
Posted by John Woakes at 9/15/2003 12:04:03 PM
Can I use vector from the STL in a C# program? If so how and if not is there an equivalent in .NET or C#? Thanks. ...more >>

Calling Classes in MainWindow from MDI Child Window
Posted by Shaun Pudwell at 9/15/2003 11:47:55 AM
Hi, I'm new to c# and come from a C / C++ background. My MainWindow class has a function called DrawChart. I open an MDI Child Window and want it to make a call from its class MDIChild to DrawChart which is the MainWindow class. Also, I want the chart counter to be incremented on each call ...more >>

P/Invoke ?
Posted by John Cantley at 9/15/2003 11:22:18 AM
Here is what I have, I am not getting back any values all are returned as zero. But it seems to me that the call is not running at all. what am i doing wrong or missing? public class WinApi { [DllImport("kernel32.dll", SetLastError=true, CharSet=CharSet.Auto)] public static extern bool Get...more >>

binding class variable to aspx page
Posted by Andrew Pasetti at 9/15/2003 11:07:40 AM
I'm having trouble binding/displaying a class variable to the display aspx page. Perhaps someone can suggest what I am doing wrong. ################################### Within the .aspx page I have this: ################################### <td><%# p.ParcelName %></td> ###################...more >>

Threading question
Posted by Tom B at 9/15/2003 11:05:19 AM
I've written the code below to try and figure out how threading works. My assumption is that when starting a new thread it would run at the same time as the original thread. Am I wrong? I've made a simple form with two text labels and a button. When I click the button, it creates a thread ...more >>

Is socketbuffer empty?
Posted by Robert A. van Ginkel at 9/15/2003 11:00:49 AM
Hello Fellow Developer, This looks like a long mail, but at the end of this post is my socket wrapper attached. I want to make a timeout procedure that starts counting down after the socketbuffer is empty. This connection is being used to transmit data following a RFC so I cann't create a co...more >>

NullReference Exception on Close App
Posted by Larry Re at 9/15/2003 10:57:59 AM
I've written a small C# app which appears to work perfectly except for the fact that I get a NullReference exception when I close the form using the red 'X' in the upper right hand corner of the form. Any ideas on why this might be happening? Please remove 'X's from email address to reply ...more >>

Writing IPC application using C#
Posted by mao at 9/15/2003 10:56:13 AM
Hello, I am very interested to know if anyone has ever written an IPC application using C# or VB.NET ? How different it is from C/C++ ? What .NET classes to use? Thanks, Mao Nuon ...more >>

IntelliSense failure in C#
Posted by Curious George at 9/15/2003 10:54:11 AM
I am having an odd problem with my IntelliSense in a C# project. In a few of my project files (not all) none of the keywords are blue (private void, catch, finally, etc). When I build they turn blue until I make a change to the file. Also no IntelliSense is available Any ide...more >>

OleDB for MS Access - Help!
Posted by Dave Martin at 9/15/2003 10:52:10 AM
I am working on a project that is giving me trouble. It has to be done quickly. It is being written in C# and I am totally new to C#. I need to update an MS Access database application that was created by a third party developer that is no longer in business. In other words there is no...more >>

Designing 'value objects' in C#
Posted by Thomas Themel at 9/15/2003 10:24:36 AM
Hi, I'm currently trying to model a few complex data objects in C#. These have a huge number of attributes which are manipulated in large blocks by comparatively few API calls. For maintainability, I've come up with creating nested structs that contain the sets of attributes manipulated by...more >>

A regex pattern question, please help
Posted by Hardy Wang at 9/15/2003 10:18:51 AM
Hi all: I have a big string, format like below: A 8972057019577575 37893 7937 92 702 059032868 -86-248 6408 6048-8608175398 295830 8308 02 B A 3098453-8 3-86-386-860458602862086029 23085308-5-208623-086208620982906 B ...... I would like to use one regex pattern to find out all...more >>

disable user moving application window?
Posted by ST Choong at 9/15/2003 9:09:36 AM
I am using the following code to disable user to move my application in C++. How to do it in C#? Thanks. void CMainFrame::OnSysCommand( UINT nID, LPARAM lParam ) { if( (nID & 0xfff0) == SC_MOVE || (nID & 0xfff0) == SC_SIZE || (nID & 0xfff0) == SC_RESTORE) return; CMDIFrameWnd::On...more >>

Possible to know Client Identity calling a Server using .Net Remoting?
Posted by José Joye at 9/15/2003 8:21:49 AM
I have written a .NET remoting app and I would like to know the identity of the client that calls my Server. Is there a way to do it? Or do I have to pass it as parameter in each of the method exposed to the clients? Thanks, José ...more >>

legacy code interface: Java JNI vs .NET interoperability
Posted by Sai Kit Tong at 9/15/2003 8:19:26 AM
Hi, I am developing a new application running on Windows platform that needs to interface with existing legacy code - written in basic C / C++. I am trying to evaluate Java vs C# implementations. Originally, I have the impression that C# should be a clear winner. I started with Java and usi...more >>

Serializing an array of class instance to XML
Posted by Jax at 9/15/2003 7:59:04 AM
I'm figuring i need some special attributes in my class for it to serialize a whole array of classes or an arraylist of objects, i can do one at a time but i now need 150 of them and i'm looking for a better solution. Every time i try i get an exception. The on-line documentation has only got me...more >>

app.config & Win Service
Posted by Rajesh Abraham at 9/15/2003 5:57:58 AM
I have an assembly, which is reading some values from the App.Config file. It works fine when used with a Win Forms project. Now I am trying to use the same assembly in a Windows Service Project but the service fails to start as the assembly is not able to get the value from the app.conf...more >>

How to identify the client computer?
Posted by ecy NO[at]SPAM bezeqint.net at 9/15/2003 4:35:27 AM
To login into my web site the user has to supply a username and a password. As the application is a commercial one I would like to enable the customer to connect to the site only from the machine located at his office and not from home. How can I identify the actual machine he is logging in fro...more >>

How to trigger client script from server script?
Posted by ecy NO[at]SPAM bezeqint.net at 9/15/2003 3:49:07 AM
In my ASPX code I would like to open a new window, send a message box, create an alert window etc. The logic when to do the above is implemented in the server side, as it is depended upon Database information. (i.e. open an alert window when a record was not found in the database.) As I know op...more >>

How to write configuration variable in a deployment project?
Posted by ecy NO[at]SPAM bezeqint.net at 9/15/2003 3:48:19 AM
I would like to gather data from the user in the startup phase. Then to create a Configuration variable from which connection objects will read their connection string. (Dynamic binding) How can I assign a value to a configuration variable during deployment phase ? Is there another way to confi...more >>

How to create a database from a deployment project?
Posted by ecy NO[at]SPAM bezeqint.net at 9/15/2003 3:47:11 AM
I would like to create a database for my application when it is deployed. This database can be from different types depending on the tool installed on the customer computer and will be chosen during the startup wizard. Where do I write the code in the project? How do I open a new database prog...more >>

Anakrino
Posted by Dmitri Shvetsov at 9/15/2003 3:18:37 AM
Hi friends, Who knows something else except Anakrino http://www.saurik.com/net/exemplar/ or Salamander http://www.remotesoft.com/salamander/ to get the source code of C#.NET exe/dll? It's really interesting to get a compilable code instead of promises. What's interesting in Anakrino, the...more >>

ServiceController class startup type
Posted by Vinay at 9/15/2003 3:05:55 AM
HI, I am writing a utility which will list all the services running on system like services.msc program. Now I want to display the Startup type of service like manual/automation. How can I get that property? I just want to read that property, and do not want to create new one. TIA, V...more >>

unsafe C# with C-library call; object reference not set to an instance
Posted by netronproject NO[at]SPAM hotmail.com at 9/15/2003 1:30:51 AM
I have a C-library to access a Tivoli LDAP directory. Thanks to this newsgroup I managed to find the correct DllImport (thanks everybody!), which is: [DllImport("SIT_UML.dll", EntryPoint="SIT_Registry_Initialise")]public static extern int InitializeRegistry(ref UIntPtr LDAPSession,[Marshal...more >>

Fill List box fast!!
Posted by ali poursadri at 9/15/2003 12:37:18 AM
Hi, I want to fill my list box from a dataset in c#. I use adapter and fill command and bind it to a listbox, but it is very slow for large data about 500000 records. How can I view this list rapid? thanks. ...more >>

Orphaned custom controls
Posted by Laurence Reeves at 9/15/2003 12:36:01 AM
Wall, up, driven I have been. I runtime "Controls.Add" eighteen of my custom controls (two varieties). A seemingly random (but consistent) eleven of them instantly lose their parentange. I do virually anything, and the remaining magnificent seven of them drop off the face of the form. ...more >>


DevelopmentNow Blog