Groups | Blog | Home


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# > november 2004 > threads for friday november 12

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

newbie - WebServices
Posted by bernardpace NO[at]SPAM yahoo.com at 11/12/2004 11:43:47 PM
Hi, I am trying to use the AmazonWS webservice in my application. I have registrered with AmazonWS for an ID. In my application, I have added a Web Reference http://soap.amazon.com/schemas2/AmazonWebServices.wsdl Now, I am trying to use the methods produced by this webservice, but I hav...more >>


Newbie Question (VB ASC() and CHR() functions)
Posted by Gonçalo Boléo at 11/12/2004 10:39:45 PM
I'm never programming in c# but at work i will now have to do that. I'm very experimented in VB and some things confuse me a little. What are the equivalents in c# for ASC and CHR to return de ASCII code of a character ando to do the inverse process. thanks, Gonçalo Boléo ...more >>

Null out the current object... possible?
Posted by AC at 11/12/2004 9:27:03 PM
I have the need to destory the current object when a method is called. Such as: public class Animal{ public string animalType = string.Empty; public void Delete(){ this = null; } } When I compile it, it throws an error. Is this not possible? I know the user of class Animal ca...more >>

DataGrid question
Posted by web1110 at 11/12/2004 8:33:21 PM
Hi, I have a form with a DataGrid. How do I set it up so I can resize it during execution. Thanx, Bill ...more >>

byte [] -> string
Posted by vertigo at 11/12/2004 8:13:20 PM
Hello How can i convert byte [] array to string ? Thanx Michal ...more >>

mailslot - testing
Posted by vertigo at 11/12/2004 6:54:03 PM
Hello I've tried to create mailslot server, and send there some packets. On both sides every operation is successful, but on server side message do not appear. Is there any client under windowsXP which could send some mailslot packets to my host ? Is there any command (like netstat for TCP...more >>

Is this an encoding problem?
Posted by David Taylor at 11/12/2004 4:47:51 PM
In .net I am using a HttpWebRequest to read from a WebSite. I am getting everything back except for some characters above hex 7F which appear to have been stripped out of my response. I see these characters if I examine the site with IE. It has been suggested that this is an encoding proble...more >>

MSMQ and user rights
Posted by Kimmo Laine at 11/12/2004 4:45:46 PM
Hi, when creating a new MessageQueue (in C#), can i tell that users from specific Group can use it freely: thx Kimmo Laine ...more >>



directories and application path
Posted by Bart at 11/12/2004 4:13:33 PM
Hi all, I would like to open an OpenFileDialog to find an image and store it in the folder of my application, so I can refere to it in the future only by "./picture/file". My code looks like that: //openFileDialog and set up Filter,Title and Initial Directory openFileDialog1.Filter = "Bitm...more >>

how to change filetype?
Posted by lizhx NO[at]SPAM 0536.net at 11/12/2004 4:10:15 PM
i have a file "a.mp3" but i want wo change it to "a.asf"(not in convert,only to change the file header and extent) how to? thanks ...more >>

Open Source c#
Posted by John Bailo at 11/12/2004 3:27:00 PM
This is a multi-part message in MIME format. --------------070809010705090304090800 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit http://csharp-source.net/ --------------070809010705090304090800 Content-Type: text/x-vcard; charset=utf-8; ...more >>

Problems with ItemDataBound event in Datagrid
Posted by Phil Townsend at 11/12/2004 3:02:12 PM
I am using the ItemDataBound event of a Datagrid to color code table cells according to data returned from a SQL stored procedure. At first everything worked, but then I decided to customize the datagrid by setting autogenerate columns to 'false' and defining my own column names (in the aspx pag...more >>

Passing an object reference 1000 times
Posted by Dennis Myrén at 11/12/2004 2:56:29 PM
I have these tiny classes, implementing an interface through which their method Render ( CosWriter writer ) ; is called. Given a specific context, there are potentially a lot of such objects, each requiring a call to that method to fulfill their purpose. There could be 200, there could be mo...more >>

Convert String or char[] to byte[]
Posted by Marius Cabas at 11/12/2004 1:59:41 PM
How can I convert a String or a char[] to byte[]? ...more >>

How can I share MenuItems?
Posted by MrNobody at 11/12/2004 1:22:01 PM
For the the sake of keeping my code simple, I wanted a ContextMenu and a MainMenu to share some MenuItems, but it turns out when I Add() one MenuItem to the other it 'steals' that MenuItem so it does not appear on both... is there any way to share MenuItems or am I forced to clone them and was...more >>

Can I stop other event handlers from receiving an event?
Posted by MrNobody at 11/12/2004 1:19:01 PM
If i add an event handler to a particular event on a Control, can I consume events that are triggered so any other handlers registered to the same event do not process their code?...more >>

Create event handler for componenent that's created programaticall
Posted by mg at 11/12/2004 12:57:02 PM
The code below creates an ImageButton when a LinkButton is clicked. How can I create an event handler for this ImageButton which can't be seen in Design? private void LinkButton1_Click(object sender, System.EventArgs e) { System.Web.UI.WebControls.ImageButton ImageButton1 = new ImageBu...more >>

Using a ref parameter on a reference variable
Posted by Edward Diener at 11/12/2004 12:36:38 PM
My undersstanding of using a ref parameter is to be able to pass initialized value variables as references. Is there any purpose to using a ref paraneter with a reference variable ? If one does it the compiler accepts it. Does this mean anything ? ...more >>

list of all servers on the network
Posted by ALI-R at 11/12/2004 12:17:44 PM
How can I get a list of all servers in the network??? Thanks for your help ...more >>

MessageBox quirk - msgbox.jpg (1/1)
Posted by Marc Jennings at 11/12/2004 12:10:12 PM
begin 644 msgbox.jpg M4&%I;G0@4VAO<"!0<F\@26UA9V4@1FEL90H:```````%````?D)+````+@`` M`"X```!-`0``#0$``````````%)``0(`&``!``````$`R!H$```````!``$` M`#%^0DL`"@`8````?D9,``$`#@```,#`P``*````"@``````?D)+``$`.``` M`'Y&3``!``0```")II1!?D9,``(`!````-6FE$%^1DP`!@`$`````0```'Y& M3``'``0````$```'?D)+`!`...more >>

MessageBox quirk - msgbox.jpg (0/1)
Posted by Marc Jennings at 11/12/2004 12:10:11 PM
Hi, I have a problem with the message text and button text not showing up in a messagebox. (See attachment) The code I used to call this example was > MessageBox.Show(this,"Hello","nothing shown",MessageBoxButtons.OK,MessageBoxIcon.Information); I had this problem a couple of weeks ago ...more >>

Concatenate Byte[] arrays
Posted by Marius Cabas at 11/12/2004 11:55:41 AM
I have a Byte[] array and I want to concatenate it to another Byte[] array. How can I do this? Thanks. ...more >>

C# TAPI - ITBasicCallControl -- ERROR-- "SPECIFIED CAST IS NOT VALID"
Posted by BizTalk Architect at 11/12/2004 11:44:58 AM
Hello, I cant get past this error, can anyone help? ITCallNotificationEvent objCallNotification = (ITCallNotificationEvent)sender; ITCallInfo callInfo = objCallNotification.Call; ITBasicCallControl Call; Call = (ITBasicCallControl)callInfo; *******ERROR HERE***************...more >>

URL validation in a textbox
Posted by ALI-R at 11/12/2004 11:31:00 AM
I have a text box where user is supposed to enter a URL , How can I programmatically figure out the a URL that user has been entered is valid or not ,I mean wethere it exist or not???? thanks ...more >>

Debugging Application Crashes
Posted by Charles Evans at 11/12/2004 11:30:54 AM
Morning! I have this C# application that occasionally crashes complely and doesn't return any error to the VS IDE. The crash comes as a Microsoft error dialog stating "Application.Exe has encountered a problem and needs to close.". It allows me to examine an error signature but i have no ...more >>

C# to binary question....
Posted by makaveliMOB662 NO[at]SPAM hotmail.com at 11/12/2004 11:30:29 AM
Hi, I develop a program for work in C# and it works fine on my machine, because, of course i have the .NET framework. I want others to be able to run this too but without the trouble of having to download the framework. Is there a way I can compile this to binary with the .NET libraries ...more >>

Threading in asp.net issue - Thread stops
Posted by philippe_graca NO[at]SPAM hotmail.com at 11/12/2004 10:39:36 AM
Hi, I've a simple asp.net page with one button. In the OnClick event, I want to create a thread that will perform a long runninf task. Here is a sample code in the OnClick Thread t = new Thread(new ThreadStart(this.Import)); t.Priority = ThreadPriority.Lowest; t.Start(); Import Funct...more >>

MFC to C#
Posted by Chester Ragel at 11/12/2004 10:33:05 AM
Hi, Do any of you have any guide or something to migrate VC++ 6.0 MFC code to C#? I want a guide which has a collection of C# equivalent to MFC code. For exmaple, CRect = System.Drawing.Rectangle.. Thank you, Chester. ...more >>

Treeview Selected Item
Posted by Marc Jennings at 11/12/2004 10:31:50 AM
Hi There is probably a very simple answer to this, but I am not too familiar with the treeView control... I have a treeview control, populated from a database. I want to be able to get the text property of the slected node when a user selects one, but I don't know which methods to use. ...more >>

trying to port some C++ structures to C# problem.
Posted by Olaf Baeyens at 11/12/2004 10:20:33 AM
I am trying to port some C++ structures to C# but I have troubles with this one. Note: this is a file record, so I must keep this format. #pragma pack( push, 1 ) typedef struct { char title[80]; DWORD dwCount; } STLHEADER, *LPSTLHEADER; #pragma pack( pop ) Using Google I disco...more >>

Intercepting object creation
Posted by Hugo Wetterberg at 11/12/2004 10:13:22 AM
Hi all, Is there any way to intercept an object creation and supply another object? As when using proxy objects in remoting. The scenario is that i have a class B that extends A, when new A() is called I want to supply a B object. Is this possible? /Hugo...more >>

C# Programming Question
Posted by Yoshi at 11/12/2004 10:11:03 AM
I want to develop an application that can contain any application that is running. I have done this in VB 6.0 using the SetParent api's. As I do research, it's looking like I will still need to use the API's. Is this true or is there a .Net equivelant that does what I want. Thanks, Y ...more >>

COM disposal
Posted by JC at 11/12/2004 9:26:47 AM
On the second pass through the obj I get this error. This is all running on my machine. I used the framework wizard to trust the interop.mydll.dll assembly, what am I missing, do I force a disposal of the obj or what? An unhandled exception of type 'System.Security.SecurityException' occurred...more >>

PInvoke and constants
Posted by vertigo at 11/12/2004 9:24:40 AM
Hello I use some win 32 API function for example: HANDLE CreateFile( LPCTSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile ); my code: ...more >>

Capturing the content of a DataGrid Cell???
Posted by thomaz at 11/12/2004 9:06:42 AM
Hi; How can i store the content of one DataGrid cell in a String Variable? Thanks.... ...more >>

User Control with transparent background
Posted by flam NO[at]SPAM rfranco-dot-ca.no-spam.invalid at 11/12/2004 8:56:35 AM
My application have some level : 1. MyButton class with Label inheritance 2. MyComponent as User Control loading and positionning some of MyButtons 3. MyApp loading and positionning MyComponent I prefer don't insert a background in MyComponent, and using the MyApp one as general background w...more >>

Converting C++ code to C#
Posted by rgarf at 11/12/2004 8:54:43 AM
I am converting C++ code to C#, I came across a few C++ functions that I need to match up to a C# function. My question is What C# methods are used to replace the following C++ methods? _ecvt - (converts a double to string) _gcvt - (Converts a floating-point value to a string, which it stores ...more >>

Access Local Cookies with CookieContainer?
Posted by Arne Schittenhelm at 11/12/2004 8:51:27 AM
Hello, I try to figure out if there is a way to read the local cookies with CookieContainer or another .net cookie class. If I use a filename as URI I get a System.UriFormatException or System.InvalidCastException. Any ideas?...more >>

Processing an existing buffer using Stream?
Posted by Maury Markowitz at 11/12/2004 8:39:33 AM
I have code that returns a buffer filled with variant data. I've tried using P/Invoke to process it, but that's just proving frustrating and basically impossible to debug. Another way to deal with the problem would be to use a Stream, MemoryStream seems particularily interesting. However al...more >>

How do I set the date format in a webui datagrid column?
Posted by Jim H at 11/12/2004 8:37:36 AM
I have a datagrid on a web form that is bound to a datatable that has a column with datetime values. The default format is displaying the date and time down to the second. I'd like to display the time down to the millisecond as well as change the default for some other parts of the datetim...more >>

Is there a simple way to select a row which has been just inserted in a dataset binded to a datagrid?
Posted by Juan at 11/12/2004 6:14:10 AM
Thanks, Juan. ...more >>

Open Source C# Programmable Calculator
Posted by Eric Terrell at 11/12/2004 5:15:08 AM
Folks: I've posted the full source code to C# Programmable Calculator at my website: http://www.personalmicrocosms.com/html/cspcalc.html C# Programmable Calculator is a Reverse Polish Notation (RPN) calculator with custom buttons programmable in C#. Enjoy! Eric Bergman-Terrell ...more >>

Problem getting events from C# to VJ++
Posted by jve86 NO[at]SPAM lordbah.com at 11/12/2004 4:53:45 AM
We've been unable to get events working going from C# to VJ++. We think that the C# component is being exposed properly as a ConnectionPoint, and the Advise() from the VJ++ side seems to be working, because the delegate on the C# side has 1 item in its invocation list after the Advise(). However...more >>

windows controls
Posted by Michael at 11/12/2004 4:08:02 AM
I have a sudden problem with my VS net, in the toolbox, I don't see the form controls anymore, they just disappered I see only Crystal reports Data XML schema Dialog Editor Web Forms Components Windows Forms HTML Clipboard Ring and Reneral.. those are all empty too.. I don't know how i...more >>

Custom Web Control - attribute/property prefix
Posted by Bart.NET at 11/12/2004 3:56:02 AM
Hi, I want to prefix my attributes in a custom control. So like this: <x:Mycontrol x:id="22" x:name="SomeName" runat="server"/> Now I get a "The server tag is not well formed.". Do you know any solution? ...more >>

Question about Http Requests (HttpWebRequest)
Posted by alan_m_hughes NO[at]SPAM hotmail.com at 11/12/2004 2:45:42 AM
Hi, I am trying to write a class in C# that inherits from the HttpWebRequest class to allow me to do dynamic binding (late binding) of lower level methods. For example, I would like to be able to figure out how long it takes for the DNS resolution to take place. I assume that somewhere in t...more >>

How to use C++ dll with C#
Posted by Jurate at 11/12/2004 1:18:01 AM
I am new to .NET programming. I have a .dll written in C++ that I would like to use in C# program. Is it possible to do that and how? If I try to add with Add Reference, I can't. -- Jurate...more >>

Database development
Posted by Hemang Shah at 11/12/2004 1:12:11 AM
Hello I"m a seasonal Access developer. How steep is the learning curve to start developing database applications in c# ? Could you suggest me any good books which teaches the ropes of database development in C# ? Including making reports ? Thanks ...more >>

Enumerating DC
Posted by Hemang Shah at 11/12/2004 1:10:56 AM
Hello Could someone please point me to an example which demonstrates a c# application which will list all the DCs in a domain, so that the user can select which Domain Controller its selecting to read / update the active directory. Thank You ...more >>

MultiCastDelegate
Posted by MB at 11/12/2004 1:02:09 AM
Hi, I got following : ' This delegate is declared as a void, so the compiler automatically ' generates a new class, named CheckAndPrintDelegate, that inherits from ' System.MulticastDelegate from : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/ frlr...more >>

Static variable and constructor
Posted by Rene at 11/12/2004 12:46:53 AM
I jus realized that I can change the values of "static variables" and "instance variable" through the standard constructor This means that something like this will compile: public class SomeClass { public SomeClass() { abc++; // Instance Variable xyz++; // ...more >>

Internal interfaces?
Posted by Anders Borum at 11/12/2004 12:20:38 AM
Hello! I was wondering why we're allowed to define interfaces as internal, when all the members of the interface, when implemented in a class, are made public? I know that interfaces serve as contracts, but why wouldn't you be allowed to have internal contracts also, not necessarily exposing...more >>


DevelopmentNow Blog