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# > march 2007 > threads for friday march 2

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

Twelve Proofs that Muhammad is a True Prophet
Posted by lovelydiab NO[at]SPAM hotmail.com at 3/2/2007 9:18:33 PM
My brothers and sisters everywhere! With this essay, I am not singling out the adherents of Islam - to which I ascribe - but rather I am writing this essay to every man and woman throughout the whole world. I ask Allah that He facilitates tat this essay reaches every ear, falls under the sight...more >>


possible to skip code from sub functions?
Posted by not_a_commie at 3/2/2007 9:17:53 PM
Is it (even remotely possible) to do the following: class jump { void A { go out of this function then skip to C } void B { do something bad } void C { do nothing } } main () { jump = new jump jump.A jump.B // this line of code got skipped jump.C } I think I could make it happen us...more >>

Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on
Posted by Joe at 3/2/2007 7:49:10 PM
I've been getting this message at all different times since a few days ago. I understand the message but not why I get it. I don't have any other threads. This happens when closing dialog boxes, doing a drag and drop and a few other things which I don't remember right now. It only happens ...more >>

Opinion wanted
Posted by Jack White at 3/2/2007 6:23:42 PM
Hi there, Is there a general approach for preventing users from selecting a menu item in an SDI or MDI application whenever the current field on your form is invalid (assuuming the app consists of a data entry form). In my case, I'm working with a "DataGridView" which occupies the entire ch...more >>

How do I allow an end user make modifications to a rdl that I created using Report Designer
Posted by Rob Dob at 3/2/2007 6:09:02 PM
Hi, I have several reports ( .rdl) that I created using report designer, how can I let the end user make modifications to the text in some of these reports. As I am unable to use Report Builder to modify reports ( .rdl ) created with Report designer, what are my options. is there a way I c...more >>

How to avoid NameSpace repetetion, in inheritance in different files.
Posted by Sugandh Jain at 3/2/2007 6:04:25 PM
Hi, The problem to which I am looking for the solution is as under. I have a abstract class and there are multiple classes inherting it to implement some method(s). All the class files, are in different physical files. The common using directives are required to be written in each and ...more >>

Copy OLE object from Clipboard
Posted by Ludwig Wittgenstein at 3/2/2007 5:47:55 PM
Hi, all. Here's the scenario: I embedd a .txt file in Word as OLE object, then I copy it (manually), so now it's on the clipboard. How do I programatically (in C#) get that OLE object file from the clipboard and dump it into an actual text file on the file system? All I would like to know i...more >>

How do I control file version numbers
Posted by Jim H at 3/2/2007 4:52:14 PM
My AssemblyInfo file has [assembly: AssemblyVersion("1.0.*")] My file version is now 1.0.2594.35196 How do I control this. Where is this stored? What is the difference between build and revision? Thanks in advance, jim ...more >>



Invoking Win32 SendMessge
Posted by Zytan at 3/2/2007 4:31:28 PM
Most code on the net is wrong. This is SendMessage(): LRESULT SendMessage(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); All of those parameters are 32/64-bit in size depending on the compiler, except for UINT which is a C int, which is always 32-bit, even on a 64-bit machine, AFAIK. M...more >>

String lists resource editor for localization. Advice please
Posted by Claire at 3/2/2007 4:06:06 PM
Im writing a small application to allow some none techy people create localized string resources for our main application. So we can reuse modules each one has its own .resx resource file. So my string resource editor needs to be able to work on a project containing several source files at onc...more >>

how do I make a sql database win auth or SQL authentication?
Posted by roger_27 at 3/2/2007 3:26:19 PM
hey, I need to make an app that can accept sql authentication or windows authentication. how do I do that?? isnt it either or? how do I switch between the two?? thanks Roger...more >>

convert (single) char to string
Posted by Zytan at 3/2/2007 3:18:05 PM
I am surprised that a single character string is not auto-created from a single char. It is hard to find information on converting a char into a string, since most people ask how to convert char[] to string. I have a function that accepts a string, and I wish to access this function for each ch...more >>

MDB file and Primary Keys
Posted by Chris at 3/2/2007 3:18:04 PM
When I use the ADD button on the navigator, it creates a primary key based on the dataset, lets say 9. Whne I go to save the record, Access won't take it because it it not the next key available. Even though 9 does not have a record associated with it now, it once did and was deleted. I think...more >>

Does RichTextBox need "\r\n"? Is "\n" good enough?
Posted by Zytan at 3/2/2007 2:21:03 PM
In VB, you use ControlChars.CrLf (or better, ControlChars.NewLine). In C/C++, we are used to using merely "\n" (or at least I am). It appears "\n" is good enough for RichTextBoxes. Does it matter? I am so used to typing "\n" that I don't think this habit will change anyday soon. Zytan ...more >>

Free FFT implementations
Posted by Jon Harrop at 3/2/2007 2:12:11 PM
Are there any free FFT implementations for .NET that work for arbitrary "n"? -- Dr Jon D Harrop, Flying Frog Consultancy OCaml for Scientists http://www.ffconsultancy.com/products/ocaml_for_scientists/index.html?usenet...more >>

image
Posted by Hrvoje Voda at 3/2/2007 1:41:49 PM
I'm using picturebox. When I wnat to clear image from it, I call picBox.Image = null;. But it doesn't work. Hrcko ...more >>

maintain state of application for each user
Posted by Steve Richter at 3/2/2007 1:26:09 PM
I would like store and recall user settings and window state for each user of my application. By state I mean recalling at application start the location in a list view the app was at the last time it exited. If I was maintaining this state regardless of user I would store it as an xml docum...more >>

EventLog class / Windows event logs
Posted by Zytan at 3/2/2007 12:56:41 PM
What's a Window event log? EventLog documentation basically assumes the reader knows what it is. It says the following: http://msdn2.microsoft.com/en-us/library/system.diagnostics.eventlog.aspx "EventLog lets you access or customize Windows event logs, which record information about import...more >>

assigning, declaring and accessing dynamic variable
Posted by mamun at 3/2/2007 12:27:39 PM
Hi all, I am trying to create variables dynamically. This is needed because the user interface can have ten different textboxes with name as txt1, txt2 and so on. I would like to get values of all and then run in single transaction. for (int i = 1; i <= 10; i++) { (qry + i)= "inser...more >>

Discrepancy between Math.Round and ToString( "F" ) method
Posted by Zeng at 3/2/2007 12:14:46 PM
Math.Round has good behavior as following: Math.Round(3.45, 1); //Returns 3.4. The last '5' is thrown away because 4 is even Math.Round(3.75, 1); //Returns 3.8. The last '5' is used because '7' is odd However, if format.NumberDecimalDigits is 1 decimal d = 3.45M; d.ToString( "F", forma...more >>

Blocking Windows Port using C#
Posted by VeryMaqbool at 3/2/2007 12:09:32 PM
Does anyone know of a way, using C#, to programmatically block a Windows port? Futhermore I want to know how can we map processes to the ports opened on a computer using C# and without using existing softwares... can anyone suggest some techniques... Regards... Very. ...more >>

Passing arrays to C# from VB6
Posted by Luke at 3/2/2007 11:08:50 AM
Hi folks, newbie here of course. I have a COM Interoperable assembly written in C#. One of the exposed classes has a method which takes an array of int's as one of the parameters. If I call this function from a VB6 program, how do I pass the array parameter? Thanks in advance for the reply....more >>

Dtatgrid reorders columns on Databind
Posted by LQQKIN at 3/2/2007 10:11:27 AM
Hi everyone. I encountered a weirdest problem. Every time i databaind a dataset to the grid it reorders the columns. Any ideas???? Thanks a lot! ...more >>

Designer Controls With ArrayList type property.
Posted by Alvaro E. Gonzalez V. at 3/2/2007 10:00:58 AM
Hi; I'm doing a UserControl and add a ArrayList type property. But this property is not set correctly in design time from Designer. What is the better way to do it? Thanks Alvaro....more >>

Web Site Administration Tool on production server
Posted by Michael at 3/2/2007 9:23:23 AM
Hi, I have a site I built and have been using the Web Site Administration Tool to administer my users on my development machine. But now I have moved my site onto my production server with a production SQL server. How can I go in and administer the users on that machine? Thanks, Michae...more >>

Case Insensitive string comparison
Posted by anonieko NO[at]SPAM hotmail.com at 3/2/2007 9:16:48 AM
Is this a long way to compare strings ignoring the case? if ( string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0 ) { // etc. } ...more >>

modify designer generated c'tor that calls InitializeComponent?
Posted by Zytan at 3/2/2007 9:06:49 AM
When you create a Windows app, you get a two files pre-made each with a partial class of the same class, and you also get a c'tor of your class which calls InitializeComponent(). I guess this is cool, since VB hides this, I believe. I am sure it is ok for me to populate the c'tor with more of...more >>

Generics/Constructor
Posted by JimHeavey at 3/2/2007 9:05:15 AM
I am trying to follow along with an example about how to create a generic collection which is "Type" drivern (the article is here http://www.ftponline.com/vsm/2007_02/magazine/features/dfergus/page4.aspx - I think you have to have an account to actually see the article...but anyway). In the ...more >>

Safely Raising Events in Multithreaded app.
Posted by smkramer072fdasfasdf at 3/2/2007 8:40:08 AM
This questions is in reference to the article on Using Events in the C# Programmers Reference (http://msdn2.microsoft.com/en-us/library/ms173168.aspx). Under the Rasing Events section it says in order to avoid a race condition copy the event to a temporary variable before invoking it. That...more >>

Setting enum values in a web service
Posted by Tom Jones at 3/2/2007 8:19:59 AM
I am attempting to consume a web service with an enum parameter and not sure how to set a value for it. It looks as follows: [System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.30")] [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Nam...more >>

RTF log file
Posted by Zytan at 3/2/2007 7:59:08 AM
I need a log file, and RTF is good since color formatting can help find the interesting parts. I want something that I can code quick. Would the easiest way be to write to a hidden RichTextBox, grab the RTF code from it, and write it to a file on shut down? Likely, I'll have an option to view ...more >>

Find the encoding of an XML char array (or stream) stored in memory
Posted by Martin Z at 3/2/2007 6:40:54 AM
Hi, I have an application that involves sending a lot of XML data to various places. The problem is that once in a while, I just want the XML document as a string (for example, sending to a typed dataset tableadaptor). In that case, I have a problem: what encoding do I use to conver the byt...more >>

C# Excel question
Posted by BrianDH at 3/2/2007 6:06:08 AM
Hi Does anyone know of a way (via code behind) to pull a single sheet out of a Excel workbook and convert it to a stand alone html document? Thanks Brian ...more >>

C# ActiveX Control won't load on some machines, does on others
Posted by Artie at 3/2/2007 6:03:57 AM
Hi, Our team have a web project which includes some C# ActiveX DLLs. On some developers' PCs, the code which calls methods in the ActiveX dll is succesful - no exceptions. On other PCs, the ActiveX control doesn't even seem to get loaded. (On the failing machines, if we try and debug down...more >>

Newbie question please help
Posted by jed NO[at]SPAM auto-soft.co.za at 3/2/2007 5:32:09 AM
I have a 2 windows forms the first form needs to retrieve a numeric value in a textbox on the second form.The second form is a calculater and i need to send the calculated value in the textbox back to form1 when i click the calculate key.Is there a quick way to do this.Thanks ...more >>

How to call functions in another namespace from a dll
Posted by Hans - DiaGraphIT - at 3/2/2007 5:31:03 AM
Hi! I have a WinFrom solution with variouse forms and classes. Lets name the namespace to <MyTest01>. I've developed a dll <statistics>. The dll <statistics> needs to reach some of the classes/functions in <MyTest01>. An example: <MyTest01> holds a class called <clsCalculations>. t...more >>

Regular Expressions question
Posted by Monica at 3/2/2007 2:23:28 AM
hi, How can I verify a valid phone number contain 0-9 and characters ( ) - and whitespace. for example: (416) 424-1234 or 416- 424-1234 or 4164241234 how can i use from Regular Expressions (C#)? thank you, monica ...more >>

Official Burt Young Website Launch!
Posted by steffywrites NO[at]SPAM gmail.com at 3/2/2007 2:17:09 AM
The official website of Burt Young has been launched. Burt Young, the Academy Award nominated actor and maverick artist, has launched a wonderful display of paintings. The website is a literal library describing milestones, film and art. He can be browsed at: http://burtyoungartandfilm.com/ ...more >>

UserName of the use who last modified a file in Windows
Posted by mazen.s.m NO[at]SPAM googlemail.com at 3/2/2007 2:11:50 AM
I have been trying to find a way to get the Domain and UserName of the user that last modified a file. I know how to get the owner of the file via WMI or Win32, but I can't find a way to get the name of the user that last modified it. Is this possible? I am using C#. Thanks. ...more >>

Is is possible to call a C# user interface asociated to a lib file so as to be called by a C console application?
Posted by pableratz at 3/2/2007 2:07:03 AM
I have programmed a multi thread C control application, and now I want to add User interface functionality to my main thread. I would like to know if i could generate a library from a C# Screen and call it from my main thread. Thanks for your attention ...more >>

Can't connect to SQL 2005
Posted by Bob at 3/2/2007 1:04:01 AM
Hello folks, I am tring to create a connection to a SQL Server 2005 database but cannot. I get an error messahe that SQL Server does not exist or access denied I have tried Windows Authentication and I have tried SQL Server Authentication. I have tried numerous connection strings...so...more >>

Need to test my TcpListener. What apps are sending data to tcp ports...
Posted by Charlie NO[at]SPAM CBFC at 3/2/2007 12:07:46 AM
Hi: I need a way to test my TcpListner, but not sure what applications are sending data to tcp ports. How about Email or Instant Messenger? If they are tcp, what ports are they sending data to? Any other suggestions? Also, what port do Http responses target on client machine before bein...more >>

MetaData in .txt and .doc
Posted by Ivo at 3/2/2007 12:00:00 AM
Hi, I need help with creating .txt and .doc files form c#. I know how to create these files so that they contain the text I want, but besides that text, I also need to write metadata (hope that the term is right) to these files. That means that I have a string 'title', a string 'author' and a...more >>

Add quote
Posted by Alan T at 3/2/2007 12:00:00 AM
I want to add a double quote to a string: "John" Why it should work this way: String name = "John"; String myName = @"""" + name + @""""; But not String myName = @""" + name + @"""; As I added a @, I think just one double quote is enough. ...more >>

Programming Office with CSharp
Posted by Alan T at 3/2/2007 12:00:00 AM
I recently programming Word application/document in CSharp but got several problem. Any pointer to get started? ...more >>

Word application quit
Posted by Alan T at 3/2/2007 12:00:00 AM
private Interop.Word.Application _wordApp; What is the differences betwenn _wordApp.Quit(...) and _wordApp.Application.Quit(...) ? ...more >>

Restricting Generic type parameter T to int, uint, short
Posted by KK at 3/2/2007 12:00:00 AM
Dear All I'm planning to develop a class for my project which can operate on only few known data types For example : public class MyOperations<T> { public T[] ChangeBounds() { } } Here possible types for T are int, uint, short, float. How can restrict...more >>


DevelopmentNow Blog