Ruprect8696's Q&A profile
Visual Studio Express Editions xcopy help
hi, can someone tell me how to get the files being copied into a list box for display the code Dim ProcID As Integer ' start xcopy. With ProcID = Shell( "xcopy C:\DOCUME~1\*.dbx/s/h c:\backup\" , AppWinStyle.Hide) End With Here's an example of how to do it. Create a form with a button and an oversized multiline textbox. Then: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim procInfo As New ProcessStartInfo With procInfo .FileName = "cmd.exe" .Arguments = "/c dir c:\windows" .RedirectStandardOutput = True .UseShellExecute = False .CreateNoWindow ...Show All
Visual Studio 2008 (Pre-release) Problem running an XBAP Application from localhost IIS
I have tried to exercise DEV012 Hands-On Lab. Application runs Ok in Browser. But after i have published it under IIS, I get this error log when accessing http://localhost/XBox/XBox.xbap : PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : http://localhost/XBox/XBox.xbap Application url : http://localhost/XBox/XBox_1_0_0_0/XBox.exe.manifest IDENTITIES Deployment Identity : XBox.application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d3eb52f4d50ba783, processorArchitecture=msil Application Identity : XBo ...Show All
Visual Studio Help using the Visual Studio DIA SDK for debugging...
I’m trying to provide myself a call stack dump whenever my code causes an exception, and I want to use the DIA SDK rather than ImageHlp API. Ie I want to see the callstack when my program crashes, rather like the callstack is shown in VisualStudio, except I’m not using an out of process debugger – I want to do this in my own app. The DIA SDK provides some COM interfaces to support what I want to do, but unfortunately there is no documentation. All I know is that IDiaStackWalkerHelper and IDiaStackWalkFrame must be implemented by the client. As to exactly how, remains a mystery! And this is where you step in! Let me give you an example using a diagram to show where I'm at. Go here to view a picture of the class ...Show All
Visual C# For Statement Help please
I'm translating a project from VB6 to C#.NET 2.0 and having a bit of trouble with this For statement for some odd reason... Error 1 Operator '<=' cannot be applied to operands of type 'int' and 'string' for (i = 0; i <=ClientList.Text; i++) tlistView1.Items.Equals(0); // This is the VB6 Code Below: For i = 0 To ClientList.Text ListView1.ListItems(i).SmallIcon = 2 Hi, agree with Brendan except that for converting string to int you should use parse static method like this: try{ Int32.Parse( ClientList.Text ); } catch(Exception e){ //cannot convert . . . } cheers ...Show All
Software Development for Windows Vista InkCanvas "Children" Serialization Deserialization
Hello, Does the serialization and deserialization in InkCanvas save and restore the children elements like those in InkCanvasClipboard example My quick (and possibly incorrect) test showed that it didn't. I did a quick mod to the InkSerialization sample by adding Ellipse shape but it didn't seem to restore it. I would appreciate guidance. Regards, Vinay Agarwal Hello Vinay, Yes, if you use XamlWriter.Save() and XamlReader.Load() with an InkCanvas, its children are being included in the serialization and deserialization process. Here is a quick way to demo this without writing any code: - open up XamlPad - paste in the below XAML (or any other XAML that contains an InkCanvas with child elements) ...Show All
Windows Forms Event-based Asynchronous Pattern: exceptions re-thrown loose stack trace?
Hi. When you use the Event-based Asynchronous Pattern , you have a background thread that can use one AsyncOperation objet to post messages to the calling thread (UI thread in most cases). While posting a progress message may never be a problem, you may also post some more important messages to the calling thread. In that case the calling thread may throw an exception telling he couldn't handle the message. Someone must catch these exceptions. So when the calling thread throws an exception, I let the backgournd thread get notified of it, so that he can stop if necessary. In my case I have a "async inside" object that hides the async mode. It has a ShowModal() function that displays a progress form. This function exits when the pro ...Show All
Visual Studio 2008 (Pre-release) Floating UI Elements in a FlowDocument
Okay, so this time last year I was playing a bit with Avalon.. Now I'm writing up an architecture review of WPF and doing a couple of POCs. Read the book by Chris Sells and co. and Implemented some nice XAML with some controls floated in a TextFlow... Unfortunately Chris and co wrote that the same time I was playing with Avalon and the FlowDocument is now it. Problem is that I can't seem to find a way to float the controls in it. I did, finally manage to find a combination of Figure, FlowDocumentViewer (FlowDocumentScrollViewer seems to prevent the figure flowing) that would flow a paragraph, but when I stuck in a TextBlock or Button populated BlockUIContainer then all the flow went. Seems that unless I hardcoded the width of the contained ...Show All
SQL Server Creating a Custom Connection Manager Sample
http://msdn2.microsoft.com/en-us/library/ms345276.aspx does anyone know where this can be obtained it did not come with the RTM. it does not seem to be available via download either a little help here! As Books Online has been updated, we also have some updated samples to match- Download details: SQL Server 2005 Samples and Sample Databases (April 2006) ( http://www.microsoft.com/downloads/details.aspx FamilyID=e719ecf7-9f46-4312-af89-6ad8702e4e6e&DisplayLang=en ) It is in the SqlServerSamples.msi. ...Show All
Windows Forms passing variables to NotifyIcon Text
hi all, i've got a little timer program that i'm working on. everything is working fine, just need a little help with some refinement issues... question #1: bascially i have some variables minRemain & secRemain that show via timer tick how much time is remaining until alarm will be sounded. i have a NotifyIcon set and the program minimizes to the system tray (whatever that's called- lower right of windows screen). you double click the icon to bring back the program yada yada... when the program in in the system tray and you hover over the icon is displays some text (the program name) as i've defined in the NotifyIcon Text property. so here's my question... how can i pass/display some variables in that hover ...Show All
.NET Development I fixed by OutOfMemory Exceptions. Can somebody tell me why???
I have written/deployed a C# Windows Service using VS.NET 2003. This service, over a period of several days, would grow in size to over 700 meg and start getting OutOfMemory exceptions. Also, the Page Faults would number in the millions. The problem turned out to be in class level 2 XmlDocument objects. (Note: The class that used these 2 XmlDocument objects was a very busy class). The class would use these 2 XmlDocument objects to manipulate XML strings. The LoadXml() method was used to load the XML and then manipulate the XML as needed. There were 3 methods in this class that used these class level XmlDocument objects. So, I deleted these class level XmlDocument objects and used local XmlDocument objects within each method that requ ...Show All
Visual Studio Express Editions Help Clearing All Textboxes and All Comboboxes
Greetings: I found this helpful code elsewhere on the forum, but it is only working on the Combo Boxes and not the text boxes on my Form1. Currently I have 4 textboxes and 3 comboboxes on my form. In the editor, when I hover my mouse over "ComboBox" it says "Class ComboBox" and when I hover my mouse over "TextBox" it says "Interface TextBox." Any ideas or help is greatly appreciated. Thanks Glenn Public Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click For Each c As Control In Me .Controls If TypeOf c Is TextBox Then ...Show All
Visual C++ stable graphice object on forms
hi i draw graphice object by graphic class ( in .net framwork) on forms but it is not stable in forms please help me Hello Re: stable graphice object on forms Such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups . OTP Thanks Damien ...Show All
SQL Server MSOLAP_NODE_SCORE values returned by store proc DTGetNodeGraph
Hello-- For extracting the link structure of a dependency network with a large number of nodes (for problems having a large number of variables), we have been using the stored procedure: System.Microsoft.AnalysisServices.System.DataMining.DecisionTreesDepNet.DTGetNodeGraph('{model-name}', value) The stored procedure returns a resultset with columns: [Node_type], [Node_unique_name_1], [Node_unique_name_2], and [MSOLAP_NODE_SCORE] Are there any pointers, references or descriptions of the values of [MSOLAP_NODE_SCORE] Thanks, - Paul Excellent -- Thanks Bogdan. - Paul ...Show All
Visual C# encryption problem
I have the following code which I would like to use to encript a password. However, I get a 'Specified key is not a valid size for this algorithm.' error on the line that is marked below. How can I solve it= thanks private const string keyString = "193-155-298-97-284-58-100-241"; public static string CreateCipher(string s) { //DES cipher = new DESCryptoServiceProvider(); byte[] sArray = UTF8Encoding.UTF8.GetBytes(s); DES desSP = new DESCryptoServiceProvider(); byte[] keyBytes = MyGetBytes(keyString); error ---------> desSP.Key = keyBytes; desSP.Mode = CipherMode.ECB; desSP.Padding = PaddingMode.PKCS7; ICryptoTransform cTransf = desSP.CreateEncryptor(); byte[] ...Show All
Visual Basic cannot start application
hi when i publish my VB application via remot server , i get the followin message : cannot start application , check your network connection or contact your system administrator or network service provider , i get the following errors page: + Downloading http://www.pmlearn.com/pmp1/EXAM1TRY.application did not succeed. + The remote server returned an error: (406) Not Acceptable. COMPONENT STORE TRANSACTION FAILURE SUMMARY No transaction error was detected. WARNINGS There were no warnings during this operation. OPERATION PROGRESS STATUS * [8/27/2006 8:10:25 AM] : Activation of http://www.pmlearn.com/pmp1/EXAM1TRY.application has started. ERROR DETAILS Following errors were detected during this operation. * [8/27/2006 8:10 ...Show All
