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 2004 > threads for sunday march 28

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

vs7
Posted by Dave at 3/28/2004 11:41:18 PM
Hi, I check my computer from viruses and my antivirus application make some changes in the registry and now when i try to create new project (c#) in vs-7 i get error massage saying class factory error why??? I reinstal visual studio 7 but it didnt help me!!! What can i do??? can i fix it cha...more >>


XmlTextWriter does not write over network
Posted by metehanIT NO[at]SPAM Hotmail.com at 3/28/2004 11:38:08 PM
I am trying to write a file to network box with below code but getting error THis code XmlTextWriter writer = new XmlTextWriter("\\155.162.166.16\\d\\InetPub\\wwwroot\\site.help.com\\Folder\\test.htm",null); Produce "C:\\155.162.166.16\\d\\InetPub\\wwwroot\\site.help.com\\Folder\\test.htm". t...more >>

Compilation
Posted by Dave at 3/28/2004 11:27:23 PM
Hi, I wrote a c# application (dll) and i use it in my project, but every time i compile and run my project it take a long time to start running, i guss it becuse the jits compilers. How can i config my c# application that after i first compile it it will not compile again in run time (on the ...more >>

Unchecked context and overflow
Posted by patrick NO[at]SPAM sixulon.dk at 3/28/2004 10:59:42 PM
Hello! I think I misunderstood something here. If for example I have a byte, and I know it's going to overflow, how do I make sure, that the compiler doesn't give me an error? I've done this in an unchecked context, so shouldn't ignore an, for example, obvious overflow. For example: void M...more >>

Yahoo toolbar
Posted by Jim at 3/28/2004 10:10:01 PM
Can I use C# to make something like yahoo toolbar? How can I add a toolbar for IE? Thank you Jim ...more >>

return an array's 2nd dimention as a single dimention array
Posted by Alex Leduc at 3/28/2004 10:09:22 PM
I'm trying to return an array's 2nd dimention as a single dimention array private char[] array2d = new char[100, 5001]; public char[] ret(i) { return[i]; } I get a bunch of error for my return statement. -Cannot implicitly convert ty 'char[*,*]' to char[]' -Wrong number of indices in...more >>

Listview columnwidth
Posted by Rikki at 3/28/2004 9:09:34 PM
Hi Is there a way to program a Listview control to automatically adjust its columnwidths so it fits the contents of the columns? I have two columns in a listview, but havent found out how to do this yet. thanks. ...more >>

Two froms and one procedure
Posted by rozrabiaka at 3/28/2004 7:50:29 PM
Hi everybody! I have two forms in C#. In the main form I have procedure that i need to run from second form when I click button. How I do it? Thanks for help, gregory....more >>



function call from textbox
Posted by italianomila2 NO[at]SPAM yahoo.com at 3/28/2004 7:10:20 PM
Why won't this work? in the .aspx file: <asp:TextBox id="name1" runat="server" Text='<%# GetValue(1)%>'></asp:TextBox> in the codebehind file: public string GetValue( int index ) { return "dog"; } So, the text "dog" should appear in the textbox...but it doesn't. It is ju...more >>

Thread safety of reference affectation & security issue
Posted by Joannes Vermorel at 3/28/2004 7:05:52 PM
I would like to know if the here below 'MyClass' is threadsafe. In other word, is reference affectation an "atomic operation" for the CLR ? class MyClass { object obj = null; public void Set(object obj) { this.obj = obj; } public object Get() { return obj; } } If reference af...more >>

newbie: Assembly.Load
Posted by Dan at 3/28/2004 5:10:54 PM
I have a strongly-named assembly in a DLL installed into the GAC. Let's say that the DLL is named Test.Some.dll according to its project default namespace, Test.Some. Of course the assembly has a public key and a version number. I'd like to programmatically load this assembly or one of its types,...more >>

Detect whether running on Remote Desktop?
Posted by Michael A. Covington at 3/28/2004 4:49:48 PM
How can a C# application detect whether it is running on a Remote Desktop vs. the computer's own desktop? I realize that, for good reasons, this information is normally concealed from the program! ...more >>

How can I send a popup to the current page?
Posted by Jim at 3/28/2004 4:08:46 PM
I have a page that will have seveal links on it to pop up one of a number of different financial tools. I'd like for the financial tools to come up in their own window. Preferably, I'd even like to keep them in the foreground until the user hit's the popups "Close" button (my 401(K) site at Va...more >>

Mobile phone game
Posted by Mohammed at 3/28/2004 2:46:07 PM
Hi Can any body help me? I am a new C# programmer, and I`m trying to develop a mobile phone game for Nokia mobile phones And I would like to ask if C# supports making mobile phone games or not, instead of Java thanks every body...more >>

fwrite() equivalent
Posted by Chris at 3/28/2004 1:55:10 PM
Hi, how can you write a 'myobject' to a file with one command, as in C : struct MyStruct { char m_name[20]; int m_age; } myS; myS.m_age = 20; strcpy(myS.m_name, "Bob"); FILE* fp = fopen("test.txt", "w"); fwrite(&myS, sizeof(struct M...more >>

Multiple Instances of an App
Posted by Susan at 3/28/2004 12:21:07 PM
I am running an application in the background. I need to be able to see when another instance of that app is opened, and close the first instance of the app. Anyone know how to do that? I'd appreciate any information Thanks Susan...more >>

Calling GetUserName
Posted by Philip Carnstam at 3/28/2004 11:59:14 AM
Hi, This is driving me nuts... How do I call the advapi32 function GetUserName. Syntax: bool GetUserName(String User, ref int Sz); This returns the size of the would be returned string User, but when I try to set User as a reference I get an execution error. Why? All I can find in MSDN is ...more >>

Any Suggestions ?
Posted by Oren at 3/28/2004 11:56:08 AM
Hi again Well I think I have made a mistake with the question. let me ask it again please I have a Windows Application in C# with Textbox (Anchor Top Left, Dock Bottom) Splitter (Dock Bottom) and RichTextBox (Anchor Top Left, Dock Fill). I can't change the Anchor - It'll change my Dock settings...more >>

When will generics etc. be implemented
Posted by Jonathan Nix at 3/28/2004 11:26:05 AM
Anyone care to comment knowledge on any forthcoming language technologies such as generics? This is something that I simply cannot live without. I'm curious if you know a better way, but currently I'm stuck using ArrayList and explicit casting, or else creating specialized classes. It's more of a ha...more >>

How do I extract name-value pairs in C# ASP.NET from a string?
Posted by Greg R at 3/28/2004 11:21:06 AM
Given the following reponse string: string test = "value1=5&value2=xyz&value3=text2" Is there a function to extract the values for each named element? If not how do I do it This string comes in as a responce from library function. The name-value pairs are separated with the & Thank you...more >>

Using class libraries..
Posted by Nico Vrouwe at 3/28/2004 11:14:35 AM
Hi, I'm pretty new to C# and .NET and I'm just wondering, is it supposed to be so complicated to use class libraries in VS.NET? I'm working on a project now and I got 2 libraries and a GUI that uses both libraries. One of them is a general utility library and the other library also depends ...more >>

Getting textbox values from datatable when a certain combox value is selected.
Posted by news.microsoft.com at 3/28/2004 10:33:12 AM
I have a form that had 2 textboxes, and 1 combobox. The two texboxes are disabled by default. I am using the following code to populare the combobox: foreach (DataRow rwSecRow in dtSecurity.Rows) { cbLoginID.Items.Add(rwSecRow[Schema.TblSecurity.colLoginID]); } When a user selects an i...more >>

interface mapping
Posted by pn at 3/28/2004 8:11:06 AM
Hi all I wonder if the Microsoft C# compiler performs interface mapping according to the C# language specification (ECMA-334, 2nd edition December 2002) Take a look at the following example interface int Foo { get; set; class BaseClas public int Fo get { return 0; ...more >>

Any Suggestions ?
Posted by Oren at 3/28/2004 7:46:05 AM
Hi there I already asked this question but I'll try in another formulation and I couldn't find any suggestions here about it Well, I have a Windows Application in C# with Textbox (Anchor Bottom), Splitter (Anchor Bottom) and RichTextBox (Anchor Fill) I do have a problem while Resizing the Form ...more >>

Regex
Posted by Oren at 3/28/2004 7:11:08 AM
Hi all I need to check a number between 1-128 with 3 digits only why this exprestion doesn't work Regex re = new Regex(@"\b(12[0-8] | 1[0-1][0-9] | 0?[0-9]?[0-9])\b") thanx....more >>

Waiting on a thread handle....
Posted by Guy at 3/28/2004 6:01:06 AM
H I Wonder... How can I wait on a terminating thread using C# what is the C# equivalent of the following code section HANDLE hThread = CreateThread(....... ... ... WaitForSingleObject(hThread, -1); <- What is the equivalent of 'WaitForSingleObject' Guy...more >>

Persistent Web Application
Posted by Patrick Delifer at 3/28/2004 5:58:33 AM
HI, Can anyone tell me where I could find info/examples about this: I have a Web page where a user enters info in fields and writes to a dB. The result is displayed in a datagrid. However, I would like the datagrid state to be persistent with the DB..I.e if another user updates the datagri...more >>

Dataset update
Posted by pei_world at 3/28/2004 5:39:52 AM
Hi all, I have a dataset that filled with many table by some relations, how can I update those tables when My dataset changed? give sample code if possible, many thanks! pei ...more >>

XML Documentation
Posted by Charles Conlow at 3/28/2004 5:23:35 AM
Am I missing something, or is there no <new line> markup within the <remark>, <code> or <summary> tags? This is VS2002, just in case. Chuck ...more >>

Help convert VB.NET code to C#
Posted by Thonglao Rud at 3/28/2004 4:18:41 AM
Hi all! I'm new to programming in .NET and I want to convert a function from VB.NET to C#. [VB.NET - from FxLib] Public Function ProperCase(ByVal cString As String) As String 'Create the StringBuilder Dim sb As StringBuilder = New StringBuilder(cString.ToLower()) ...more >>

Formating a text box after it has been databound
Posted by Mike Kearl at 3/28/2004 3:10:04 AM
I am databinding a winforms textbox using the following this.txtSalesRepCollected.DataBindings.Clear(); this.txtSalesRepCollected.DataBindings.Add("Text", this.dataset.table, "SalesRepcollected"); When it returns the value from the database it returns a double value of 120.000 How can ...more >>

TreeView - clicking node more than once
Posted by Glenn Lerner at 3/28/2004 2:31:33 AM
I have a TreeView control and I'm handling AfterSelect event. This event is fired after a selection is made. This works well for me. If I click on the same node twice, AfterSelect is not fired again. How can I tell when this occurs? (I need to know every time a node is clicked) I can try...more >>


DevelopmentNow Blog