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# > july 2005 > threads for wednesday july 13

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

App.ico
Posted by veera sekhar kota at 7/13/2005 11:19:02 PM
Hi, I redesigned App.ico file existing icon in windows applications then im trying to use that icon, it doesn't reflect the new changes. anyone can give me the solution... thanks in advance......more >>


About TCPClient.SendTimeout ?
Posted by Franky at 7/13/2005 11:04:01 PM
Is this timeout value is the time required to put data into the IO buffer on local machine? Or the time when the other end acks the receive? Thanks in advance,...more >>

Is it possible to create an attribute that generates a get/set property?
Posted by Thorsten Ottosen at 7/13/2005 8:17:19 PM
Dear all, I'm new to C#, so forgive my stupid question. In my question to avoid boilerplate code, I was wondering if I could use attributes to generate some code for me. For example public class Foo { [GenerateProperty("Field")] int m_field; } should be equivalent to p...more >>

Excel/PowerPoint Quit event
Posted by hsuntn NO[at]SPAM gmail.com at 7/13/2005 7:34:30 PM
I'm working with Office Application objects in a client/server WinForm application which allows the user to access remotely stored files. When the user opens the remote file, it is downloaded to their machine, and it is opened in the appropriate Office app. I've hooked the various BeforeSave...more >>

Declaring with static
Posted by Ant at 7/13/2005 7:20:02 PM
Hi I'm quite new to C#. I've been playing around with variables declared outside the scope of a method with & without the static keyword. What difference does declaring variables in either fashion make? For that matter, why must you declare methods with the static keyword? Thanks for any i...more >>

console application close
Posted by Jim Heavey at 7/13/2005 5:59:01 PM
When I run a console application by bringing up a dos window and then running the exe, I noticed that when I close the dos window, this kills my application. My question is, Is there some way that I can detect this and ensure that I can control how my application closes? I need to ensure tha...more >>

IPC between a windows service and a webservice
Posted by J at 7/13/2005 5:07:20 PM
Hello, What is the best/easiest way to setup interprocess communication between a windows service and a webservice? The windows service will be running on the same machine that is hosting the web service. The web service will be calling the windows service to get information rela...more >>

bind specific elements of arraylist to datagrid
Posted by Harry at 7/13/2005 5:06:17 PM
I want to bind three elements of an seven element arraylist to a data grid. I cannot find an example of complex binding specific fields of an array list to a datagrid. Any examples would be appreciated. m_Stat = new Stat(str1,str2,str3,str4,str5); m_arrlstStats.Add(m_Stat); grdSt...more >>



Foxpro Question
Posted by Pete Kane at 7/13/2005 4:19:28 PM
Hello there, just been thrown in the deep end with .NET, I need to perform the equivalent of "Set Relation" using CSharp and ADO.NET on two Foxpro tables. My basic needs are: Open two Foxpro tables, relate them using two common fields, scan through every record ( loads of logic goes here... ) c...more >>

I need Just a Grid, Not DataGrid
Posted by Bongee at 7/13/2005 4:09:20 PM
Hi, I am developing applications using .Net C#, I am very new to this platform, Is there any grid component ? I couldnt manage DataGrid component, Couldnt add Rows or Columns Thanks ...more >>

Same Transaction, multiple methods. How to do it?
Posted by Frankie at 7/13/2005 3:58:16 PM
In a C# Windows Forms application, using the SqlClient data provider... I have methodA() and methodB(). methodA starts a transaction on its own command and conection objects, does bunch of stuff, then either commits or rollsback the transaction. methodA calls methodB many times. method...more >>

xmltextwriter
Posted by quest at 7/13/2005 3:18:26 PM
XmlTextWriter writer = new XmlTextWriter("c:\\myxml.xml", System.Text.Encoding.UTF8); writer.WriteStartDocument(true); writer.WriteStartElement("Heading"); writer.WriteAttributeString("Ver", "1-A"); writer.WriteString("<Test value=\"Hello\"/>"); writer.WriteEndElement(); writer.Close(); Th...more >>

HELP: Complete Windows Versions List
Posted by Sabin Finateanu at 7/13/2005 3:16:47 PM
Hi! Can anyone tell me where can I find a complete Windows Versions List. I want to make a program that will identify the Windows Service Pack based on the build and revision number. Can anyone help me? Sabin Finateanu...more >>

IDE functionality
Posted by Gene Vital at 7/13/2005 3:08:26 PM
I have a project where I need to implement design time funtionality like creating several textboxes on a form and allowing a user to poition them, I guess you could say I am trying to build a small scale IDE. I have searched the MSDN but I can't find any reference material on creating design...more >>

Data Mask for Text Box
Posted by Mike L at 7/13/2005 2:42:04 PM
How do I create a text box with date data mask? I also need a text box with SSN data mask. VB6 and Access was easy to use data mask, .Net makes some basic things hard to do....more >>

remoting prob. with references
Posted by Steve at 7/13/2005 2:28:21 PM
I'm trying to implement this tutorial (http://www.csharphelp.com/bio/luke.html) in my code. When I build, I'm getting compiler error: error CS0234: The type or namespace name 'Tcp' does not exist in the class or namespace 'System.Runtime.Remoting.Channels' (are you missing an assembly referenc...more >>

Reading the "Temporary Internet Files" folder using C#?
Posted by Jim at 7/13/2005 2:27:02 PM
Is it possible to read the Temporary Internet Files folder using C#? I'm messing with FileIO (newbie here) and everything seems to work fine until I try to read the list of files in this Temporary Internet Files folder. I'm only received 1 file when I know there is more. Any suggestions are...more >>

Socket Disconnected Notification
Posted by Vladimir Lushnikov at 7/13/2005 2:11:54 PM
Hi, I know there exist asynchronous socket methods for connecting, receiving/sending data and disconnecting - but how do you know when the socket has been terminated - can you assign an event handler or a delegate as to when the socket is disconnected - either gracefully from remote or shut d...more >>

Day name of date object not working
Posted by .Net Sports at 7/13/2005 2:06:53 PM
In my csharp code behind file, I'm trying to perform a redirect if the date a user queries is a Wednesday: string rqs = Request.QueryString["txtboarddate"]; string rqsday; rqsday = (System.String.Format("{0:dddd}",rqs)) ; if(rqsday == "Wednesday") { Response.Redirect("http://www....more >>

generic generics
Posted by Joël at 7/13/2005 2:05:01 PM
Hi! I want to do something like that : class Test<T>{ } string myVar = "System.String"; Type myType = Type.GetType( myVar ); Test<myType> delta = new Test<myType>(); Is it possible to do something like that ? Thanks for your help ...more >>

DISCUSSION: About the Comega language.
Posted by Michael S at 7/13/2005 1:35:01 PM
I've been reading about and trying out Cw from microsoft research. http://research.microsoft.com/Comega/doc/comega_startpage.htm My first cent is that the language is weird but have potential. I have more cents on the subject but are eager to hear what others have to say. In future versio...more >>

xml document
Posted by stotty NO[at]SPAM gmail.com at 7/13/2005 1:09:44 PM
I have a string which contains an xml document in my app. Does anyone know of an easy way to display XML data in a browser, with nice indentations between nodes, and maybe even the +/- controls that IE uses when displaying XML? Matt ...more >>

.NET Development
Posted by Alvo von Cossel I at 7/13/2005 12:58:03 PM
hi, someone told me that i could only run my applications on a PC with the .net framework installed. is this true? if yes, then how do i male it run on any windows version? -- Alvo von Cossel I of Germany...more >>

GetMethod?
Posted by perspolis at 7/13/2005 12:52:02 PM
Hi I saw this fragment code somewhere. MethodInfo mi=dg.GetType().GetMethod("get_DataGridRows"); I know that that code gets info about get_DataGridRows method. but I can't find this code in MSDN.. what's your opinion??? ?? thx ...more >>

ASP.NET C#
Posted by Alvo von Cossel I at 7/13/2005 12:29:03 PM
hi, why is the ASP.NET C# different to the ordinary C#? i cannot create C# websites in asp.net because of this -- Alvo von Cossel I of Germany...more >>

Naming conventions best practise
Posted by Allan Ebdrup at 7/13/2005 12:00:02 PM
We have a developer who has defined our vraiable naming conventions, He has defined that variables should benamed the same as the class they are an instance of, for example: Syste.Xml.XmlDocument XmlDocument; I find this a very bad idea as you might get confused about what XmlDocument is...more >>

GDI+ and the Rectangle
Posted by RicercatoreSbadato at 7/13/2005 11:22:11 AM
I would like to draw a rectangle on a Bitmap(). How Can I do? -- RicercatoreSbadato...more >>

Constant parameters
Posted by Peter Kirk at 7/13/2005 11:07:15 AM
Hi, I have a method which receives an argument of which I need to change some values before I use it. But I don't want to alter the object for the caller. How do I achieve this? Do I need to make a local copy of the obect in my method, or otherwise "manually" ensure that the object remains ...more >>

How to read xml with entities ?
Posted by Mark at 7/13/2005 11:01:42 AM
Hi there, I have two xml files, one is a master file and the other is just a fragment of xml. Master xml file uses 'DOCTYPE' to define the other file as an entity. Then, the master uses entity references that are supposed to be expanded into real content at parsing time. Examples are provi...more >>

Share DB connections
Posted by David Dvali at 7/13/2005 10:44:55 AM
How can I share DB connections between many forms? ...more >>

VS.NET Pluigin - Outlining
Posted by Adam Clauss at 7/13/2005 10:39:53 AM
I am interested in writing a plugin that deals partly with the outlining Visual Studio performs by default (regions, classes, methods, comments, etc). I've created a plugin in C#, but I cannot seem to find any way of accessing this feature of the IDE. What objects/methods should I be looki...more >>

Getting just filename from FileDialog.FileName without path
Posted by Andres Romero at 7/13/2005 10:23:04 AM
Using the FielDialog class and it's FileName propertie I can know the Path and file name selected by the user, but now I need to know only the file name without the full path (eg. "C:\folder1\folder2\filename.txt", I just need the "filename.txt"), how can I do it?...more >>

Flicker in setting opacity.
Posted by Frank Rizzo at 7/13/2005 10:19:39 AM
I have a little animation where I fade out the form by manipulating its opacity. However, the screen seems to flicker just a little bit. Are there any tricks to making the form disappear smoother? Thanks...more >>

ExecuteScalar() Inadequate - so what's next best?
Posted by Frankie at 7/13/2005 10:17:46 AM
What would be an efficient way to retrieve two values from a stored procedure via ADO.NET? I understand ADO.NET's ExecuteScalar() method returns one value. I need two values returned, and didn't want to .Fill() a DataTable just to get two values (I am wanting fewer lines of code and someth...more >>

DLL Marshalling : How do I treat a char FAR * HUGE * FAR * in C# ?
Posted by Reynardine at 7/13/2005 10:15:02 AM
I am calling a C/C++ DLL from C# and I am marshalling the parameters to the API call by doing a type conversion for each parameter. For example, here is my C++ API method : short int XENO_API XcDatabaseCodes ( HWND hwnd, char FAR * pszDatabase, char FAR * ...more >>

What is the alternative to lack of C++ style "const" in C#
Posted by mswlogo at 7/13/2005 9:27:01 AM
There are many threads on the lack of a true unmanaged C++ const like behavior in C# (.Net) and that's not what this topic is about. The topic is, what is the best practical way to live with it. Some developers feel any function that returns an object should copy it. This gets pretty expensive...more >>

Search for a consistent set of rules for Models and Views in C#
Posted by mswlogo at 7/13/2005 9:15:29 AM
We frequently keep running into the same set of inconsistent practices around models and views and would like some other opinions. 1) There is no such thing as a "Controller" in C#. Developers keep creating them, but in the purist sense they can't exist in C#. The View and Controller are alw...more >>

tabstrip (disable(grey out) a specific tab)
Posted by tottigang at 7/13/2005 9:10:13 AM
Hi, I have a tabstrip and I have some tabs in it. On the first page, all the tabs are enabled, I need to disbale part of the tabs at a specific point in the application and again enable them. I have a hard time doing this. This is concerned with a production issue. Could anyone please sugges...more >>

Focus on field if Cancel on child form
Posted by Mike L at 7/13/2005 8:51:07 AM
I have a child form frmDataEntry call up another child form frmDealerSearch. If the user clicks on cancel on frmDealerSearch, I want to close frmDealerSearch and put the focus on txtDealerNum on frmDataEntry. Here is my code. public class frmDataEntry : System.Windows.Forms.Form { priva...more >>

ArrayList of custom class with dynamic properties not displayed correctly in DataGrid
Posted by raymi at 7/13/2005 8:11:06 AM
Hi, I have a custom class that gets its properties dynamically from a database at runtime. Therefore I implemented the ICustomTypeDescriptor in this class and created a a custom PropertyDescriptor. The custom class also inherits from Component and therefore can be dragged on the form in the d...more >>

memory never been collected
Posted by www.dir NO[at]SPAM gmail.com at 7/13/2005 7:07:25 AM
I am developing C# application that every 10 seconds refreshes TreeView control. I am using 3 custom classes for renewing the TreeView control. And It seems that I do not free some resources, so every 10 seconds the memory used by my application is increasing ( I was monitoring that from task ...more >>

Beating a Dead Donkey: Which Language II
Posted by Captain Tangent at 7/13/2005 6:55:03 AM
I'm about to start making a 2d freeware RPG and I wondered which language would best suit my needs. As an arts grad, my strengths really lie on the creative side but I have a basic knowledge of Pascal and C (when I say basic, I mean I can do all the if/while/storing local variables type stuff,...more >>

Re: how to restart PC in C#
Posted by bistefano NO[at]SPAM portalis.it at 7/13/2005 5:59:03 AM
Sorry i've found this message and i've found the error: Error =3D ("\\127.0.0.1" You have to use ("\\\\127.0.0.1" Sorry for my english Bye Stefano l=2E..@0536.net 23 Gen 08:08 mostra opzioni Newsgroup: microsoft.public.dotnet.languages.csharp Da: <l...@0536.net> - Trova messa...more >>

GDI defentions.
Posted by sea# at 7/13/2005 5:38:54 AM
This function draw rectangles which grow from up toward down. protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); Graphics dc = e.Graphics; Pen BluePen = new Pen(Color.Blue, 4); dc.DrawRectangle(BluePen, 100, 250, 50, answer1Result*2); dc.DrawRectangle(BluePen, 250, 2...more >>

Web.Client.UploadData()
Posted by Raj at 7/13/2005 5:20:04 AM
I am using WebClient.UploadData(URL) to upload a strng to the particular URL. How do I read the uploaded data or where excatly the data is stored, so that I can use in my destination web page. Raj...more >>

DateTimePicker not updating dataset
Posted by LC at 7/13/2005 5:19:38 AM
I am on the learn C#. Net in 695 day program. I am just trying to learn stuff. I have MSAccess database with 1 table called 'ParmDate' with 1 column called 'ParmDate' which represents a date for which the rest of the processing will be based. I have a Windows Form with a DateTimePicker that is ...more >>

format date
Posted by Syd at 7/13/2005 3:55:02 AM
I have file names as 01012003,01022003...02012003,02022003....31112004..etc. I want to sort them as year,month and year by increasingly.I tried DateTime,GetFormat() but I couldn't...How??? Thanks......more >>

beta2 - generics & casting on collections
Posted by lufil at 7/13/2005 3:05:04 AM
How can I make the following code work on beta 2? (I'm not sure but I think it worked on the beta1 version of VS2005) Public Person: IPerson { .... } .... List<IPerson> persons = (List<IPerson>)new List<Person>(); //Error: Cannot convert type......more >>

Caching data in Windows application
Posted by amrendrakr NO[at]SPAM gmail.com at 7/13/2005 12:00:51 AM
Hi, I like to cache data in Windows application similarly as we do in ASP.Net using System.Web.HttpContext.Current.Cache. any idea how is do it? Thanks ...more >>


DevelopmentNow Blog