Contents

Posts in microsoft.public.dotnet.languages.csharp

 

C# 1.1 DataGrid set to not deletable  Replies (1) 9 January 2008
Hi, In my C# 1.1 Windows Form, how do I limit a DataGrid's rows not to be deleted, but still can be edit. Thanks for help. Jason...

 

StatusStrip control appears to be always "raised"  Replies (1) 8 January 2008
Hello everyone, I noticed that the statusStrip control seems to be always "raised". I tried looking for a property that would change this behavior. I tried the LayoutSyle property but it has no ...

 

Datagridview always visible  Replies (1) 8 January 2008
Hi everybody, There is a method to show always the rows and colums of a datagridview although there is no data? I want that my program looks like a sheet of Excel. Thanks Mark...

 

xsl Question  Replies (5) 8 January 2008
Hello again... Im using XMl/xsl to generate text report from a service getting data to xml from sqlserver 2005 xml generates ok but when xslCompiledTransform runs i get a StackoverflowException...

 

Website Promotion in Orange County, The Two Best S ...  Replies (1) 8 January 2008
This is for the benefit of everyone who wants to benefit from really good organic search engine optimization. http://socialmediaoptimization.tv/social-media-optimization/ that link has plenty...

 

Clear WebBrowser history.  Replies (1) 8 January 2008
Is there any way to programmatically purge the forward/back history of a .NET 2.0 embedded WebBrowser control?...

 

Check solution configuration  Replies (1) 8 January 2008
Hi, how can I check, which solution configuration is actually configured (Debug, Release or my own)? Christian...

 

Proper Use of Streams  Replies (3) 8 January 2008
I need to send the following XML to a network connection and at the same time, output it as a string to an ASPX page. How can I do this? The network connection code works. If I try to read hmnStr...

 

XP like ProcessBar  Replies (2) 8 January 2008
Hi all I want to make a processBar like the processbar then XP start up, without any mesument just indicakiten the process working. I can use a ordinar ProcessBar system vith max, min and value i...

 

Close a memorystream?  Replies (1) 8 January 2008
Hi I have a function that sends email messages plus attachments. I'm worried about the memorystream I'm using in the following clipped code sample. Will it be closed/disposed of without me doing...

 

Web Deployment Error. Copy Files  Replies (2) 8 January 2008
Hello, I have the following code: I get the following error: "Unable to copy file ".\Debug\\A\*.*" to ".\Debug\\B\*.*". Illegal characters in path" Does anyone kno...

 

Compare private members of two classes  Replies (1) 8 January 2008
Hi all, I have two instances of the same class. Is it possible to compare private members of two classes and to come with a list of differences?...

 

compare private members of two class instances  Replies (2) 8 January 2008
Hi all, I have two instances of the same class. Is it possible to compare private members of two classes and to come with a list of differences? Thanks, Avi...

 

wrapper for unmanaged c++ DLL  Replies (1) 8 January 2008
Hi, I have trouble with a C# wrapper for an unmanaged DLL. The code is: int WINAPI DcpDll_GetFoundDevices (int piIdx, /*[in] Device index in the internal list(0..MAX_MEMBER)*/ char far *ps...

 

Saving color with ApplicationSettingsBase  Replies (2) 8 January 2008
I have a 'Filter' class that contains some strings, 1 bool and 2 Color attributes. I made an array of Filter : Filter[], and I'd like to save this array with the application settings system. her...

 

Share Class between Windows app and ASP.NET websit ...  Replies (2) 8 January 2008
All, I created a class in a windows application and I'd like to be able to pass an instance of that class as a method parameter to a web service. The class contains 100 variables. I tried adding ...

 

C# Windows Service - allow multiple defined servic ...  Replies (3) 8 January 2008
We have a service written in C#. The generated code "hardcodes" the service name into the exe. We have a situation where we would like to allow multiple Windows Services to be defined. These ...

 

Testing  Replies (2) 8 January 2008
Testing message...

 

Hot clips,great clips:  Replies (1) 8 January 2008
Hot clips,great clips: http://groups.google.com/group/greatclips8888/web/great-clips...

 

Exe supporting both winform and console mode  Replies (1) 8 January 2008
Hi I would like to implement a single exe which could be invoked either as a standard windows form (no argument) or as a console app (when run with app.exe -nologo). I tried compiling the exe ...

 

Embed username/password/etc. in exe at install tim ...  Replies (8) 8 January 2008
Hello: We have a request for an console application to change the administrative password on our user's machines during an upcoming update. The console application will be called from a batch fil...

 

delete all files, which older than 5 days  Replies (2) 8 January 2008
Hello, Call DeleteFiles bgW_DeleteFilesProcess = new DeleteFiles(); bgW_DeleteFilesProcess.RunAsync( folder, 5, "*.txt", new RunWorkerCompletedEventHandler( RunWorkerCompleted_Delete...

 

How to access to WebService on remote computer  Replies (1) 8 January 2008
Hi! I'm playing with WebServices in C# and when I test my project it works on machine where is webservice, but when I want to access to same webservice from remote machine in my local network it ...

 

Usage of the .NET Settings file for a Shared Appli ...  Replies (1) 8 January 2008
If I have an application installed on a computer that my be used by multiple users or the computer is something like a CITRIX server, is the applicaiton Settings file shared by all users? If one of ...

 

Data loss with update  Replies (1) 8 January 2008
I hava a from with a datagrid that allows the users to enter quanities for monday thru sunday. recently the users have been complaining that not all of the changes they make to the datagrid are sa...

 

LinqToSQL CancelUpdate  Replies (1) 8 January 2008
I'm writing an application using LinqToSQL. Basically the application works as follows: - Read a file - Add rows to the database (the rows belong to more than one table). - Call DataContext.Sub...

 

P/Invoke  Replies (1) 8 January 2008
Hello, I have to "P/Invoke" to a function taking an LPARAM arg which is actually an "IntPtr". In this case "IntPtr" needs to be a pointer to an "unsigned int". Can someone enlighten me on how t...

 

How to change what directory tfs "get latest versi ...  Replies (1) 8 January 2008
How to change what directory tfs "get latest version" saves to? I made it desktop the first time it prompted me but want to change the directory to somewhere else.....

 

trimming strings  Replies (2) 8 January 2008
Hi, I have " 'anyword' ", and i want to trim out the '. Ive tried using: string test = " 'anyword' ". char[] DeleteChars = { ''' }; string id = test.Trim(DeleteChars) and string id = test.Trim('...

 

Impersonate in 2.0 Winforms  Replies (1) 8 January 2008
I've been in the asp.net world for over a year now, and now have a new need.....non asp.net. Is there a better way to do impersonation in 2.0 than there was in 1.1 in a winform or console app...

 

Word 2007-like tooltip (C# WPF)  Replies (1) 8 January 2008
Hello, I want to create a tooltip like Word 2007 shows when you select text. http://img167.imageshack.us/img167/9809/floatiefq4.gif I have no problem with putting buttons etc in the tooltip but...

 

Pleaes Explain >> Programmatically Clicking Deriv ...  Replies (1) 8 January 2008
The included code block demonstrates programmatically clicking a non-derived ToolStripButton in the OnShown() method. When I derive a button from ToolStripButton and override the _private_ OnCli...

 

Online help  Replies (1) 8 January 2008
Sorry if this is off-topic but I couldn't find a more appropriate NG. Can someone simply confirm that MSFT's "HTML Help Workshop" program is still relevant for creating online help (".chm" files)....

 

Load New Record  Replies (1) 8 January 2008
Writing C# front end for SQL Server 2005 back-end database. I have a form I want to use to enter new workorders but I don't want to retrieve existing workorders on the system. I only want to retri...

 

how to search tfs by name of file or contents in f ...  Replies (1) 8 January 2008
how to search tfs by name of file or contents in file?...

 

when i build someone's project, and right click a ...  Replies (1) 8 January 2008
when i build someone's project, and right click a function "goto definition" is disabled. how to reconfigure a .net project to support "goto definition" when i right click on function calls?...

 

Error - Provider load failure.  Replies (1) 8 January 2008
hi, i am getting the following exception when i execute the below code in C#. exception - provider load failure. ManagementScope managementScope = new ManagementScope("\\root\\CIMV2"); xxxAtmS...

 

Lock Threads  Replies (2) 7 January 2008
Hi I have a Static Class with a few Methods/functions im trying to make them thread safe... public static myclass { pubice static void dosomework() { //how to lock in a static method .......

 

Problem with BackLog (TCP Queue)..  Replies (8) 7 January 2008
I'm building a web server and having some issues with the TCPListener.Start(BackLog). It doesn't seem to do as expected. I'm using MS Web Stress Tool to test against my web server and when I s...

 

Image List ...  Replies (1) 7 January 2008
Can anybody help me out in finding how to access an image from an imagelist without using Index property at run time.......

 

postion of form  Replies (4) 7 January 2008
Hi I am using a form in an application that i have attached to the context menu using a program called right click configurator. The position of the applicaiton when called through the context...

 

Downgrade from .Net 2.0 with sp1 to .Net 2.0 witho ...  Replies (5) 7 January 2008
Hi everybody, I have a problem with a bug in the sp1 of .Net 2.0 which is reported on this page: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx... Because of this a pr...

 

.NET Remoting and Exceptions  Replies (2) 7 January 2008
Hey .NET 2.0 I'm developing a system which consist of a winservice and a client app. The client app accesses the winservice via .NET Remoting. In this winservice I'd like to add a method wh...

 

Get database name from connectionstring  Replies (2) 7 January 2008
Hi all, how can I obtain the dabase name from a connectionString retrieved from a ConfigurationManager.ConnectionStrings["MyConnectionString"]? I need this to set the text value of a label. T...

 

Getting Index from ImageList  Replies (1) 7 January 2008
Hi.. Can anybody tell me how can iget the index of an image from an imagelist after suppling the icon file name.. Thanx in advance...

 

newbie: Getting the latest record in a DataTable i ...  Replies (2) 7 January 2008
Hey .NET 2.0 Sql Server 2005 AFIAK when my .NET app starts it fills every DataTable objects in the DataSet with data I wonder how to retrieve the latest record from a DataTable in a DataSe...

 

Remote call to COM impersonating another user  Replies (11) 7 January 2008
I need to call a COM object from a remote machine using C#. I also need to pass on a different userID and password to the call. Has anyone done this? I've used Java to do this using JIntegra, but ...

 

Property grid and parametrized category descryptio ...  Replies (4) 7 January 2008
Hi, Is it possible to parametrize Property grid category? I have class: [DefaultProperty("Name")] public class Test { private string name; [Category("Misc"),...

 

newbie: Getting Program Files folder in Windows Mo ...  Replies (5) 7 January 2008
Hi! Can anyonecome with some C# program example on how to get the path of the "Program Files" folder on a windows mobile unit (//Program Files" in an english version of WM 6) I need to know ...

 

Find the parent node  Replies (2) 7 January 2008
When restoring nodes to a tree, how can you tell what is the parent of that node? Also how can you get a handle to the parent node, this way you can insert the node into the correct place? exa...