brother martin's Q&A profile
Visual Basic To deploy from Release folder or Debug folder?
Hello, In visual studio 2005, I have the option to set the configuration manager to output my files to a debug folder or a release folder. Right now by default, it is set to the debug folder. To deploy my vb.net application, would I use the files in my debug folder, or change my program to dump files in the release folder and then use tthe files that reside in the release folder I have used the click once deployment option but finding my application taking way to long to start up after a cold boot, where as if I use the files from my debug or release folder, it starts up fine. Any advice, or clarification on debug and release folders is greatly appreciated. Thanks. Yes. .NET supports the xcopy ...Show All
Visual Studio 2008 (Pre-release) How to access attached properties programatically?
I am creating a rectangle programatically in a control and I want to be able to position the rectangle at a location relative to the Canvas Top and Left. The control is a Canvas and the rectangle is one of the Canvas' children. In xaml I do this with, e.g. Canvas.Top="5" but how can I do this programatically The rectangle does not have a property Canvas. I'm guessing that I have to use an attached property to the rectangle or is it part of the control's properties which in this case is the parent Canvas Thanks for any help. Or you can call SetValue(Canvas.Top, someInt) and SetValue(Canvas.Left, someOtherInt) That's how you normally set an attached property, the same way you set a normal ...Show All
Windows Forms Inserting a new record in a DataSet, and then showing it in a BindingSource
Hi, Having a parent form that contains DataGrid linked to a DataSet, the user can press a "Create" button that will open a child form with blank fields. What steps should I follow to handle a new data set record in the form Should I: 1- Insert a new data row in the data set (MaterialDataSet.material.NewmaterialRow()) 2- Show the new record in the child form (the form has a BindingSource... how can I make it take and show the created Dataset row ) 3- Apply updates using the table adapter of the DataSet Me.MaterialBindingSource.EndEdit() MaterialTableAdapter.Update(MaterialDataSet.material) Using "MaterialDataSet.material.NewmaterialRow()", will defaults specified in the data base record definition, will be autom ...Show All
Visual C++ 16 bit windows subsystem error
when trying to install vc++ 6.0 on xp sp2 machine, i get this error: "16 bit windows subsystem c:\windows\system32\autoexec.nt. the system file is not suitable for running ms-dos and ms windows applications. choose close to terminate the application." can anyone help thank you. B. John ...Show All
Visual Studio Team System How can I found what was changed by a developer or a group of developers?
How can I found what was changed by a developer or a group of developers Ok, so we have a Team Foundation Server, and … - The project was added to the TFS source control. - There are 10 developers working on the project. - The project is C# / Windows Forms / ASPX (VS2005) - The code and ASPX / Forms design is modified every day. I am the one who is looking after the code itself, and I would like to find what was modified by a developer in the past 2 days or by a group of developers in a perio ...Show All
.NET Development PLEASE Correct me about the Primarykeys
DataColumn [] keys = new DataColumn [1]; keys[0] = Personal_Info.Columns[ "Student_Name" ]; Personal_Info.PrimaryKey = keys; DataRow MyRow = Personal_Info.Rows.Find(STUDENT_NAME); ----------------------------------------------------------------- DataColumn [] keys = new DataColumn [1]; keys[0] = Personal_Info.Columns[ "Student_Name", "Lesson", Chapter", "Course" ]; Personal_Info.PrimaryKey = keys; DataRow MyRow = Personal_Info.Rows.Find(STUDENT_NAME, LESSON, CHAPTER, COURSE); ---------------------------------------------------------------- i am trying to set a primary keys depends on multi columns , i ...Show All
Software Development for Windows Vista app compatibility testing
Hi I've just installed vista RC1 beta and tried the sofware I develop on it, a file manager called xplorer2 ( www.zabkat.com ) To my amazement most of the things work, however there are a few small features that appear broken, especially so for shell integration. E.g. the "New" context menu that creates new text documents and other registered shell file types doesn't work properly. It's hard to say whether this is a problem with my program or with the "beta-ness" of vista itself, but anyway, my question is, is there any specific forum to report such bugs/compatibility issues regarding windows shell and explorer I know from other groups that I frequent (e.g. microsoft.public.platformsdk.shell) that the only w ...Show All
Visual C++ Compiling from VS .Net 2k3 to VS .Net 2k5
Hi all, I have recently received code which I must re-compile, the only thing is that the code was compiled in VS 2003 .Net, and I'm trying to re-compile it in VS 2005. I'm receiving alot of errors, and I have no Idea how to fix them, could any one please help !! Thanx in advance. ERRORS: Error 1 error LNK2001: unresolved external symbol " .cctor@@$$FYMXXZ " ( .cctor@@$$FYMXXZ ) Stdafx.obj Error 2 error LNK2001: unresolved external symbol " .cctor@@$$FYMXXZ " ( .cctor@@$$FYMXXZ ) AssemblyInfo.obj Error 3 error LNK2001: unresolved external symbol " .cctor@@$$FYMXXZ " ( .cctor@@$$FYMXXZ ) AssemblyInfo.obj Error 4 error LNK2001: unresolved external symbol " .cctor@@$$FYMXXZ " ( .cctor@@$$FYMXXZ ) Gdi.obj Error 5 error LNK2001: un ...Show All
Visual Studio Express Editions VB PowerPack BlendPanel question
Hi ... I am using a BlendPanel control from the free vbPowerPack library on a form in my application. When I compile the application, it runs as expected. If I copy the exe file to another PC & run the app, I get the " MyApp has encountered a problem and needs to close. We are sorry for the inconvenience " error message. So I tried copying the exe to another folder on my local PC & I get the same error when I run it. It runs just fine if I run it from the ...bin\release\ folder, but not anywhere else. I suspect that it has to do with the BlendPanel component, as that is not native to VB2005. So what do I have to do to make this app runnable on any PC Do I have to embed the DLL file in my project somehow If so, how do I ...Show All
SQL Server How to direct T-SQL executoin output to a file
Is there a SQL Server 2000 equivalent of the Oracle SPOOL command like SPOOL 'C:\TEMP\MyFile.txt' which can be placed at the top of a series of SQL commands to direct the execution messages and results to the nominated file I want to use this in a Stored Procedure executed from within Access and capture all system and error messages at the server level. Hi, I found Steve's tip very helpful, however I also found out that you have to refer to the database name that the table belongs to even if the database you are refering to is the currently selected database within query analyser. This is because the command shell cannot see what the default database within query analyser is. Please find the fol ...Show All
Visual Studio I can not run a crystal report application on a machine without a visual studio .net installation
Hi, i make a c#.net application and also create a crystal report inside, after debug, i get the exe file, but when i run this on a machine which does not have a .net installation, it can not open the report, why and what should i do which modules should i install you need to deploy the crystal reports runtime for the version of Crystal that you are using. Go to this page to get the files and documentation for your version: http://support.businessobjects.com/downloads/merge_modules.asp ...Show All
Windows Forms How can I install windows service using VS.net setup?
How can I install windows service using VS.net setup create setup project in Visual Studio add project output of your windows service project files/folder section add the same output in install and uninstall folder of setup project Now the setup should be able to install your windows service Note: your windows service should have installers included This should work fine. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Any Plans for Support for VS 2005?
Does anyone know if there are plans to support VS 2005 at some point There are a number of missing features in VC# Express which I have come to rely on. Most notably, Macros. My productivity is hindered in Express. I would really like to be able to use VS 2005. At the moment, I am using a custom pipeline content generator and the XNA assemblies under VS 2005. Which is a complete hack, but it does work (on Windows). Basically, it means I have to eventually recreate the projects in XGS in order to make them work on the 360. So does anyone know if there will ever be real support for VS 2005 The two products are aimed at different groups of people. I don't know that there's going to be more in the way of non-IDE functionality in the P ...Show All
SQL Server NtBackup & VSS
Hey guys Just a question. If I use NtBackup with Sql server 2005 & sql writer started, the NtBackup use the Volume shadow Copy Service and the Sql Server Writer That is if do I do the backup of the log and data files, is these correctly and with consistence Very Tanks Yes, ntbackup will invoke VSS, and indirectly the SQL Writer during a backup. The files you back up are guaranteed to not have torn pages, and are in a "crash-consistent" state. Kevin ...Show All
Smart Device Development how to collect memory occupied by picture box?
Hi , I am using nearly 20 picture box with images loaded in it.From msdn article i found out that the garbage collector will not collect the memory occupied by images.so how to collect memory occupied by picture box. Make sure to dispose of all bitmaps. For each new Bitmap(...) there should be bitmap.Dispose(). If you're changing images in picture boxes do something like this: Image bmp = pictureBox.Image; pictureBox.Image = anotherBitmap; bmp.Dispose(); ...Show All
