MSGROUPS.NET | Post Question | About | Groups | Contact | Register | Login



microsoft public excel misc (9093)

microsoft public outlook general (7339)

microsoft public excel programming (6569)

microsoft public word docmanagement (5607)

microsoft public excel worksheet functions (5040)

microsoft public access (4768)

microsoft public windowsxp general (3908)

microsoft public windows vista mail (2978)

microsoft public windows vista general (2805)

microsoft public windows live mail desktop (2724)

microsoft public office misc (2268)

microsoft public access queries (2122)

microsoft public powerpoint (2030)

microsoft public greatplains (2009)

microsoft public windows server sbs (1984)

microsoft public dotnet languages csharp (1964)

microsoft public access formscoding (1932)

microsoft public sqlserver programming (1878)

microsoft public mac office entourage (1868)

microsoft public access forms (1798)

microsoft public internetexplorer general (1706)

microsoft public mac office word (1699)

microsoft public access modulesdaovba (1691)

microsoft public outlook calendaring (1436)

microsoft public dotnet framework aspnet (1381)

microsoft public project server (1356)

microsoft public windowsupdate (1353)

microsoft public sqlserver server (1339)

microsoft public project (1285)

microsoft public excel (1277)

microsoft public access reports (1249)

microsoft public windowsxp help and support (1204)

microsoft public exchange admin (1185)

microsoft public windowsmedia player (1165)

microsoft public mac office excel (1160)

microsoft public windows server general (1100)

microsoft public dataprotectionmanager (1096)

microsoft public outlook (1035)

microsoft public word vba general (1029)

microsoft public vb general discussion (1012)

microsoft public outlook contacts (953)

microsoft public windows server active directory (930)

microsoft public development device drivers (923)

microsoft public dotnet languages vb (843)

microsoft public outlook installation (820)

microsoft public word newusers (808)

microsoft public word pagelayout (783)

microsoft public windowsce platbuilder (757)

microsoft public excel charting (733)

microsoft public publisher (728)

microsoft public excel newusers (711)

microsoft public windows powershell (697)

microsoft public pos (660)

microsoft public vc mfc (651)

microsoft public access gettingstarted (630)

microsoft public word application errors (629)

microsoft public sharepoint general (604)

microsoft public office setup (584)

microsoft public onenote (556)

microsoft public sqlserver reportingsvcs (550)

microsoft public outlookexpress general (539)

microsoft public scripting vbscript (533)

microsoft public frontpage client (532)

microsoft public access tablesdbdesign (529)

microsoft public windows 64bit general (516)

microsoft public outlook program vba (502)

microsoft public windows live messenger (434)

microsoft public windowsxp hardware (416)

microsoft public money (397)

microsoft public windowsxp basics (367)

microsoft public dotnet general (316)

microsoft public windows mediacenter (300)

microsoft public windows inetexplorer ie6 outlookexpress (276)

microsoft public mac office (272)

microsoft public win98 gen discussion (243)

microsoft public sharepoint setup and administration (225)

microsoft public windows vista hardware devices (183)

microsoft public windows vista music pictures video (178)

microsoft public nntp test (164)

microsoft public windows vista performance maintenance (148)

microsoft public dotnet framework (148)

microsoft public visio (128)

microsoft public access 3rdpartyusrgrp (68)

microsoft public access conversion (64)

microsoft public dotnet xml (58)

microsoft public pt windowsxp (38)

microsoft public access developers toolkitode (34)

microsoft public windows live photogallery (32)

microsoft public dotnet faqs (19)

microsoft public dotnet framework aspnet datagridcontrol (16)


microsoft.public.dotnet.languages.csharp Post New
Items(1951) /40 Next >> Last >|
Subject Posted Replies From
View Property Values of a Remoting Object

Hi, My application has many remoting objects. Each object has some properties. But I cannot watch the value of these properties using Visual Studio watch windows. I use VS 2005 and 2008. What should I do to view the vaues of the properties Thanks!

7/2/2010 5:59:28 PM 0 =?Utf-8?B?TWFhbnU=?= <Ma...@discussions.microsoft.com>
Dropdown list

How do I get the id value of the selected item in the dropdown list?

7/2/2010 12:03:49 PM 1 "Man T" <alanpltse_NOS...@yahoo.com.au>
Tool for comparing two versions of a codebase???

Hello, Are there any good tools for comparing two C# solutions? Let's say I have several c# projects in a solution. Let's call that solution the reference solution. I make a copy of the reference solution. I add some code in various projects. I change some code in various projects. I delete some projects. I add new projects and end up with a new solution. Now I want to compare the reference solution with the new solution and have a tool report to me which changes have occured. Are there any good tools for this? I am also looking for a tool which will do the same thi

7/2/2010 11:31:03 AM 4 "Bert" <b...@invalid.com>
Zip Microsoft.Office.Interop.Excel.dll with my application?

Hello. I created an application that automates Excel. It looked like that if the dll "Microsoft.Office.Interop.Excel.dll" was not with my exe, the application crashes on other PC's. Since my application doesn't provide a set-up program (X-copy application), I would like to zip that file with my application. Is that permitted? I tried to research on my own but I couldn't find the answer. I even consult the lawyer in our company but he was not able to give me a clear answer. By the way, that dll came with Visual Studio 2010 (located at C: \Program Files (x86)\Microsoft Visual Studio

7/2/2010 10:57:10 AM 2 Sin Jeong-hun <typing...@gmail.com>
C#.net click event associated with database error

I would like to know what to do to solve the problem listed below: When I am debugging a C#.Net 2008 windows application and click on the 'next' button, I am getting the following error: 'An unexpected error has occurred. The 'Microsoft.jet.oledb.4.0'provider is not registered on the local machine'. I think that I may need to change some setting I have in the visual studio.net 2008 professional edition to solve this problem prior to clicking on the 'next' button. I am working on an workstation that is 64 bits, XP operating system. When the click event has oc

7/1/2010 10:04:46 PM 1 =?Utf-8?B?YWFyb24=?= <aa...@discussions.microsoft.com>
Handling backspace in a RichTextBox - again!

Hello, I'm revisiting a problem I've never solved satisfactorily. I have a multi-line RichTextBox that receives text input from a serial port (not the keyboard); that input frequently contains backspace characters. To handle the backspace characters I'm currently calculating the offset of the character to be backspaced over from the beginning of the entire text box, selecting that character, then replacing it with no character. The "for" loop in the code below calculates the length of everything in the text box. While this scheme has worked correctly, it really slows the s

7/1/2010 7:47:11 PM 3 =?Utf-8?B?UmF5IE1pdGNoZWxs?= <RayMitch...@discussions.microsoft.com>
Console App Display DLL logging info

Hello I've got a C# console app, that calls a startup function in a C# dll that I have created. In my DLL, as I'm processing data, I want to display some logging information, but I want to pass it back to the console app, and have it write the text to the console as it comes from the DLL, but I'm not sure how I should do this.... Any suggestions, example Thanks

7/1/2010 4:49:48 PM 12 "Bill" <somepl...@somewhere.com>
Error: InterfaceDictionary ... does not implement interface member ...

I am attempting to create a custom collection class which implements IDictionary -- with parameters -- public class MyClassCollection : IDictionary <int, MyClass> The purpose for this effort is to learn C# programmer at a slightly deeper level. I have a working sample that does not include parameters. When I add the parameters <int, MyClass> this is when I get errors. At this time -- my collection class -- with the parameters -- WILL hold a collection of custom class objects. Right now -- my collection class can store my custom class objects, and I can retrieve a count of ob

7/1/2010 4:46:19 PM 1 Rich P <rpng...@aol.com>
Call stored procedure with paremeter output in c#

Hi, I have the next stored procedure in Sql Server 2008: CREATE PROCEDURE [dbo].[GetNumTiquet] @IdEmpresa int, @NumTiquet int OUTPUT AS BEGIN SET NOCOUNT ON; UPDATE ConfGen SET @NumTiquet=NumTiquet = (SELECT MAX(NumTiquet) +1 FROM ConfGen) WHERE Id = @IdEmpresa END If i execute this stored procedure with Sql Server 2008 all is ok. But how can i call this stored procedure with c#? Thanks

7/1/2010 3:39:46 PM 5 Paul <gambam...@yahoo.es>
MS Office interfacing ...

What are the files required to read/write office documents from within my ..Net application? I don't have MS-Office in my computer and not allowed to install it too! and can't use any third party tool also!! Any help would be appreciated! Thank you Regards Raj

7/1/2010 1:08:27 PM 6 =?Utf-8?B?UmFq?= <...@discussions.microsoft.com>
How to collapse C# XML doc comments like in VB.NET

Anybody know how I can set environment in C# so that when you will press "-" sign in front XML doc comment (///) it will collapse like in VB.NET, With that i mean you will see only summary text and not only <summary> tag. Let me show example and results in both languages. In VB.NET: ''' <summary> ''' Add two whole numbers ''' </summary> ''' <param name="intNr1">First number</param> ''' <param name="intNr2">Second number</param> ''' <returns></returns> ''' <remarks></remarks> Function AddNumbers(ByVal intNr1 As Integer, ByVal intNr2 As Integer) As Integer

7/1/2010 10:57:32 AM 3 Billy <abi...@yahoo.com>
#.NET help to video processing?

ho, I need to count moving objects per minute in a video stream. I'm currently using Aforge.NET. But unfortunately I could not find a way to do this using Aforge.NET. I checked their forums/Code project examples as well and no luck. Please help me on this.... We're stuck :( being unable to count moved objects across the video frame. Appreciate any help. Thanks in advance. -- Regards, Pasan Indeewara http://www.pasanindeewara.blogspot.com

7/1/2010 9:42:09 AM 1 "Pasan Indeewara" <pasanindeew...@aim.com>
Storing a generic type

I have a class with a property, called Value, which contains different types of data. That is, it might hold a Float, an Int, a String... The property value depends on another property which defines they type. I also have an 'OriginalValue' object. That never changes. It contains the origibal value when the class loaded. I was declaring the property object... and with that, I could assign any value, and it works fine... myProperty = "Hello", myProperty = 1.1 etc etc... that all worked. I can set and get. BUT... I can't compare... That is, I can't say bool Modified = (Value !=

7/1/2010 8:38:21 AM 1 Craig Lister <cdotlis...@gmail.com>
Are there methods with parameters of interface type in the standard library?

Are there any methods in the standard .NET library that have parameters of an interface type? (Preferably, simple methods with only one parametersthat can be called without many preparations and can be easily understood by beginners.)

7/1/2010 12:23:58 AM 3 ...@zedat.fu-berlin.de (Stefan Ram)
Works just as good without the Threadstart

Hello! Here I have a simple example to start a Thread. I have noticed that I can skip the Threadstart and pass the working method directly to the Thread C-tor. So what is the point to use ThreadStart when it works just as good without it. public static void MyMethod() { Console.WriteLine("Testing thread"); } static void Main(string[] args) { Thread myThread = new Thread (MyMethod); myThread.Start(); } //Tony

6/30/2010 11:55:10 PM 4 "Tony Johansson" <johansson.anders...@telia.com>
the Clear method for the Queue class

Hello! Can somebody explain what this text mean ? When you call the Clear method for a Queue object, the capacity of the Queue object is not changed. //Tony

6/30/2010 6:57:10 PM 3 "Tony Johansson" <johansson.anders...@telia.com>
string format question

Hi, I want to make a dynamically string format padding on a given string but I get ABORT when doing it: string aTest = string.Format("--{0,10}--", "test"); // this is OK string aTest2 = string.Format("--{0,-10}--", "test"); // this is OK too int aNum = 10; string aTest3 = string.Format("--{0,-aNum}--", "test"); // trying to make the padding value dynamically -> ABORT can someone please help ? thanks, Yoav.

6/30/2010 11:27:36 AM 1 "Yoavo" <y...@cimatron.co.il>
Quick inheritance Q

Hi, I have a class 'A' that has a virtual member 'm()'. Another class 'B' inherits from A and overrides m. Yet another class 'C' inherits from B. A <- B <- C From C, can I call A's implementation of m(), or the member from the immediate inheritance from B? Thanks, -Duncan

6/30/2010 10:19:58 AM 21 Duncan <...@b.com>
Problem with TTable

Hello my application uses TTable here is my code where I ocreate and open TTable ////////////////////////////////////////////////////////////////////////////////////////////////////// AnsiString nomdatabasebalance,nomtablebalance; AnsiString nomdatabasereference,nomtablereference; TableBalance->Active=false; Chem1=ExtractFilePath(NomFichier); TableBalance =new TTable(this); TableBalance->DatabaseName=Chem1; TableBalance->TableType=ttDefault; TableBalance->TableName=InFichier; TableReference= new TTable(this); TableReference->Active=false; AnsiStrin

6/30/2010 7:45:12 AM 0 "Patrick Artaud" <patrickart...@aidedecision.com>
Use of Assembly Attributes

We have been trying to mimic a sort of "plug-in" design with our app. We are loading assemblies which are in the app's assembly directory and then iterating all the Types in each Assembly to find ones which match the plug-in loaders designated type. I was thinking of perhaps trying to use Assembly Attributes to mark the plugin Assembly(ies) so that we don't bother iterating the types from other assemblies which we know wouldn't contain the "plugin". It seems like there is a Product Info Assembly Attribute, that maybe could be used for this purpose. I'm not totally sure that thi

6/29/2010 8:16:36 PM 3 Shalom Shachne <shalomshac...@gmail.com>
how to iterate SimpleDictionary that implements IDictionary?

I am practicing creating a custom SimpleDictionary collection object that implements IDictionary<int, MyClass> as follows below. I generated the default members to this custom collection object from the context menu of right-clicking on IDictionary<int, MyClass>. So far, I can add elements to my custom collection object and I can retrieve a count of elements, but I can't interate my collection object. I don't know what to return here: public IEnumerator<KeyValuePair<int, MyClass>> GetEnumerator() { return -- what do I return here? } and here is the code I have. Note: I ha

6/29/2010 7:27:25 PM 3 Rich P <rpng...@aol.com>
delegate vs condition check

hello everyone, today i tested the speed of a delegate relaying to a function against the speed of an an if, that checks the condition of a boolean value, relaying to a function (the code is attached at the end of this post). in my test it turned out, the delegate was twice as fast as checking the boolean. this lead me to the conclusion, that whenever object behavior depends on values, known from time of construction, it is faster to compose an object (compose of delegates and/or other objects) at construction time, rather than checking condition(s) every time an object is used.

6/29/2010 3:05:14 PM 1 Art <...@gmx.info>
Painting datagrid view

I currently have a datagrid view that's bound to a table. I have the AllowUserToAddRows is set to false so there is no extra row on the bottom of the dgv. I also have cell painting logic that changes the color of the row based on the text in the cell... however, my code will not work for the last row unless I set AllowUserToAddRows to true - which I don't want to. Does anyone have a work-around for this? TIA

6/29/2010 2:35:12 PM 0 derianc <deri...@gmail.com>
vs2005 c# app on windows 7/x64 fatal ?

Hi all I have an app running ok on W7 32 bit but on an W7/x64 it crashes immediate (no exeption thrown) . the program has stopped, windows is searching for a solution...... Runs ok in XP mode. Should i install Net 2 SP1 x64 ? I have currently no VS2005 on this machine. any clues or hints ? Johan

6/29/2010 2:18:19 PM 4 "Sagaert Johan" <REMOVEsagaer...@hotmail.com>
Formsauthentication timeout and 2 login pages

Hi, My client wants 2 separate login pages for an ASP.Net app, one for regular users, one for support staff. I am using the standard FormAuthentication component for authentication. Is it possible to redirect a regular user to one login page after a timeout, and also to redirect an admin user to a different page after a timeout? The loginUrl attribute of <forms> in web.config is read-only, and cannot be edited at runtime. In other words, can I do this: Regular User -> Timeout -> Login.aspx Support User ->Timeout -> SupportLogin.aspx Thanks, C.

6/29/2010 2:10:35 PM 0 "C." <hardi...@hotmail.com>
After merging 2 ContextMenuStrip how to call Opening ?

Hello All I ve got 2 ContextMenuStrip menu1 : _A _B menu2 : _C _D I set Opening on both menu menu1.Opening += new CancelEventHandler(MyOpening1); menu2.Opening += new CancelEventHandler(MyOpening2); now I want to merge these 2 menus into one : ContextMenuStrip newMenu= new ContextMenuStrip(); ToolStripManager.Merge(menu1, newMenu); ToolStripManager.Merge(menu2, newMenu); newMenu.Opening += new CancelEventHandler(myNewOpening); In fact I m stuck here : when the newMenu is about to be displayed, OnOpening is fired but how can I call the Opening of the o

6/29/2010 1:46:59 PM 1 fred06250 <fred06...@gmail.com>
Threading

Are there any dangers with a line of code such as: new System.Threading.Thread(UpdateContacts).Start(); On completion, does the thread get taken care of by ... what?

6/29/2010 7:48:27 AM 13 =?Utf-8?B?QUEyZTcyRQ==?= <AA2e...@discussions.microsoft.com>
System.IO.TextReader+SyncTextReader

The statement System.Console.WriteLine( System.Console.In.GetType() ); prints System.IO.TextReader+SyncTextReader under Microsoft� Visual C# 2010 Express. What a kind of type is this? (I mean, what does the �+� mean?) Where would one look up the documentation of this type? One also finds the notation/spelling �System.IO.TextReader.SyncTextReader�, �System.IO.TextReader SyncTextReader�, and �System.IO.TextReader/SyncTextReader� in Google.

6/29/2010 4:44:47 AM 1 ...@zedat.fu-berlin.de (Stefan Ram)
VWD 2010 Express calls Win32 DLL

I am looking into using Visual WebDeveloper 2010 Express edition to develope a simple web application. - a button on web page - click on it - calls a Win32 DLL function by passing a string type parameter as output parameter - this output parameter will be a string, in format of yyyymmdd, eg. 20101231 - print out this output parameter on a label Any sample source code to help me get started?

6/29/2010 3:40:40 AM 4 "Alan T" <alan_NO_SPAM_pl...@yahoo.com.au>
How to implement IDictionary with <int, MyClass> members for custom Collection Object?

I found public class SimpleDictionary : IDictionary for creating a custom collection object at this site: http://msdn.microsoft.com/en-us/library/system.collections.idictionary.a spx The following is a simple class called MyClass (followed by SimpleDictionary : IDictionary). I can add MyClass objects to SimpleDictionary as is. But if I add the following members to IDictionary <int, MyClass> -- then my test app complains that I am not implementing the members. How do I emplement these members <int, MyClass> ? public class MyClass { public int EmpID; public stri

6/28/2010 6:20:29 PM 1 Rich P <rpng...@aol.com>
Task manager in C#

How to create task manager which shows process description and CPU columns like in windows Task Manager? I looked into Process class but it does not have Task Maanger CPU and process description column properties. Also it returns lot of duplicate process names as "svchost" . How to explore from C# code what is really running instead of svchost generic name ? Andrus.

6/28/2010 4:13:14 PM 1 "Andrus" <kobrule...@hot.ee>
.Net application architecture suggestion...

Hi, We are in the conceptual phase to create a relatively medium size enterprise business product application using Silver light 4.0, Entity Framework and WCF. 1. Is it adivceable to use Silverlight 4.0 for this enterprise business application development or should we go in for MVC.NET / ASP.NET? 2. We have planned to use REST based WCF service. How complex would it be to write the information back to the REST WCF service? I appreciate and welcome your advice / suggestion. If you need any further details do let me know, i will be happy to share. Thanks in advance.

6/28/2010 12:29:37 PM 2 =?Utf-8?B?UmFq?= <...@discussions.microsoft.com>
MenuStrip Merge

I am seeking the manner in which you merge menus between MDI forms and Child Forms. Given the Main Menu (MDI Form) File --New Project --Open Project --_ --Create Item --_ --Exit And given the Child Menu File --Save Item --Close Item I want the child menu to merge into the main menu. Here's what I've don so far Main Menu: File (MergeAction = Append, MergeIndex = 100) --New Project (MergeAction = Insert, MergeIndex = 102) --Open Project (MergeAction = Insert, MergeIndex = 103) --_ (MergeAction = Insert, MergeIndex = 110) --Create Item (MergeAction = Insert, Me

6/27/2010 8:47:36 PM 0 "amdrit" <amd...@hotmail.com>
C# projects

C# project questions: 1. In a C#.net solution that was maintained by a team of programmers, is there a way to tell how to get the build to locate no errors when it is compiled. Basically I would like to know the order of items to try to get a large solution to compile. **I am asking that question since the programmers that worked on this large application have moved on to other programming teams in the company. I am told that this C#.net 2008 application did compile clean 6 months ago and no changes have been made to the application. Basically are there some suggestions you

6/27/2010 6:01:56 PM 2 =?Utf-8?B?YWFyb24=?= <aa...@discussions.microsoft.com>
C# namespaces

In a C#.net 2008 solution that I need to start working on for the first time, the same namespace name is used in lots of different projects in the same solution. Do you have any idea why this would be setup like this? Would this be setup to overload(override) the namespace. Basically the name 'projectall' namespace is used in lots of proejcts in the same solution.

6/27/2010 6:02:16 PM 3 =?Utf-8?B?V2VuZHkgRWxpemFiZXRo?= <WendyElizab...@discussions.microsoft.com>
Chossing port for server lsitening

I’m writing a server that listen for client connections. I chose the 2902 port. But today I received a SocketException as follow: Message: Only one usage of each socket address (protocol/network address/port) is normally permitted Method: Socket.DoBind I examined the netstat output and found that some other process has an established connection on this same port. My question is: What is the range of ports numbers that I can use for my server to listen on, and making sure the Windows OS will not use them? ------- Thanks Sharon

6/27/2010 7:02:55 AM 1 =?Utf-8?B?U2hhcm9u?= <Shar...@newsgroups.nospam>
Copy entire directory

Hello, How can I copy an entire directory with all its sub folders and files to another location? Thanks, Miguel

6/27/2010 12:58:00 AM 2 shapper <mdmo...@gmail.com>
C#.net custom control

I and another girl developer at worI want to to know how to do the following in a C#.NET 3.5 non-web application: 1. I have a delgate in one project and I want to have the delegate be executed from a click event in another project. How do I setup this type of a project refernce? (Note: This is existing code that is not working. Some other programmer wrote it.) 2. I have setup a control that I want to share with several projects within one solution and a copy of different solutions. Thus can you tell me: a. How to compile(build) the custom contol to generate a DLL? b. Once I h

6/27/2010 12:09:52 AM 6 =?Utf-8?B?bWlkbmlnaHQ=?= <midni...@discussions.microsoft.com>
Drag-and-drop between two ListView controls?

Hi all, I got a form with a ListView control in detail mode. The program can be opened in several instances. I want to be able to move or copy (move by default, copy if CTRL is pressed) one or more items between different instances of the program, using drag-and-drop. Sounds straightforward to me, but I can't find any useful examples out there. Any help would be much appreciated! Gustaf

6/26/2010 11:52:02 AM 0 Gustaf <gust...@algonet.se>
Climate Change Effect on Mount Everest

Dear all, Dipen00977.flixya.com Is only the URL where you can find the Article, photograph and Video on climate change inducing disaster? Don=92t miss to watch. Latest Video and discussion topic: climate change effect in Mount Everest

6/26/2010 10:54:16 AM 0 Dipendra Adhikari <zliofli...@gmail.com>
Precreated objects

In Java, there are some names that refer to objects that are already created when a program starts. For example, java.lang.System.out refers to an object at and after program startup, this object does not have to be created by a program, but already exists when the main method is being started. Are there any such identifiers in C# (that refer to objects already existing at program startup)?

6/26/2010 8:41:16 AM 3 ...@zedat.fu-berlin.de (Stefan Ram)
C#.net 2008 build problem

I am asking for help on compiling a C#.net 2008 application since I have not been able to obtain a successful build with no errors yet. This application that we need to support has no documentation and the programmer(s) who wrote the application are not with the company any longer. This C#.net 2008 solution has lots of project files in it. You can compile this application in the following modes: a.debug, b. debug-test, c.debug-development, d. debug-production, e. release, and there is a class manager configuration file. I am getting errors like: 1. Error 33 The type or name

6/26/2010 2:46:20 AM 11 =?Utf-8?B?V2VuZHkgRWxpemFiZXRo?= <WendyElizab...@discussions.microsoft.com>
How to find other attribute value corresponding searced attribute

Header("Item1") returns <MenuItem Content="Open file" Name="Item1" /> How to change this so it returns Content attribute value "Open file" corresponding to Name attribute value ? public static string Header(string entity) { return Menu.Descendants("MenuItem").Where(m => (string)m.Attribute("Name") == entity).Single().ToString(); } Menu type is XElement and it contains: <Menu> <MenuItem Content="File"> <Items> <MenuItem Content="FilemenuSubMenu1"> <Items> <MenuItem Content="Open file" Name="Item1" /> <MenuItem Conte

6/25/2010 8:51:07 PM 1 "Andrus" <kobrule...@hot.ee>
How to get task manager CPU and default memory column values

I need to return CPU and memory columns for each process in server from web service like task manager shows by default. I tried code below but s.TotalProcessorTime throws Win32exception with stack below. How to get CPU and real memory size from server using web service ? Andrus. static void Processes(StringBuilder sb) { List<Process> processes = new List<Process>(); foreach (Process process in Process.GetProcesses()) processes.Add(process); processes.Sort((a, b) => { return Math.S

6/25/2010 12:37:34 PM 0 "Andrus" <kobrule...@hot.ee>
WPF Message queue

Hi all, First of all: sorry for my English. I'm trying to implement background data processing in WPF. For example by pushing button "A" i start some function "B" that works indefinite amount of time. That's why i show continuous progress bar till the end of function. I'm using Backgroundworker for this. But during this long operation button "A" keeps to be pressed. I don't like that behaviour. I'd like to enque my method "B" to be run after button's event OnClick finished. Thus button will look unpressed and my long operation will do it's job. So the common question is: is

6/25/2010 11:40:57 AM 1 =?Utf-8?B?dmtvcm5pZW5rbw==?= <vkornie...@discussions.microsoft.com>
localization in csharp windows application

Hi, I need to display and insert, english as well as chinese characters in c sharp windows application.please help me. am using VS2005.

6/25/2010 9:31:39 AM 1 =?Utf-8?B?c2F0eWE=?= <sa...@discussions.microsoft.com>
IDictionary<int, Employee>

Hello! Assume I have this class declaration public class EmployeeCollection : IDictionary <int, Employee> { // Implementation code } I assume that I can't use this code because I must add an int as the first parameter and an Employee as the second parameter. In this example I add the object KeyValuePair which should not be valid because we have this declaration IDictionary <int, Employee> Employee e1, e2; e1 = new Employee (1001, "Andy Reid", "Manager"); e2 = new Employee (1002, "Kara Lang", "Sales Engineer"); EmployeeCollection eData = new EmployeeCollection(); eData.Add

6/24/2010 11:51:41 PM 2 "Tony Johansson" <johansson.anders...@telia.com>
Events and Dispose

Anyone put this straight in my head... If you dispose an object that without explicitly removing the event subscription what happens? Does the event still hang there? Does it prevent the Dispose()? If so, what is the point of subbing to an event using an anon. method? Timer timer = new Timer(); timer.Interval = 2000; timer.Tick += (s,e) => { // DO Stuff timer.Dispose(); }; timer.Start(); mick

6/24/2010 9:36:38 PM 2 "mick" <coughco...@privacy.com>
inheriting from Enum

Hello! Do any class inherit from Enum ? Can you mention anyone. //Tony

6/24/2010 2:35:06 PM 3 "Tony Johansson" <johansson.anders...@telia.com>
dynamic search and sort using linq

I need to build a form that will take in string value from dropdowns for: sort_colum_name, search_column_name, table_name and textbox for search_text I know this is possible using expression trees, but somehow cant form the statements. Please help Here's what I have so far: private static List<T> GetSortedData<T>( string sortColumnName) { var type = typeof(T); var property = type.GetProperty(sortColumnName); var parameter = Expression.Parameter(type, "p"); var propertyAccess = Expression.MakeMemberAcce

6/24/2010 11:47:40 AM 2 fiza <ezsofia....@gmail.com>

Pages: 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 32 33 34 35 36 37 38 39 40









Newest Articles

Window Live Mail Auto Forwarding
38 min. 2 sec. ago

Win32.Gael.3666 got past Windows Defender
3 hour 41 mins ago

ANN: IT COULD GO DOWN INTO THE 40's TONIGHT HERE IN THE WINDY CITY SUBURBS!
4 hour 10 mins ago

ANN: THE PRICE OF SPEEDING TICKETS IS GOING UP HERE IN ILLINOIS!
4 hour 13 mins ago

ANN: OBAMA WANTS 2 SPEND ANOTHER 50 BILLION!
4 hour 26 mins ago