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 thursday november 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

Have a problem with Database
Posted by liranby NO[at]SPAM hotmail.com at 11/11/2004 11:30:47 PM
Hi Everybody I am reading data from access to dataset and I don't know how to show it in a text box this.oleDbConnection1 .Open (); OleDbCommand cmd=this.oleDbConnection1 .CreateCommand (); cmd.CommandText ="SELECT * FROM Manufactor "; this.oleDbDataAdapterManufactor .SelectCommand =cmd ; ...more >>


Compressed Data transfer over Socket (Network Stream)
Posted by rawCoder at 11/11/2004 9:00:44 PM
Hi, Please correct me if I am wrong but according to my assumption .NET does not provide any out of the box solution for compression of the data over socket or a network stream. If so, what are the best alternatives for a high speed text compression library which is ideally ubiquitous and f...more >>

"no page to display" in MSDN after SP2
Posted by Dave Spencer at 11/11/2004 7:49:38 PM
Around about the time that I upgraded to XP SP2 my MSDN for Visual Studio.Net 2003 started displaying "no page to display" all the time. I found a few references to the problem on Google but no solutions. Any ideas? thanks Dave ...more >>

Merging data packets
Posted by Giu at 11/11/2004 7:37:09 PM
Hi ,sorry i'm a beginner and i need help. I have to merge a lot of binary packets into a file on hard drive. I get every packet from a network card with socket class in mydata variable in a separate thread. byte[] mydata=new Byte[512]; Please could anyone give me an example how to merge...more >>

Ask about iherite
Posted by Nguyen Thanh Danh at 11/11/2004 7:35:02 PM
This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C4C825.89C8F450 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable i want to inherit class Socket in System.Nets.Sockets, but when i use = this code: public class NewSocket ...more >>

About KeyPress method
Posted by Chaoxiang at 11/11/2004 7:30:02 PM
hello everyone, We are know that there is a KeyCode parameter in the Keypress method of VB6. the KeyCode can make us to change its value, for example, KeyCode=KeyCode + 10 etc. however, I can not use like this in the C#. so, how to realize the method like in the VB6. thank you....more >>

mailslot in csharp ?
Posted by vertigo at 11/11/2004 7:19:16 PM
Hello Can i use mailslot mechnism in C# ? I could find API for mailslot only for C/C++ for example: HANDLE CreateMailslot( LPCTSTR lpName, DWORD nMaxMessageSize, DWORD lReadTimeout, LPSECURITY_ATTRIBUTES lpSecurityAttributes ); Does it exists any way to create HANDLE, and use ...more >>

Validate IP
Posted by Dave at 11/11/2004 6:53:32 PM
Hello. Is there any method to validate if string contains valid IP address? I also need the method to valideta email address in string. Thank you. ...more >>



new to c# but not to programming
Posted by tjones at 11/11/2004 6:36:27 PM
Hi, I am guessing this is *THE* nntp newsgroup for C#? I was hoping someone could point me in the right direction. Id like to find employment in the IT industry as a programmer again. My background is a mix of programming and networking. I have fairly decent skills in C++, Java and ADA. I h...more >>

button shortcuts are not displayed!
Posted by VMI at 11/11/2004 4:51:09 PM
In the buttons in my windows form, I add the '&' to the name so it creates a key shortcut. The problem is that in the test machines (with only framework installed), the underlined letter is not displayed until after I press the Alt key. If I run the program through the IDE, it works fine, but ...more >>

how to pass in empty value for array argument?
Posted by Tee at 11/11/2004 4:42:46 PM
Hi, When I have a function like: private string xyz(string Text) I can call it without passing in a string with xyz("") or xyz(string.Empty) but if the paramater needed is an array like: private string xyz(string[] ArrayName) how do I call it without giving an array using the same idea...more >>

SOAP - howto?
Posted by mirek at 11/11/2004 4:03:45 PM
Hello, at first - I'm newbie in C#, I came from the world of PHP. In "my world" there is SOPA Client call wery simple and clear. Something like this: <?php $client = new SoapClient("http://services.xmethods.net/soap/delayed-quotes.wsdl"); // getQuote is taken from WSDL specification ...more >>

Programmatically Reboot Computer Using C#
Posted by Dex at 11/11/2004 3:59:49 PM
Hello, We're developing our own small installation application in C#. At the end of the installation, we need to reboot the computer. Does anyone know how to write some C# code to programmatically reboot the computer? (Note: The computer will be Win2k, WinXP, or Win2k3, nothing else.) Thanks...more >>

Resizing Drawing.Image then saving it
Posted by luanne.ng NO[at]SPAM gmail.com at 11/11/2004 3:47:34 PM
Hey, got a prob which is driving me nuts! I'm trying to resize the resolution of an image as well as it's pyhsical byte size. I've got: byte[] bytImage = null; System.Drawing.Image imgImage = null; System.Drawing.Image imgNewImage = null; using(FileStream fs = File.OpenRead(@"C:\Images...more >>

Problem exit winform
Posted by Mel Weaver at 11/11/2004 3:44:03 PM
I'm using Microsoft's application block updater and winform application. If you use the red X to close the application it closes properly. If you use file and then exit ( code - StopUpdater() and Application.Exit() in the event) the application seems to close but remains in the taskmanager. ...more >>

Intellisense in external projects
Posted by Ben at 11/11/2004 3:26:03 PM
I have code in project (a) that is similar to the following; ///summary /// Performs action Foo ///summary public void Foo() { // code } Now, anywhere inside project (a) when I invoke class.Foo I see intellisense that says 'Performs action Foo'. That's perfect! If I reference pro...more >>

WebDav Programming
Posted by Stan K at 11/11/2004 3:25:38 PM
I've been struggling with this for 4 days now. I have a requirement to write client site application that would search emails in Exchange server looking for given key in subject line. I found out that WebDev is on of the solutions to access Exchange server. I can get list of emails from inbox, b...more >>

Interesting problem: serializing in with MFC CArchive, reading out using C# BinaryReader
Posted by ratcharit NO[at]SPAM gmail.com at 11/11/2004 2:05:51 PM
I've serialized in various variables of various types (mainly CString, int, double) into an instantiated MFC CArchive class and saved it as a binary file. I am able to open the binary file and read out the individual variables fine with an MFC application. However I cannot read the binary fil...more >>

How can I convert the SQL data types to csharp system types..
Posted by Champika Nirosh at 11/11/2004 1:47:24 PM
Hi, I want to convert ms sql data types to c# system types.. as an example bit >>> System.Boolean money >>> System.decimal etc Thanks, Nirosh. ...more >>

Regex.Replace
Posted by UK at 11/11/2004 12:53:02 PM
I'm looking for a pattern, for replacing whole words as long as they are not preceded by "#(" ==> where # stands for any number eg: (P is to be replaced with "ReplaceText") Input: AVG(P/123(P)*PE/P+213(P)) Output: AVG(ReplaceText/123(P)*PE/ReplaceText+213(P)) Thanks, UK....more >>

Rookie -> Deployment Error - Debugging Services
Posted by david NO[at]SPAM guenthners.com at 11/11/2004 12:41:38 PM
Hi. I am new to .NET and have written my first application. The application is a client based form. Real simple, menu and a start / exit button. The start button fires of an event to perform some work. Whats interesting is I have gotten it into a "beta" version of code and wanted to peform s...more >>

Sending keystrokes to a console application
Posted by Wayne at 11/11/2004 12:27:09 PM
I have a console application (ssh2.exe) that requires keystrokes to be sent to it after activating. I have worked that it needs to be started in it own thread, but capturing the process and sending the keystrokes escapes me at the moment. Is there any material online that describes the proce...more >>

Cannot Insert or Add a String To a ComboBox
Posted by John Tyce at 11/11/2004 12:00:07 PM
This is a multi-part message in MIME format. ------=_NextPart_000_001F_01C4C7E5.FCD60860 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable When a button is clicked, a date is inserted or added into a combo box = like this : ComboBox.Items.Add(strin...more >>

Testing Where Checkbox was clicked
Posted by John Smith at 11/11/2004 11:36:56 AM
Hey folks, Does anyone know if it's possible for me to determine on a checkbox's checkedchanged event whether the actual box was clicked or if it's text was clicked? I know with DataGrids you can do that whole HitTestInfo stuff and determine if the rowheader was clicked or a cell...Can you ...more >>

Switch with or
Posted by Champika Nirosh at 11/11/2004 11:32:13 AM
Hi All, How can I do some thing like this in c#? switch (value) { case ("decimal" || "numeric"): { _Type = "decimal"; }break; } Thanks, Regards, Nirosh. ...more >>

"fill as you type" combobox
Posted by VMI at 11/11/2004 11:03:20 AM
How can I create a comboBox that will display the first item that begins with the group of letters I type? In my current combobox (it's a DropDownList), if I press the letters "S" and "A" consecutively, it'll display the first item that starts with "S" and then the first item that begins wit...more >>

Nested class in component
Posted by Edward Diener at 11/11/2004 10:51:27 AM
I want to create a nested class within my component class. The nested class will have public properties. Naturally I want those properties to be serialized just as those properties of my component are serialized. Should my nested class be: 1) A struct, with my component class holding a value v...more >>

Download file
Posted by Leon Habinsky at 11/11/2004 10:28:26 AM
Hi guys, I need to download a file over the Internet and I use the HttpWebRequest class to accomplish this task. My problem is that, I need to know if the file exists before issuing the GetResponse() call , because it throws WebException. I can of course handle the exception but it's not the ...more >>

i need to put a water mark in my pdf... and pdf viewer ocx... not Adobe ... please advise something
Posted by Sergiy Klokov at 11/11/2004 10:20:16 AM
i need to put a water mark in my pdf... and pdf viewer ocx... not Adobe ... please advise something ...more >>

fastest data structue
Posted by Loui Mercieca at 11/11/2004 9:58:27 AM
Hi, In my design i have a data structure used to store large amount of numbers ( in the range of lots of thousands ). Each element contains 3 items and the no of elements are dynamic.. of the form: [X1,Y1,Z1] [X2,Y2...more >>

Replacing ShellExecute
Posted by rgarf at 11/11/2004 9:12:02 AM
I want to be able to do the following from within my C# application (int)ShellExecute(NULL,"open","C:\\MyApp.exe",NULL,NULL,SW_SHOWNORMAL); What in C# replaces the ShellExecute command?...more >>

Fields
Posted by Mark at 11/11/2004 9:11:36 AM
Is there a field 'type' that differentiates between a method field and a class field, or are "method fields" and "class fields" as good as I'm going to get? Thanks in advance. Mark ...more >>

Memory leak when using COM library
Posted by Giovanni Boschi at 11/11/2004 9:03:04 AM
We have found a memory leak when using a COM library with a C# application. The leak appears only if the C# application is compiled with the /optimize flag. It goes away when the C# application is compiled with the /debug flag. The COM library is coded to fire asynchronous events, which are...more >>

performance using com dll witdh c#
Posted by Jesper Nilsson at 11/11/2004 8:58:02 AM
Hi, I have imported my com dll with Visual studios "Add reference", and then i'm using this code: private static MyComDll connectionKit = new MyComDll(); public static void CreateBatch(object hBatch) { ... connectionKit.ComCreateBatch(...) } public static void SendBatch(object ...more >>

Inheritance
Posted by Brian Keating EI9FXB at 11/11/2004 8:49:01 AM
Hello, given 3 classes a, b and c, all derived from each other class a{ protected void method() { //do something } } class b : a{ protected void override method() { //do something } } class c : b{ protected void override method() { //Is it possible to bypass the implemen...more >>

How do setup vs7 not to build everytime I start debug
Posted by R.A. at 11/11/2004 8:38:09 AM
Is there a way to setup visual studio so that it won't build every time I start the debugger? Thanks ...more >>

Registering devices for raw input
Posted by marcus NO[at]SPAM galaxies.se at 11/11/2004 8:23:40 AM
Hello! I'm trying to recognize input from my remote control so that I can use it to control various of my installed apps (winamp and vlc for instance). I've managed to hook things up so that I can receive WM_INPUT to my window even when it's not in focus. The problem is that I receive WM_INPU...more >>

show progress while copying big file
Posted by Randy at 11/11/2004 8:18:02 AM
Hi, is it possible to show the progress of a big file being copied e.g. in a "progressbar"? I tried to use file.copy - but this seems to make no sense :-( Thanks in advance, Randy ...more >>

SQLDMO.Backup and ProgressBar - help needed
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 11/11/2004 8:16:01 AM
Hi all I am posting this to check if anyone could help me. The problem still persists. I am beginner in C#. Thanks. Subject: SQLDMO.Backup and ProgressBar - help please From: "anonymous@discussions.microsoft.com" <anonymous@discussions.microsoft.com> Sent: 11/11/2004 5:52:10 AM ...more >>

References and multi developer projects
Posted by Claire at 11/11/2004 8:14:53 AM
Visual studio .net 2003. We have created 2 solutions that are related to and dependent on each other's class libraries. One of them is executed as required, the other one sits in the task bar. I'm working on the task bar application and my colleagues are developing the other. All of us nee...more >>

COM Interoperability
Posted by Ricardo Quintanilla at 11/11/2004 8:09:10 AM
Can a C# class expossed for COM interoperability, (it means be usable from a COM environment like visual basic 6) use an application configuration file (app.config) ? i tried but can not work !! Thanks -- Ricardo Quintanilla G....more >>

DataGrid controls
Posted by Bonj at 11/11/2004 7:30:01 AM
When handling the datagrid's OnEditCommand handler, the DataGridCommandEventArgs has an Item property, which has a collection of controls. One of these contains three subcontrols, the middle one (id 1 of 0, 1 and 2) of these subcontrols is the control (textbox) that contains the value I want...more >>

Using C++ in C#, best suggestion in this situation?
Posted by Andrew S. Giles at 11/11/2004 7:25:02 AM
I thought I would post here, as I am sure someone, somewhere has run into this problem, and might have a good solution for me. I am writing an applicaiton in C# that will accept data and then put it into an Excel spreadsheet. Easy, right? Well it is, until you have to get the data from an...more >>

problem with aspnet exiting
Posted by Bonj at 11/11/2004 7:19:02 AM
When trying to debug an ASP.NET project by placing a breakpoint in one of the functions in the codebehind, VS correctly stops at the breakpoint, and I can step through. But soon after, the process stops dead and can't be stepped through anymore (even though there is no error) - I'm guessing th...more >>

Scecurity Exception
Posted by adam NO[at]SPAM cu.net at 11/11/2004 7:15:34 AM
I am attempting to wrap some third party controls but I am recieving a runtime Security Exception when trying to run a test application. I am not sure what kinds of problems cause Security Exceptions therefore I am unsure how to remedy this problem. It is happening in the constructor. us...more >>

Can I write pocket PC bluetooth program by using C# ?
Posted by Alvin Lau at 11/11/2004 7:10:26 AM
Can I write pocket PC bluetooth program by using C# ? It seems so difficult to find the library? If it is possible , where can i find the reference of these kind of program ? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it...more >>

Web Service can't write to c:\windows\system32???
Posted by redneon at 11/11/2004 6:18:01 AM
I'm trying to write a web service which, when run, writes a line to a file on the web server. I've created one under IIS and the method I'm calling looks like this... [WebMethod] public string HelloWorld() { try { //Server.MapPath("testfile.txt"); StreamWriter fileStream = new Str...more >>

Resizing an image
Posted by bernardpace NO[at]SPAM yahoo.com at 11/11/2004 6:03:04 AM
Hi, I am loading a bmp image, and showing it in a picture box, but the image is big and is not fitting in the picture box. Is there a way to change the size of the image by coding. Thanks...more >>

SQLDMO.Backup and ProgressBar - help please
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 11/11/2004 5:52:10 AM
Hi all, continued from yesterday's posting... I still haven't found a solution to this issue. I put a breakpoint in private void SqlBackupPercentComplete(string message, int Percent) { progressBar1.Value = Percent; progressBar1.Update(); } and verified that the event does fire 10 tim...more >>

How can get the owner of my class ??
Posted by Sharon at 11/11/2004 5:34:03 AM
I’m writing a class that need to know the type or name of the class which created me. It can be done if the owner will pass his this, but I would like to do it without the owner intervention. Assuming the owner is a regular class (not a Windows class), is it possible ??? -- Regards S...more >>

Cleaning up NativeWindows
Posted by boilface NO[at]SPAM hotmail.com at 11/11/2004 5:33:44 AM
Do NativeWindows get destroyed when the app shuts down? While my app is running I can Spy++ and see my NativeWindow handle. After app shutdown it's no longer there. But this is confusing because if I Spy++ on the messages, and do a DestroyHandle, I see a WM_DESTROY, but do not see this mess...more >>

Form and C# ASP.NET page
Posted by msuk at 11/11/2004 4:25:02 AM
All, I have a .htm form that contains two text boxes and a submitt button that does a form post to a ASP.NET webform and I would like to know how I can extract the values entered in the text box using ASP.NET with C#. Thanks Msuk...more >>

WebRequest/WebResponse classes
Posted by Ziphyre at 11/11/2004 3:07:05 AM
Hi, I'm quite new in C# so it can be a silly question, but i can't figure how to make a req/resp and a second req with first response's informations... What I mean: I have no problem in sending a request to a web server, and getting response from it, reading headers, cookies, body etc......more >>

IIS programmatic administration question
Posted by Sýfýrýncý Murat at 11/11/2004 1:12:13 AM
Hi, In my recent posts, I asked something related with how to create web sites programmatically. With aid of some people (especially Kristofer) I have passed those steps. However, I still have some problems. After creating the site, I need to change some properties like host header, port et...more >>


DevelopmentNow Blog