Mark064's Q&A profile
SQL Server installing the sample databases and documentation
There are two instances: SQL2005 and SQL2005Express on two different units. While there is Visual Studio 2005 Team Edition also installed on the units have not attempted these component installs through either yet. Have spent the better part of two days, following all the directions having searched help locally, online, technet,and applied their advice respectively. While I've taken out the old instances, downloaded updated ones in both my SQL Server instances they do not show as installed under Programs->SQL Server (whichever instance)->Tutorials ...However they do show installed in Control Panel and they can be found via Explorer (AdWorks DBCI+AdWorks BICI and Express instance on the other unit. Have also download SP2 and installed ...Show All
Visual Studio 2008 (Pre-release) PropertyChanged not always honored?
Here's an issue from Windows Forms that appears to have crept into WPF as well. Any solution/workarounds are welcome! Consider a class with a property that enforces a business rule - such as that the value must be all upper case: public class Test : INotifyPropertyChanged { public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; // ... private string _data; public string Data { get { return _data; } set { _data = value.ToUpper(); OnNotifyPropertyChanged("Data"); } } } Bind this to a TextBox and type in a lower-case value. The user continues to see the lower-case value on the screen, even though the object obviously has an upper-case value. The PropertyChanged event is bliss ...Show All
.NET Development dispose method in a correct way
Hi, Please help me with the following questions: 1. What is the difference between the managed resources and unmanaged resources Any examples 2. When i disposing an object, Do I have to set the object to nothing as well For example: Finally cmd.Dispose() cmd = nothing End Try 3. When disposing, do I have to set every instances to nothing For example: string, integer, etc 4. When disposing an object, do I have to check if the object is nothing For example: If not IsNothing(cmd) then cmd.Dispose() End If 4. If I create a new class, Do I need to implement the Dispose method 5. What should I do to properly clean up the resources 6. Sometimes I saw some object might have two ...Show All
Visual Basic msgbox when a tabpage is selected
As the title says, this is what i'd like to do. When a user selects a certain tabpage, I'd like a msgbox to popup. sounds simple, but i've been racking my brain over how it's done, as it seems that the tabpage methods don't support it I've given this a read through: http://www.eggheadcafe.com/software/aspnet/28785371/re-of-tabs-and-pages.aspx But I don't think it helps me very much in the end. Any suggestions are appreciated - thanks guys! -Pete Try this: Private Sub TabControl1_Selecting(ByVal sender As Object, ByVal e As System.Windows.Forms.TabControlCancelEventArgs) Handles TabControl1.Selecting MsgBox(TabControl1.SelectedTab.Name & " has been selected& ...Show All
Visual Studio Team System BVT's without Team System Tester Edition - Possible?
I'm trying to create a Team Build that will run all my unit tests as part of the build. The problem is though, when going through the wizard it allows me to select the vsmdi file, but there is no test lists available in the drop-down (and since I don't have team tester edition I don't think I can create new test lists). We can still run the tests in our Team Software Dev Edition, is there a way to make a Team Build that will also run all the tests as part of the build process without purchasing Team Tester Edition You'll need to specify a .testrunconfig file by setting the RunConfigFile property in a PropertyGroup in your tfsbuild.proj file. Buck ...Show All
.NET Development How to avoid re-occurring Err "ORA-12154: TNS:could not resolve service name" (not a common oracle connection issue)
How to avoid re-occurring Err "ORA-12154: TNS:could not resolve service name" (not a common oracle connection issue) I made a web application which uses oracle database. Below is the minimum code which explains how I am accessing the data. At a time the application working fine and I can access and do everything with database. Some other time database server is down for scheduled maintenance. If I try to run the application at this point of time it will raise err "ORA-12154: TNS:could not resolve service name" (I'm catching this exception and displaying a custom error message to users). After some hours the database server is up an running. Now if I run the application it should behave normal and give database access. But i ...Show All
Visual Studio 2008 (Pre-release) how I show a window without activating it ?
Window.Show() activates the window, Window.Visibility = Visible too. Is there anyway to open a window and NOT having it activate In win32 I can do that with SW_SHOWNOACTIVATE. Note: using Popup is not a options for me. Felipe, I tried the above code with modifications to compile it (I did not use the code that had to do with using HwndSource and setting Visibility on the window) and I did NOT see the dialog opening again after pressing the button to close it. Can you ensure that you don't have some other event handler hooked up Also, another thing would be to put a break point in the KeyDown handler and see if it is called again after closing the Dialog. Now, another thing to point out here i ...Show All
Visual Studio Express Editions Visual C++ Express - can I compile a C code too?
I installed the MS Visual C++ Express. I have an existing C code. How do I create a C project for this If I can't do it, is there another MS Express that will enable me to do it Hi Where do you see "Project" and also "Properties" in the Visual C++ Express Edition. I see "File->New->Project". Pls clarify ...Show All
.NET Development Wrong value return by a stored procedure via DataSet generated by VC# 2005 Express
Hello all, I have a stored procedure which returns a value (int). This value is an ID obtained after an insert and should be unique. see: ALTER PROCEDURE [dbo].[sp_AddJobDescription] @name nvarchar(40) = NULL AS BEGIN declare @id as numeric(18,0) set @name=ltrim(rtrim(@name)) if (@name is null) begin Raiserror('Name can not be null',16,1) return 0 end if exists(select * from tbl_JobDescription where name=@name ) begin Raiserror('Name not present',16,1) return 0 end begin transaction insert into tbl_JobDescription(name) values(@name) if @@error<>0 begin Raiserror('Error inserting element',16,1) rollback transaction return 0 end set @id=@@identity commit transaction return @id END I have created a ...Show All
Visual Studio Team System Transaction timings for non webrequest transactions
Hey, I have a webtest that I'm running in a loadtest and am gathering timing details using the BeginTransaction and EndTransaction. In the webtest I have both WebRequests and a SOAP client making requests. I have surrounded both my webrequests and SOAP requests with Begin and End Transaction and have found that the SOAP transactions always return 0 for the elapsed time. First off, why would this be In my webtest I need to know exactly where the time was spent, even if the time was not spend with a WebRequest. And secondly, can I just use the Stopwatch class and somehow get it to show up in the transaction table Thanks for your help! -Cliff Thanks for the response! Nah, I WSDL'd me up a SOAP cl ...Show All
Visual Basic Decimal number
I have a decimal variable and i want to show only 2 or 3 digit after the dot like 1.123 How do i do it ...Show All
Visual Studio 2008 (Pre-release) Update Service Reference fails when operation include receiving a Bitmap
(.NET RT 3.0 RC1) When I use "Update Service Reference" (.i.e, svcutil) for a service with an operation that returns a System.Drawing.Bitmap, it fails and doesn't finish generating the client proxy file - only one stub class appears. The output window does not show errors, just "Generating files..." and the proxy file name. If I remove the Bitmap operation from the server's interface file, Update Service Reference is successful and I get a proxy file containing all of the other operations in the service contract. I am not using an explicit data contract for the operation because, according to Pallman's "Programming Indigo", any [Serializable] or ISerializable type has an implicit data contract, and Bi ...Show All
.NET Development Transfer data form webpage to other application
Hi All, I want to transfer the data form webpage to any other own application which is running in backend.How i develop this web page. which technology is good for this or any particular protocol i have to use for this. Please suggest if any idea regarding data transfer. Thanks Shiva Vrata Anand Do u want to transfer your server data to the client's database, or other forms Grenerally, it is not a good idea to do this by Web Pages. If you have to do this. I think you should check if the the client is accessible to the server, that means app in the server can connect to your client(your client should have a public IP). If it has, you can do it by any lanuage you like. But I suggest that your app be ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Building XACT project has failed error when building Spacewar
Building XACT project has failed error when building Spacewar Starter Kit i have latest version XNA Game Studio Express, XNA Framework, DirectX SDK any tips thanks =) Can you give us some more details What OS are you on What DX SDK version do you have installed (if any) Are you able to successfully create and run other XACT samples/tutorials (Look in the docs under "Going Beyond: XNA Game Studio Express in 3D") The information you've given is far too vague for anybody to help you. ...Show All
Visual Studio Team System VSTS MS Project integration
I'm trying to implement logical operations in a VSTS WIT for project planning purposes, it appears to me there is no way to realize this. As a result of that i need integrate these operations in the project planning tool MS-Project. Subsequently i'm trying to break into the VSTS-MS Project refresh event on the project side to execute the logical operations there to avoid the necessity of a separate action using a project macro. Can anybody point me in the direction of avoiding the need of a MS-project macro for logical operations like calculations and data compare. Hello, During a refresh operation,if the data has changed we provide an alert to an user that it was changed. But we don't s ...Show All
