meconnell's Q&A profile
.NET Development dynamically creating a form when receiving an event
Hi. I have an instant messenger app. When a peer receives a message from another peer, his receive_message event is triggered and I'd like to spawn a new IM window. However, when I do so, it freezes. This class raises the event public class ClientProcess: MarshalByRefObject, IamShtoClient { //This event is used to notify us that we received a message. public delegate void message( object sender, messageWrapper mw); public event message messageReceived; //Raise an event when we receive a message [System.Runtime.Remoting.Messaging.OneWay] void IamShtoClient.receiveMessage(string message, string senderUsername) { if(_debug) log("received message: "+message+ " ...Show All
Visual Studio 2008 (Pre-release) I think this is a bug in WPF DataBinding - bound ItemsControl ignores collection changes
See details at the following post http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=765071&SiteID=1&mode=1 If I manually bind (via SetBinding) an ItemsControl to an (new, different) ObservableCollection, the ItemsControl (or some other entity) should monitor changes to that collection and update the ItemsControl accordingly. This does not appear to be the case. In the case that I simply bind once, in XAML, it works, but if the binding changes then the ItemsControl is never properly updated again. I can see that WPF does not explicitly register for the CollectionChanged event, so it must do something under the covers to track Collection Changes. Please advise. This works as expected for me ...Show All
.NET Development How to set registry key permission in .NET Framework 1.1
Hi, all I noticed that http://msdn2.microsoft.com/en-us/library/microsoft.win32.registrykey.setaccesscontrol.aspx was only supported .NET 2.0 So, how do I set registry key permission using .NET Framework 1.1 Thanks in advance! Ming. Are you asking this in the right group This group is targeted at .NET **Compact Framework** (hence the .NETCF at the end of the group name)... Paul T. <MING LV@discussions.microsoft.com > wrote in message news:95d7a890-3a8b-4b51-aa15-56e3b3ecf028@discussions.microsoft.com ... Hi, all I noticed that http://msdn2.microsoft.com/en-us/library/microsoft.win32.r ...Show All
Visual C++ How do you install CRT, ATL80.dll, MFC80u.dll applocal?
When we look at other installation options than side-by-side installations, we consider "applocal" installations. Unfortunately we cannot use side-by-side installation since it prevents “Per User” installations in Windows Installer. (See http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx feedbackid=552c704c-75ba-4cb1-8bf3-0c1d6d50d5a2 ) A drawback with applocal installations is that fixes issued by Microsoft to components such as MFC80u.dll will not automatically applied. On WinXP I suppose MS can do this by using policies. I found a KB article where this is discussed: http://support.microsoft.com/default.aspx scid=kb;en-us;835322 As one of the points at the end of the KB article, you can read: " If you install ...Show All
Visual Basic Using a declared function in a dir' address.
Hi Guys, Ill be upfront, i am extremely new to VB and am still learning the ropes, so apologies if i do not make much sense lol! Ok, what i am trying to do is place the current user logged on to the computer into a directory. Eg, ------------------------- ChDir "C:\Documents and Settings\ USERNAMELOGGED IN \Desktop" Workbooks.OpenText Filename:= _ "C:\Documents and Settings\ USERNAMELOGGED IN \Desktop\IMEI.xls", Origin:= _ xlMacintosh, StartRow:=1, DataType:=xlDelimited, TextQualifier:= _ xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, Semicolon:=False, _ Comma:=False, Space:=False, Other:=False, FieldInfo:=Array(1, 1) ----------------------------- I am wanting to repla ...Show All
Visual Basic i am using vb.net 2005 i need to select all the comments in my program
i am using vb.net 2005 i need to select all the comments in my program while writing and debuging my program and dooing changes to my code i have commented a lot of text in my program now i need to delete all the commented text in my program i am in search of a shortcut key which deletes all the comments in my program can any one tell me the short cut key or the procedure to delete all the commented text in my program at a time Why would you need to do that just leave your notes in, trust me they will be helpful latter and they have no difference in your program when compiled it is not added. ...Show All
Smart Device Development Thread Problem
Hi, I'm developing smart device application by using CF1.0 on VS 2003. i need your help. I've developed one application. In that application, there are two forms both will be shown thru sub Main(). The first form has a thread which will be invoked on form_load() event. That form will be closed after completing the thread function and show Form2. This is what i want. But Form2 didn't show even the thread function finished. I attached source code. Please check my application and send your suggestion or link. Note: In my application, Both forms will show ...Show All
.NET Development Virtual Path Problem?
Pretty much what I'm trying to accomplish is a data backup utility. First I have a treeview on the left, pretty much like Folder Explorer, that lists the drives and so forth. You then can dive down into different directories from there. The files and directories are then put into a listview on the right, after you select one of the nodes. This is where the problems start occuring. I'm including a piece of code here, just as an example to give you a visual understanding of what I'm about to ask. First make your basic windows form app. Add System.IO namespace Add a button Add listview control In your button1_Click event add the following DirectoryInfo tempDir = new DirectoryInfo ( "C:\\WINDOWS\\Downloaded Pr ...Show All
SQL Server Mining data in specific format
I hope this is in the right area. I have a transaction table that I need to export for our financial system to import. It has a lot of zero's and a lot of spaces in the requested file. Is there a way to do that and if there is how I do have a copy of the requested file if you need to see it. I know how to get the data and I know where, but I have no idea on how to get the spaces zero's and so on. Some help would be great! Thanks ...Show All
Software Development for Windows Vista SQLTracking and Persistence
Hi, At the moment, I can't make SQLTracking and SQLPersistenceService work together. Here are my situation: Situation 1 - SDK (v6.0) Sample : Technologies\Hosting\PersistenceServices When I run the Sample, it works ok, so I tried to add the TrackingService to it with the following VB.NET Code: Dim TrackingService As New SqlTrackingService(TrackingStoreConnectionString) currentWorkflowRuntime.AddService(TrackingService) I didn't write any code to add Tracking Profile yet. But this time when I run the application, it stopped at the line: Workflow is idle And then keep on wating. No persistence occur. Why Situation 2 - ASP.NET (State Machin Workflow) I have an ASP.NET page which start the workflow l ...Show All
.NET Development opening and reading text files
I am new to visual c# and to programming in general. While I have taken a C++ class and have and understanding of if / else, while, for, do-while, etc., I have no clue when it comes to visual c#. Does anyone have a simple application that opens a text file (where the file name and location is entered on the form) and reads the file. Anything close would be appreciated. Ultimately I need to have an application that reads the text file, line by line, and compares it with a string that will also be entered on the form. Thanks! You'll want to get used to the the forms API first using some of these videos: http://msdn.microsoft.com/vstudio/express/visualcsharp/learning/ Then you'll want to learn about System.IO: http://msdn2.micros ...Show All
Visual C++ Visual C++ 2005 Service Pack 1 - error C2516
I'm still getting problems with the c++ service pack breaking existing code; in this case the popular boost graph library. Here's the error message: 1>C:\boost_1_33_0\boost/pending/property.hpp(21) : error C2516: 'Base' : is not a legal base class 1> C:\Development\boost_1_33_0\boost/pending/property.hpp(21) : see declaration of 'Base' 1> C:\Development\boost_1_33_0\boost/pending/property.hpp(21) : see reference to class template instantiation 'boost::property<Tag,T,Base>' being compiled 1> with 1> [ 1> Tag=boost::vertex_color_t, 1> T=boost::default_color_type, 1> Base=DGNode * 1> ] I guess this is related to the bug in the beta version of the service pack which produced ...Show All
Visual Studio Team System Recording a Web Test on a VPC
Hi. I need to record web tests on a VPC that resides om my physical computer, i.e. I have Team System installed on my pc and the web site that I need to record against is on the VPC running on my pc. If I start a new web test and TS opens the browser on my machine for recording, how can I point to the web browser to the VPC, or point to the VPC for that matter so that I can record and playback the script against the website on the VPC. At this point there is no TS running on the VPC itself... Are you unable to browse to the website on the VPC from the physical machine Why do you want the browser to open on the VPC. If this is what you really need then you will need to install VS on the VP ...Show All
SQL Server Getting "is not static" when trying to deploy
I'm attemping to deploy a crypto class that we use on a desktop app to SQL Server. I'll use the encryptstring/decryptstring found in this class as User Defined Functions on SQL Server. When I try to deploy the class I'm getting this error: Error 1 Method, property or field 'EncryptString' of class 'EncryptingDecryptingOASISPWDS.Crypto' in assembly 'EncryptingDecryptingOASISPWDS' is not static. EncryptingDecryptingOASISPWDS Here is the code: Imports System Imports System.Data Imports System.Data.SqlClient Imports System.Data.SqlTypes Imports Microsoft.SqlServer.Server Imports System.Security.Cryptography Imports System.Text 'for UnicodeEncoding Imports System.IO 'for MemoryStream, F ...Show All
Visual Studio 2008 (Pre-release) Large scale windows application... redevelop using XBAP's? or other 3 options?
I appreciate any responses. I have been thinking about all this for a while. Detailed responses would be great! If you had a large-scale (100's of windows) .Net windows application which you wanted to move web-based how would you approach this This application has defined end-users... so those users could install what is needed on the browser end until they have Vista... would you (a) Redevelop the whole system using XAML, a .Net language, and XBAP's -kinda early to think about this How long until this is a true option -What kinda power will the application have on the client machine anything that is enabled -Are third-party controls being made available soon -How does information get s ...Show All
