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# > august 2004 > threads for wednesday august 18

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 can I use the <object>??
Posted by Jet Leung at 8/18/2004 11:29:16 PM
Hi all, There are somethings trouble me. I had made a aspx file and drop an ActiveX component into this aspx design view, and this aspx html view, this ActiveX component was declared <object id="xxx"..>. And How can I use this component in my aspx page? Can I use this component declared by <obj...more >>


C# code analyser...
Posted by Dev at 8/18/2004 11:01:01 PM
Can you please tell me what C# code analyser do you use. Is devAdvantage the best? Do you use FxCop as well in conjunction with statis code analyser? Is it good practise to use Obfuscator? Your guidence would be apprecited. Thanks, Dev ...more >>

Socket question
Posted by Tony Caduto at 8/18/2004 10:35:51 PM
Does anyone know of a example on how to read \r\n (CRLF) delimited line without using the streamreader class? Thanks, -- Tony Caduto Inexpensive Corporate Messaging AM Software Design http://www.amsoftwaredesign.com ...more >>

System.IO.File.Move
Posted by Daniel at 8/18/2004 10:27:40 PM
why does System.IO.File.Move("c:\\hmbug.jpg", "c:\\foodoo\\foo.jpg"); throw access denied? im just moving a file in a console app? any ideas? ...more >>

Multi-threaded p/invoke
Posted by Duncan Mole at 8/18/2004 9:07:04 PM
Hi all, Does anyone know of a way to achieve multi-theaded platform invokes? I have been taking quite a performance hit using the syncronised attribute: [MethodImpl(MethodImplOptions.Synchronized)]. Cheers --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (ht...more >>

Is there some way to communicate between IE and My Application
Posted by Qumer Mumtaz Goraya at 8/18/2004 8:52:23 PM
Hi How can I communicate between IE and an other application.I am able to communicate between two applications of mine but confused how to do this with IE.I just wanna know how IE get the shared area of memory I am using mailboxes to communicate between two applications. your help will be appre...more >>

Cursor on Win32 Window
Posted by Tamir Khason at 8/18/2004 6:59:31 PM
I have a control (created by interop from Win32) wich placed into other control (regular C#), BUT I can not recieve mouse events from Win32 control even when listening to WM_MOUSE... messages from WinProc. The only way I can capture the mouse in the control is using MyWin32Control.Capture = t...more >>

Setting a Controls Focus?
Posted by Jason at 8/18/2004 6:36:56 PM
I have created a c-sharp app that has keyup, keydown events tied to the form. The form also has some other controls, buttons, labels and 1 custom control that I made which inherits from user control. My problem is ... When I first start the app all my keyboard events work fine and by doing deb...more >>



MDI Child Forms are FLASHING@!!!
Posted by Paul Loveless at 8/18/2004 6:34:30 PM
Hi all. I'm developing a simple mdi application that has sizeable child forms. In the parent window, there is a menubar with a 'Window' menu. I've set the 'Window' menu MDIList property to true so that it will display a list of open child windows at runtime. When I run the program to test its fu...more >>

calling a delegate in a another thread (compact .NET)
Posted by johns1111 NO[at]SPAM gmx.de at 8/18/2004 6:07:56 PM
Me again... ;) I am running a small borderless dialog in a seperate thread, that shows a small animation and I want to signal it to close itself. But I am running in a System.ArgumentException which I do not understand because I do not have any arguments. Here is what I am doing: -------...more >>

compare sound
Posted by Peter Nitschneider at 8/18/2004 5:52:20 PM
Hi there, i have a question, how could i ( if it is possible ) compare for example a wav file with some input from microphone. Something like authorisation through voice. Where should i start? Any ideas? Thanx a lot ...more >>

Moving windows forms
Posted by Pablo Cedeno at 8/18/2004 5:51:05 PM
Hi all, I'm having a problem with a form position. I need to prevent the user to drag the window. I tried to maximize the window but i still can move the window. I found something about override the WndProc method, but there are many messages returned by the OS, and i don't know which messa...more >>

calling a delegate in a another thread (compact .NET)
Posted by johns1111 NO[at]SPAM gmx.de at 8/18/2004 5:41:42 PM
Me again.... second time I type this - the post did not work the first time... Similar question as last time, but another problem: I am running a CE.Net Application and I want to show a small borderless dialog which shows an animation, that shows, that the application is still doing something...more >>

calling base and this constructor at same time, is possible?
Posted by murat oguzalp at 8/18/2004 5:16:01 PM
i want to call base and this constructor at the same time. is is possible? i mean: B(int a, int b, int c):base(a):this(b) { // do something with c } at java i used to do that: B(int a, int b, int c) { super (a); this(b); // do something with c } and if yes, how i...more >>

Checksum in c#
Posted by Max Adams at 8/18/2004 5:09:03 PM
Checksum in c# does anyone know of an easy way (preferably using built in libraries) to generate a standard checksum for a string? Thanks PT ...more >>

Switch statment question
Posted by Andrea Williams at 8/18/2004 4:52:18 PM
I used to program with VBS and I'm used to allowing multiple cases in one CASE line. Anyway to do that C#? VB Example: Select Case (lngStatus) Case 1,2,3 'do something Case 4 'do something End Select Andrea ...more >>

Netscape Problem
Posted by Stephen at 8/18/2004 4:48:01 PM
Hi, I have a problem with Netscape. I am using javascript to pass values and redirecting to the same place. it works fine in IE and not in netscape. please suggest. function popup(WardrobeSet) { document.forms(0).action = "WardrobeSet.aspx?WardrobeSet=" + WardrobeSet; document.forms(0...more >>

save bmp file
Posted by cfyam at 8/18/2004 4:44:08 PM
How can I save the bmp file to mono style? ...more >>

Automate web page form submission in C#
Posted by mlp NO[at]SPAM parisimedia.com at 8/18/2004 4:27:26 PM
I have a responsibility within my testing department to automate the submission of data on 4 sequential asp pages. Here's the tasks: 1. Sign in 2. Enter form data and submit 3. Enter more form data and submit 4. Upload file and submit all data The final submission is an accumulation o...more >>

how do you open an ODBC connection?
Posted by Mojtaba Faridzad at 8/18/2004 4:15:26 PM
Hi, I am newbie in C# and I am trying to design my first database program and I am trying to find the best solution. The database is MySQL. how do you open your connection in a big application? as I know, I should open a connection, set the dataset and close the connection. I should open ...more >>

SQL Connecting Problems
Posted by gherk_inn NO[at]SPAM hotmail-dot-com.no-spam.invalid at 8/18/2004 4:02:47 PM
A simple app I quickly wrote to try getting info from a database. Here is the first part of its code. The rest of the code is irellevant. using System; using System.Data; using System.Data.SqlClient; using System.Threading; namespace TestSQL { class Class1 { [STAThread] static voi...more >>

How to keep cursor within the scope of a custom user control ??
Posted by BBFrost at 8/18/2004 3:59:42 PM
We have a data entry application written within Framework 1.0 that contains 20+ custom user controls. The controls overlay each other so that only one custom control is visible at a time. What is the best way to keep the cursor from jumping to another non-visible control when the user tabs pa...more >>

CSHarp ASP component tutorial
Posted by Mark at 8/18/2004 3:51:19 PM
Does anyone know of a tutorial out there which allows me to create a component which is written in CSharp that is Accesable from an ASP Page just like you used to be able do do with an ActiveX VB DLL? Thanks Mark...more >>

Source Safe for VS .NET 2005
Posted by Özgür Aytekin at 8/18/2004 3:47:28 PM
Hello Codezone Members, Know anybody when the new Source Safe for VS .NET 2005 Beta will available? Regads, Özgür Aytekin (MCSD .NET, MCDBA) www.borsagame.com ...more >>

Data Access Interfaces, Mapping and Domin model
Posted by Kevin C at 8/18/2004 3:43:36 PM
I was curious to know what some developers out in the industry are doing = when it comes to exposing Data access logic, specifically persistence. = This is assuming that your not using an O/R framework or something that = completely abstracts you from the persistence details. Are you: 1. Ha...more >>

Interop Woes
Posted by Chris B. at 8/18/2004 3:41:55 PM
If anyone can figure out how to implement the following C++ function in C# using interop, I'd be very appreciative. I have not been successful in getting it to work correctly using interop (without using unsafe code) because of the pointer issues of the structure. Thanks, Chris //-------...more >>

Howto: Forward declarations
Posted by Coffee guy at 8/18/2004 3:19:03 PM
Silly question but I haven't found the syntax yet. How do I forward declare a class type in C#? ...more >>

Word count in string pls help.????
Posted by boy_wonder48 NO[at]SPAM hotmail.com at 8/18/2004 3:03:55 PM
Hi i just wanted to knw the quickest way, of obtaining a count of the number of words in a string? Also how could I then output these words to a file, with only one word on each line in file, in alphabetical order , the first letter of the word capitalised and with no duplicates? Any help woul...more >>

Word count in string pls help.????
Posted by boy_wonder48 NO[at]SPAM hotmail.com at 8/18/2004 3:03:46 PM
Hi i just wanted to knw the quickest way, of obtaining a count of the number of words in a string? Also how could I then output these words to a file, with only one word on each line in file, in alphabetical order , the first letter of the word capitalised and with no duplicates? Any help woul...more >>

Releasing an Event
Posted by Randy at 8/18/2004 3:02:13 PM
Hello, I've got a table and I create a tablestyle for it. This table is the datasource for a dataGrid. In this createTableStyle function one of the columns is a button. I tie a button to it. buttonColStyle = new DataGridButtonColumn(i); and a click event. buttonColStyle.CellButtonClicked += ...more >>

Question on threading and using P/Invoke...
Posted by gilad NO[at]SPAM arbingersysBADSPAMBOT.com at 8/18/2004 2:52:52 PM
If a DLL has been created to be thread-safe, and you create a wrapper class around it in C# that is non-static (i.e. you must instantiate objects from it), what are the implications of creating multiple objects from said wrapper class? There's only one DLL, so is it creating multiple instanc...more >>

Delegate is Null
Posted by Chris Fink at 8/18/2004 2:23:02 PM
I am experiencing a problem using an event to log to a file. The problem is that in the second wiring, the following is always null - never the case in the first wiring protected void OnLog(string message) { if(Log!=null) Log(message); } In my static main I have two delegate wi...more >>

Graphic Library
Posted by Striped at 8/18/2004 2:07:30 PM
Is out there any graphic library written in C# or other managed code available, that allows the dynamic creation of images with some simple data like text, bars etc. and which doesn't depend on any current OS or video card implementation? This image doesn't have to be dispayed, just saved in ...more >>

convert ppm to jpeg
Posted by Kim Schulz at 8/18/2004 2:05:59 PM
hi anyone that know some free code to convert ppm to jpeg in c#? Best regards Kim Schulz...more >>

WebSvc Failback!
Posted by Vai2000 at 8/18/2004 2:00:14 PM
Hi All, I have a box outside the DMZ that calls my WebSvc 's. I have 2 boxes running the WebSvc's though one is like backup (so both don't run concurrent). Incase of outage when the first box is not responding I want to call the WebSvc from the Box No.2 How do I accomplish that..? Q. How can...more >>

Windows Identity
Posted by Ivan G. at 8/18/2004 1:52:55 PM
Hi. How can I create an instance of WindowsIdentity class knowing user samaccountname and domain password? Thanx. ...more >>

file upload
Posted by Viktor Popov at 8/18/2004 1:42:08 PM
How could I upload files which are less than 100K only? Thanks, Viktor --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.729 / Virus Database: 484 - Release Date: 27.7.2004 a. ...more >>

Custom Video Driver WITHOUT DirectShow support
Posted by Tamir Khason at 8/18/2004 1:17:59 PM
Question: I have some custom video card with custom driver, which does not support DirectShow. How it possible (if it is) implement program using it within .NET enviroment? TNX -- Tamir Khason You want dot.NET? Just ask: "Please, www.dotnet.us " ...more >>

C# Book
Posted by A.M at 8/18/2004 1:15:22 PM
Hi, I am looking for an in-depth book for C#. In Java world, we have thinking in java which is very good. What would be the best book to learn in depth aspects of C#? Thanks, Ali ...more >>

Remote Agents
Posted by KV at 8/18/2004 12:21:41 PM
Anybody here created an agent? I need to create an agent that runs as a Windows service. The agent would listen on a certain TCP port and run executable files sent to it from a master program. I have these questions: - Is C# a decent language to write this in? - If there are any major i...more >>

why application with access database doesn't run
Posted by Luminal at 8/18/2004 12:17:11 PM
Greetings Recently I've developed a C# application using an Access database. For this I use the Data.OleDb namespace. Now I have customer telling me that he can't use the application. The application does not work because it has no database. In theory, if the database does not exists, my ...more >>

SQL Harness
Posted by Vai2000 at 8/18/2004 11:29:47 AM
Is there a tool by which I can check the Heartbeat of SQL Servers? Lot of my apps are throwing SQL Timeout exception, so I was wondering maybe I can test harness the SQL via a tool.... I can write one but just wanted to check is there already something available! TIA ...more >>

Com port and priorities
Posted by Gianmaria at 8/18/2004 11:17:30 AM
Hi, i'm workin to a project where i use a serial port to send and receive data. My objects send messages to the port by some methods.. no problem till now. I receive and send data. The problem is that i have to send a string signal every 25 seconds to tell the remote device i'm still connected.....more >>

Base Obj = new Derived()?
Posted by Akhil at 8/18/2004 11:16:23 AM
Hi All, Can u please explain this. Base Obj = new Derived(); [Base being the base class and Derived being the derived the class] Can Obj access methods both of Base and Derived or what will be the behaviour? What will be the behaviour for Overridden Methods? Cheers, Ak...more >>

Why are all the String Classes Sealed?
Posted by wackyphill NO[at]SPAM yahoo.com at 8/18/2004 11:08:38 AM
Why can't we add new methods to String or StringBuilder?...more >>

Where is Main() in a windows app
Posted by wackyphill NO[at]SPAM yahoo.com at 8/18/2004 10:37:08 AM
When you create a Windows App Using Videuakl Studio (c#) There doesn't seem to be any static Main() method at all. Why is this? Where is the entry point?...more >>

dg_KeyPress???
Posted by Darryn Ross at 8/18/2004 10:17:31 AM
Hi, I am trying to catch the KeyPress event of my datagrid, but nothing is happening, the event is not firing? private void dgGLBatch_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if (e.KeyChar == (char)13) SendKeys.SendWait("{TAB}"); } Any help would be app...more >>

Initialize char with int
Posted by msnews.microsoft.com at 8/18/2004 10:13:18 AM
Hi! In C++ you could easily intialize a char-variable with an integer value: char ch = 123; How can we accomplish this in C#? You can get the integer representation of a char value easily, but what about the opposite? TIA, Markus ...more >>

Using System.Timers.ElapsedEventHandler to specify a method and and ElapsedEventArgs object
Posted by Max Adams at 8/18/2004 10:11:31 AM
Using System.Timers.ElapsedEventHandler to specify a method and and ElapsedEventArgs object I've trawled the internet looking for some help on this topic. What I want to do is, every x seconds call function y with some parameters. Simple. The ElapsedEventArgs paramerter I want to pass in is ...more >>

Can't figure out the error
Posted by DaveF at 8/18/2004 7:14:55 AM
IAny idea what this error is? C:\Documents and Settings\dfetrow\My Documents\Visual Studio Projects\FTPTimer\Service1.cs(15): The type or namespace name 'TimedItem' could not be found (are you missing a using directive or an assembly reference?) namespace CodeGuru.TimerService { pub...more >>

CREATE ACTIVE X IN C#
Posted by equip200 at 8/18/2004 6:51:01 AM
I have a third party program that has the ability to control my program trough ActiveX/COM. My program is built in c#? What would I need to do to have the third party program connect to my program or just execute methods in my program? IS SOMETHING LIKE THIS THE CORRECT START AND WHATS ...more >>

what the ....
Posted by [Yosi] at 8/18/2004 5:59:01 AM
Why I got the following error ,when trying to run the project (debug->start): "A project with an out put type of class librarry can not be start directly ..."...more >>

Arrays - Which One?
Posted by Mark Givens at 8/18/2004 5:56:04 AM
Ok, I have read more website tutorials on C# arrays than I really wanted too and am still completely blured on the subject. I normally develop websites using PHP/MySql, but have been forced into a bit of C# after the C# guy had a family emergency. Anyway, if someone has the time and patience,...more >>

change FONT color using Regex.Split
Posted by Ada at 8/18/2004 4:51:04 AM
i'm trying to use Regex to match a 4 number group pattern. once a match is found, write it to RichTextBox in red. test data: This is my 4567 test data. 1234this is another line of data. Here's two more 9876 5432. What a headache!!! result should be the same as the test data above...more >>

VS2003 Command Prompt
Posted by msuk at 8/18/2004 4:47:01 AM
All, I am trying to use Regasm from the command prompt and have to keep putting the full file path of where my assembley is located. Does anyone know how to set it up so wherever I run the command prompt from I can use Regasm saving entering the full path. Thanks Msuk...more >>

Get user names
Posted by Nurchi BECHED at 8/18/2004 4:25:15 AM
Hello, my dearest respected brother, All! I had this question: How can i obtain list of users registered in the system and current username and usergroup? I'm running Windows XP Pro and have the following users registered in the system: Gus: Administrators Nurchi: Administrators Patimat...more >>

How can I open a VS.Net Project remotely?
Posted by mkomasi at 8/18/2004 4:07:02 AM
Hi, I have a VS.Net project that works correctly. When I open it from remote, a message will be appeared "The project location is not fully trusted by the ..NET runtime. This is usually because it is either a network share or mapped to a network share not on the local machine. If the output...more >>

Dealing with Database Null
Posted by Rene at 8/18/2004 3:59:24 AM
I have my object model thing going with some classes that contain properties that are saved into a database. Some of these properties are *numeric* properties that can be left Null in the database table. My problem is that there does not seem to be a way to assign a Null value to your typi...more >>

DataGrid won't page
Posted by richard_thomas NO[at]SPAM bigfoot.com at 8/18/2004 1:26:50 AM
Hi, I have a DataGrid which is populated by a DataAdapter getting data from a stored procedure (on SQL Server 2k). I've set the DataGrid to be pageable, and when I view the page in IE, the paging controls come up, as does the correct data. However, when I use the paging controls, it doesn't...more >>

ThreadPool help
Posted by carmelo8888 NO[at]SPAM yahoo.com at 8/18/2004 1:19:48 AM
Hi there, I'm not an experienced C# user so I would like to ask for some help 'cause I get actually lost. Here it goes. I'm trying to use the 'ThreadPool.QueueUserWorkItem()' method in order to create a new thread and passing through some arguments on a Data Container class(StoreArguments cla...more >>

Avoiding Duplication of Code
Posted by Guadala Harry at 8/18/2004 1:13:30 AM
I have some logic that currently processes values retrieved by looping through a HashTable/ListDictionary structure (a hash table that contains ListDictionary objects as its values). Logically it's just a bunch of rows and columns - just like in a DataTable or row set returned by a DataReader. Y...more >>

CSC command prompt problem
Posted by Kent at 8/18/2004 1:07:03 AM
can anyone tell me why I may be getting a compiler limit exceeded error (cs1034) for the following command. --- csc /t:library /out:reocs.dll reocs.cs /r:System.dll,System.Web.dll,Microsoft.Data.Odbc.dll...more >>

Unicode Excel
Posted by Dayron at 8/18/2004 1:02:15 AM
I am currently doing an export to excel function with unicode in the excel. I grab the data from oracle using asp code and save into excel using Response.ContentType = "application/vnd.ms-excel" Response.AddHeader "Content-Disposition", "inline; filename=a.xls" I manage to view the unicode...more >>

Get owner of a process
Posted by tbb NO[at]SPAM uni.de at 8/18/2004 12:57:33 AM
Hi I am writing a program for a terminalserver. But the program should startet only once so i write a methode which returns if the process is running: .... Process[] processes = Process.GetProcessesByName(ProcessName); if(processes.Length > 1) { return true; } else { ...more >>

Webservice and international chars
Posted by nicolas.bus NO[at]SPAM cstb.fr at 8/18/2004 12:34:23 AM
Hello! I call using C# a webservice (UTF8 encoded) that return a list of product. I get the requested objets. So far so good. But, in those objects in all String attributes I get ?? instead of chars with accents. I tried to call the same webservice in Java and Delphi and I get the right chars...more >>


DevelopmentNow Blog