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# > october 2005 > threads for monday october 17

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

www.liveboard.8my.com
Posted by thegreat_lover2003 NO[at]SPAM yahoo.com at 10/17/2005 11:14:55 PM
Hello Friend You are invited to join www.liveboard.8my.com There you can discuss / post on various topics like Poems, Love, Romance, Flirting, Quotes, Shayris, Movies, Music, Personal Problem Discussions, Computers & Internet (Hacking at security end), Animations, Business, Employment and l...more >>

System.Windows.Forms.Shortcut - is that all there is?
Posted by Benny Raymond at 10/17/2005 9:14:56 PM
I'd like to add a shortcut that isn't in this list... am i sol? or is it possible to add shortcuts like: SHIFT+UP thanks ~Benny...more >>

Simple minded one
Posted by web02 at 10/17/2005 9:04:48 PM
Hi y'all, I haven't had to program using many graphics, so . . . I want to do something for fun and I have to animate some simple shapes. I need some insight to perform this simple task to get me going. Just draw a rectangle centered on the left side of the screen and sequentially move ...more >>

LayoutKind.Explicit breaks service install
Posted by Dave at 10/17/2005 8:55:34 PM
I have a structure declared as: [StructLayout(LayoutKind.Explicit, Size=6)] private struct StandardFrame { [FieldOffset(0)] public byte [] frame; [FieldOffset(0)] public UInt32 integrityCheck; [FieldOffset(2)] public UInt32 sequenceNo; [FieldOffset(4)] public...more >>

Create image thumbnail without opening complete image
Posted by Mark R. Dawson at 10/17/2005 8:27:03 PM
Hi all, I have a directory full of images (most over 2MB in size) I was to show each image as a thumbnail on a form, however in order to create a thumbnail I have to open the complete image then scale it down. This is quite slow, since there is a lot of file IO going on, what I want to b...more >>

authenication
Posted by rj at 10/17/2005 7:44:32 PM
Hello, I'm running a webservice on a windows 2003 server. The software itself runs fine in unprotected mode. When I add a user and switch on to authentication mode, the service will still runs fine when called from a remote server. It failes when you connect from your local server. Not only...more >>

Adding rows to table not connected to database
Posted by Arek at 10/17/2005 7:43:39 PM
I need to have a simple table. User and application will add rows to it. I've used DataGrid but I can't add rows by application. I've got such code: DataRow row = dataTable.NewRow(); row.BeginEdit(); row.ItemArray.SetValue("0", 0); row.ItemArray.SetValue("0", 1); row....more >>

float.Parse works with a breakpoint, doesn't without.
Posted by c0uch at 10/17/2005 7:25:03 PM
the first and third methods are in a usercontrol object. txtValue is a TextBox the float.parse in the if statement on line 3 always works fine. the second float.parse in the third method is quirky: if the program just runs it will always break on that line, vc# 2005 beta2 shows txtValue.Text a...more >>



How2 Stop VS2005 Reformatting #region In Source Co
Posted by clintonG at 10/17/2005 7:03:51 PM
VS2005 2.0 Beta 2 noting I've posted (to no avail so far) to the somewhat deadzone at news://microsoft.public.vsnet.ide and am getting ants in my pants for some discussion about this issue. Using regions to manage source code in the IDE is very useful however I prefer to align the region tex...more >>

garbage collection
Posted by André at 10/17/2005 6:09:03 PM
Hello, I have a c# application that creates a timer to fire every minute using multithreading. On every minute it calls a Ping class that I made using sockets. It creates a new ping class then sets it to null when it’s done. I noticed every time this class gets created I see the memo...more >>

Password authentication
Posted by Roy Gourgi at 10/17/2005 5:35:03 PM
HI, Why is this password authentication not working as I am sending? I am trying to change the password and yet it is not working. What am I doing wrong? TIA Roy using System; public class Authenticator { private string Password; public bool IsPasswordCorrect(string...more >>

DLL Import Programatically?
Posted by wackyphill NO[at]SPAM yahoo.com at 10/17/2005 4:57:43 PM
I know how to use [DLLImport] when I know the path the DLL I'll be importing. But I have the following scenario: I have a series of DLL plugins that all have the exact same function signatures just different implementations of them. I'd like to programatically search a directory for them and...more >>

old topic: ordered name/value pair class?
Posted by jason at 10/17/2005 4:32:26 PM
this is an old topic, but i haven't found a clear answer. is there a name/value class (such as dictionary or hashtable) that is either ordered by FIFO, or sorted by key? either of those will work, so long as the iterative sequence is deterministic. i've tried hashtable, which isn't. and i read...more >>

Any free & good splash screen for download?
Posted by Alpha at 10/17/2005 4:22:07 PM
Hi, I have a window based application. At the start up of the application it finds a Access database file with the latest date in a desinated directory. It the updates some information to the SQL server. I would like to put up a splash screen in the background and a small messagebox( ca...more >>

Monitoring windows services
Posted by BC at 10/17/2005 2:51:27 PM
Hi all, I have a windows service (on client machine) that monitors a MSMQ queue (on server machine). When a new message is in the server queue, the client windows service will get the message and does some process. What I want to do now is create a small windows application that sits on the c...more >>

WinForms and IsDirty Implementation
Posted by Yosh at 10/17/2005 2:36:59 PM
I am about to implement the "IsDirty" design. The goal is to set the IsDirty property when changes are made to a windows form data. I will mark this property in the "ValueChanged" event of each control. Before I do, I was wondering if there were any suggestions on implementing this design? ...more >>

How do I validate a textbox.text is integer?
Posted by Alpha at 10/17/2005 2:36:08 PM
Hi, I have a window based applicaton. I want to make sure that the users enter integer numbers before I save it to the database. I know to code this in the textbox_validating event but I don't know what function to call to make sure the input are all integer nubmers. Thanks, Alpha...more >>

Nulls and Database objects
Posted by tshad at 10/17/2005 2:32:41 PM
I have people telling me that I should set up objects for my tables, but I am finding the Null problem makes that difficult. It isn't a big problem if you are not updating the table, but if you are - it is a real problem if you have Nullable fields. You can't always use a 0 or -1 to tell w...more >>

in Application_BeginRequest how do i cancel the request and send back a message?
Posted by Daniel at 10/17/2005 2:22:00 PM
in Application_BeginRequest how do i cancel the request and send back a message? ...more >>

Looking for book suggestions
Posted by Flack at 10/17/2005 1:55:09 PM
Hey guys, Are there any specific books that you can recommend to someone who is familiar and comfortable with C# and is looking to increase his knowledge of Java? I need to brush up on my Java (which I haven't touched in a long time, and only a little then) and am looking for a book that...more >>

Newbie -> PXA 255 I2C not working.
Posted by anbeyon NO[at]SPAM btinternet.com at 10/17/2005 1:16:09 PM
Hi All, I'm trying to use the PXA255 I2C controller and am having some problems making it work. I intend to use the controller, for the time being at least, from managed .NET code running on compact framework. I have written a c# class to read and write 32 bit numbers to Physical ...more >>

Call an method that is an eventhandler
Posted by jac at 10/17/2005 12:41:04 PM
Hae, I have a windows form with a ComboBox an other things. On that combobox I have an eventhandler on de selectedindexchanged. But somewhere in my code want to do excecute the same code that is writen in the eventhandler. Is it posible to call that eventhandler from the code (not from a ...more >>

C#, Hidden form and WndProc message
Posted by sshuangw NO[at]SPAM yahoo.com at 10/17/2005 12:29:33 PM
Hello: I am encountering a werid problem, in my application, When I have hidden my form ("myform.Visible = false"), WndProc doesn't catch messages sent to the app. When the form is not hidden, WndProc successfully catches the message. What could be the possible reasons for this issue? Coul...more >>

Encrypt and Decrypt in C#
Posted by Gidi at 10/17/2005 12:09:05 PM
Hi, Is there Buid-In fuction in C# that Encrypt and Decrypt strings? i have a textbox which i'm writing into file, and i want to encrypt it before writing, i'm not looking for something fancy, just for a simple Encryption and Decryption function. thanks, Gidi....more >>

IPCs and Remoting
Posted by Fred West at 10/17/2005 12:02:13 PM
From what I have read in the news group, it appears that .NET Remoting is the recommended approach for Inter-Process Communications in an all .NET solution. Remoting in version 2003 only provides the Tcp and http "channels". My two processes will reside on the same PC and I would like to us...more >>

return keyword - invalid error message
Posted by Raj at 10/17/2005 12:00:43 PM
Hi, I was getting an error in my program saying that return keyword must not be followed by an object expression. I was confused first because I was using return statement in a valid "if" statement. e.g. if(expression) return false; Later, I found that this error was due to a mistake in my ...more >>

int casting error when trying to retrieve value from comboBox
Posted by Dica at 10/17/2005 11:43:04 AM
i can't seem to find a way to cast the value in my comboBox to integer. i've tried the following: short iProjectID = Convert.ToInt16(cboProjects.SelectedValue); i keep getting a "Sepcified cast is not allowed" error. how can i do this? tks ...more >>

System.StackOverflowException
Posted by Amy at 10/17/2005 11:33:28 AM
I'm getting a System.StackOverflowException, and I can't see why. Here's the code that's throwing the exception. I don't see anyting that's recursive about it. Any help is appreciated (including help in debugging - I'm not sure what I'd put in a try or catch clause here): DataDealings sq...more >>

Installing C-Sharp services in Windows
Posted by Jeevan at 10/17/2005 11:27:47 AM
Hi, I am creating a Window Service in C-Sharp. The Window Service has a reference to an OCX file created in VC++. In OnStart method I have created an instance of the class, of the OCX file and called a method of the class. Compilation was successful. I created a Windows installer setup(.M...more >>

Width of Console.WriteLine("Size of {0} ", lnSize)
Posted by Roy Gourgi at 10/17/2005 11:12:19 AM
Hi, How would I set the width of lnSize to 6 in the statement Console.WriteLine("Size of {0} ", lnSize); Furthermore is there a way to combine these 3 statements into 1 Console.WriteLine(); Console.WriteLine(); Console.WriteLine(); TIA Roy ...more >>

How to get number of pages for printing...?
Posted by Tim at 10/17/2005 11:09:23 AM
Hi, I am creating my own method for printing. I am using PrintDocument and cycling through the data and creating new pages as neccessary. My question is, how can I know that total number of pages so that I can put "Page 1 of 5" on the first page and also I would know when to draw the rep...more >>

Using math operator with generics
Posted by Marco Segurini at 10/17/2005 10:55:57 AM
Hi, The following code shows my problem: using System; using System.Collections.Generic; using System.Text; .... namespace ConsoleApplication1 { static class MyOp { public static T Sub<T>(T item1, T item2) where T : struct { return item1...more >>

Unregistering a DOTNET Dll
Posted by GautamKumar at 10/17/2005 10:52:13 AM
Hi Everybody, Plzz tell me how to unregister a DOTNET Dll using "REGSVCS" from command line i tried like this regsvcs /u <fullpath of .dll>[with double Qoutes and Single Qoutes] but all went into Vain .it shows errors Plzz give me an example on how to perform this & how to write command....more >>

Licensing and Crystal Reports
Posted by Gidi at 10/17/2005 10:47:02 AM
Hi, I'm just about to finish my windows application program, and i was just about to start using crystal reports for printing documents, and my friend told me that if i'm going to use crystal reports in my program it will make the customers to buy different license for Crystal reports, is t...more >>

resources.GetString Helpppppppppppppppp
Posted by perspolis at 10/17/2005 10:41:24 AM
Hi My application worked well,but something wrong with it.. I don't know. I can't add any form components to it anymore. resource.GetString("[item].Text") return null but ths [item].Text exist in ..resx file.?????.. ...more >>

Help regarding assemblies
Posted by Max at 10/17/2005 10:32:10 AM
Hi, I would like to be able to load an assembly file at runtime which will do some work. When the work is done I would like the main application to be informed so that the assembly can be unloaded. How can I do this using delegates and events? ...more >>

Intercepting navigation commands in AxWebBrowser control
Posted by igarrison NO[at]SPAM hunter.com at 10/17/2005 10:29:37 AM
I'm working on an application for browsing encrypted files (HTML and PDF mostly)on a DVD. My plan is to decrypt the files to memory and stream them to the AxWebBrowser component which should be able to display them at that point. However, I haven't been able to find a way to intercept the navi...more >>

Compiling CLR to a .exe
Posted by Greg Smith at 10/17/2005 10:24:18 AM
I have some users who are superstitious of all things Microsoft. They don't want to install the framework on their PCs. Are there any tools out there to compile C# to a stand-alone EXE? Any help is greatly appreciated. ...more >>

DataGrid columns don't appear
Posted by Michael at 10/17/2005 9:57:02 AM
I want to have a table in my application where I can put the results of the comparison my application does to two files. (I don't use any databases) When I put the dataGrid on the Form and I go to the tableStyles Collection and try to add members nothing appears on the table on the form.. the...more >>

checkedlistbox
Posted by Hrvoje Voda at 10/17/2005 9:55:34 AM
I can't resolve a problem how to disable changing the values of a checkedlistbox? I want to be able to select a text from listbox, but not be able to change it's value. So, if the selected item is checked it should stay checked, if not it should stay unchecked. Hrcko ...more >>

Read a compound document
Posted by Polo at 10/17/2005 9:47:21 AM
Hi, We developped an application that save files as a compound document. Now we developp a new version in net and we would like to import old file format. What is the best way. A sample or a link is welcome Thank's in advance Polo ...more >>

DateTime display in a datagrid?
Posted by Andrew S. Giles at 10/17/2005 9:41:04 AM
Hello, I am importing a flat text file, and putting it into a datagrid for display on a form. Currently the users have their dates and times seperated. I have two fields, therefore in the datatable feeding the datagrid control. Both are of the DateTime Type. How do I get the time fiel...more >>

Event for Datagrid sorting?
Posted by PJHORNSA at 10/17/2005 9:39:29 AM
Hi I just want to know if there is a event for the datagrid's sorting in C#? I am developing a windows application in Visual Studio 2003. Thanx in advance for any help! Paul ...more >>

Date and time of compilation into string.
Posted by Jesper at 10/17/2005 9:35:03 AM
Hi, In c++ ( I do no longer remember exactly how) I used some compiler predefined macro to insert the date and time of compilation into a string. How is this done in c# In c++ it could have looked something like this wchar_t *ptr= __DATE__;...more >>

extend class and implement interface
Posted by farseer at 10/17/2005 8:15:38 AM
Hi, is it possible to both extend a class and implement an interface in C#? i am having a hard time figuring this out. i would like to do something like this: class MyClass extends MyBaseClass implements IBehavior1,IBehavior2 how can i do this? ...more >>

Showing form without activation...
Posted by sandy_pt_in at 10/17/2005 7:57:43 AM
Hi, I have modal form which I am showing with some fading effect... (it is like balloon that comes when you receive a mail in the outlook.) But when I show this form, Owner form looses focus. I searched across net & I came across ShowWindow API, It seems working for me ... but the fading eff...more >>

Listening to more than one network stream
Posted by simonrigby_uk NO[at]SPAM hotmail.com at 10/17/2005 7:57:04 AM
Hi all, Sorry if this is the incorrect group but I couldn't see anything directly relevant. Can someone confirm for me what happens when two network streams are sent to an application at the same time. My scenario is a small server application that listens on a particular TCP port. I am ...more >>

Loading Form Beofre Loading the MainForm
Posted by Gidi at 10/17/2005 7:28:01 AM
Hi, I'm writing a windows application and i need to check if a certain file exsits before i'm loading my MainForm. Incase the file doesn't exsit, i want to load a different form (without loading my MainForm) and after the user pressed the ok button and the file was created then to load my ...more >>

exporting data in excel to C# dataset
Posted by Mike P at 10/17/2005 6:49:31 AM
How do you go about exporting data in excel to a C# dataset? Any help would be really appreciated. Cheers, Mike *** Sent via Developersdex http://www.developersdex.com ***...more >>

Help regarding thread procedure.
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 10/17/2005 6:05:03 AM
Hi all i am having application in c#. i want to add thread in this application. My problem is i don't know how to pass parameter to thread procedure. Can someone tell me. thanks in advance. ...more >>

ushort to byte[]
Posted by Dirk Reske at 10/17/2005 4:46:27 AM
Hello, I have: ushort num = 0x0017; how do I convert this to a byte array? when I try BitConverter.GetBytes(num); I get {17,00} I think I have to get {00,17}... *** Sent via Developersdex http://www.developersdex.com ***...more >>

Datagrid Sorting Problem
Posted by PJHORNSA at 10/17/2005 12:48:11 AM
Hi, I am stuck on a problem with the datagrid control in Visual Studio 2003, using C#. I have a main form with a datagrid, then a search screen that filters the dataset from the grid. Well on the search screen I get the current selected record's ID with this code: BindingManagerBase ...more >>

How to handle
Posted by windsurfing_stew NO[at]SPAM yahoo.com.au at 10/17/2005 12:45:13 AM
Consider the following code: public void MyMethod(Object myObject) { myObject = anotherObject; } After this method is called myObject will still contain a reference to it's original object rather than anotherObject. Eg, MyMethod(myObject); MessageBox.Show(myObject.GetType.ToString()...more >>

Read from any URL into Stream
Posted by Just D. at 10/17/2005 12:19:28 AM
All! How should we read any file from some URL? I found in MSDN the method URLDownloadToFile function, but it's for C#. There is another example to read but it doesn't work if the page is more complicated and includes not only HTML code but JAVA scripts, etc. Strange, but it doesn't work fo...more >>

SqlDataAdapter, DataSet best way
Posted by vooose at 10/17/2005 12:11:24 AM
Consider a server executing "SELECT * FROM Settings WHERE UserID=@UserID" which is loaded into a DataSet and then we use dataSet.GetXML() to send this to the requesting client. The client converts this back into a DataSet and then we use a DataGrid control to show the data. How does one ...more >>

Sorting an array
Posted by Roy Gourgi at 10/17/2005 12:00:00 AM
Hi, How would I sort an array? TIA Roy ...more >>

Change Thread pool limit
Posted by objectref at 10/17/2005 12:00:00 AM
Hi to all, can anyone tells me (or point to me a direction or a link) about how i can change the ThreadPool limit from 25 to something else ? Thanks a lot, objectref ...more >>

sorting listview items
Posted by Jason Huang at 10/17/2005 12:00:00 AM
Hi, I have a ListView which has headers Serial, CustNo, CustName. What I want to do is whenever I click the headers item, then the whole column will be sorted. Thanks for help. Jason ...more >>

Is it possible to find out the installed application list using c#?
Posted by B Deepak at 10/17/2005 12:00:00 AM
Hi, Similar to Add/Remove functionality available in control panel to find out the current installed application list, can we find out this list programmatically or is there any batch command which does the needful? Thanks, Deepak ...more >>

GetHashCode
Posted by perspolis at 10/17/2005 12:00:00 AM
Hi I have a question about GetHashCode for strings. Is it unique for all string in diffrent OS? for example "test".GetHashCode () is the same for all of OS? thanks in advance ...more >>

Why wont this SQL query work with an oledbdatareader?
Posted by Grant at 10/17/2005 12:00:00 AM
Why wont this SQL query work? I am connecting to an Access database and when using 'mySelectQuery1' it returns a datareader but when using 'mySelectQuery2' it returns nothing...I can run this query in Access and it returns me the rows Im after. I am trying to bind the datareader to a drop do...more >>

Large amount VB code convert into C.Sharp
Posted by ABC at 10/17/2005 12:00:00 AM
I have a very large amount VB code convert into C Sharp. I just complete it use tools. But it still have some codes errors. There are object to datatype problems. I need to edit many files to convert to as like as int.parse(obj), bool.parse(obj)..... Is there any good methods force C# c...more >>

Collections
Posted by Islamegy® at 10/17/2005 12:00:00 AM
In my C# web Application... I mapped each Datatable table to Strongly typed CustomCollection inherited from CollectionBase to follow N-Tier model instead of Datatables and Dataset.. So i Use DataReader & ExcuteNonQuery on Transaction with Database for best preformance but I'm unable to save...more >>

DataGrid and ArrayList binding
Posted by kids_pro at 10/17/2005 12:00:00 AM
I created a simple Person class as following: class Person{ private string fname; private string lname; public Person(string fname, string lname){ this.fname = fname; this.lname = lname; } public string FirstName{ get{return this.fname;} set{this.fname = value;} } ...more >>

double.Parse ignores NumberDecimalSeparator
Posted by Marco at 10/17/2005 12:00:00 AM
Hi all, in my system NumberDecimalSeparator is set to ',' so why doing: double toDo = double.Parse(dr["toDo"].ToString())); toDo is something like 123.0 ?!?!?! Thanks in advance :-)...more >>


DevelopmentNow Blog