Muhammad Umer's Q&A profile
SQL Server Generate Scripts option in SQL 2005 Management Studio
Did anyone even bother to test the Generate Scripts option for a database I changed the following options from their default setting: "Include Descriptive Headers" = True "Include if NOT EXISTS" = True "Script for Server Version" = SQL Server 2000 "Script Indexes" = True and scripted all Stored Procedures, Tables, User-defined functions, and Views Problems: 1. Generates IF NOT EXISTS (SELECT * FROM sys.objects ... should be ...SELECT * FROM dbo.sysobjects ... 2. Generates WITH (IGNORE_DUP_KEY = OFF) ... on the indexes. That portion is incompatible with SQL 2000 3.Generates EXEC sys.sp_addextendedproperty ... ...Show All
Windows Forms Event handling in design time mode
Hello. Can i handle event in my custom control, when it mode - design time For example, my control contain Button. Can i handle Button.Click event Thanks all, for any help. Thank you very much. I understood this idea. It`s not difficult... Thank you. ...Show All
Visual Studio 2008 (Pre-release) Odd problem when passing an array using a callback
Is there any problem is attempting to have a callback method that has an array as argument public interface class ISomeCallback { [OperationContract(IsOneWay = true)] void OnSomeEvent(array<int>^ pNumbers); } I find that this works fine as long as the array is under 550 in length, but if the array is bigger, then the call never completes, it just hangs. Both server and client hang! Anything I am doing wrong ...Show All
SQL Server SINGLE-USER MODE ALERT
Hi, Greetings. How do i set an alert in SQL SERVER if the mode is changed to Single-User mode. Thanks in advance, shanthy Hi Buckwoody, Thanks. I would like to set an alert in SQL Sever whenever the Database is changed to Single User Mode. Shanthy ...Show All
.NET Development Remoting and events
I'm completely disappointed of .NET Remoting. I'm developing an application which requires messages to be sent from a server computer to clients connected to it. Apparently (correct me if I'm wrong) there are two ways to do that: TCPChannels and direct tcp communication .NET Remoting Since I find TCPChannels to be very low level procedure, I want to use .NET Remoting. However I've lost the whole day searching for code on how to implement events over remoting. I haven't found very few incomplete examples for .NET 1.1 and VS2003 and none for .NET Framework 2 and VS2005. I finally came to this forum to find out that .NET Remoting's future ...Show All
Windows Forms Yikes: usercontrol inherits from abstract class
All was going well until I tried to open the designer window for a user control that inherits from an abstract (MustInherit) class. The designer won't open because it's trying to instantiate the base class, for whatever reason. Is there a way around this, is this by design or a bug, is it better in C# or .NET v1.1 I guess I can w ...Show All
Software Development for Windows Vista Problems with the Demos
Hello, I’ve tried to start with WinFX developement and for that I wanted to try the Demos of WPF. But I’m not able to build any of them. I use VC# 2005 Express, the WinFX Runtime and the Windows SDK. Now I load the Avalon Calculator Solution and press F5. Now the following Error occurs: System.Windows. Application .LoadComponent( this , resourceLocater); Cannot locate the resource 'myapp.baml'. That Problem is in every Demo. Where is my Problem What is wrong Can you please help me Thank you twickl The correct version of VS and Express SKUs is 2005 RTM. You'll actually need to make su ...Show All
Visual Studio Express Editions Debugging problem
Could you help me i have a problem with debugger. When i want to debug i get an error message : "Error while trying to run project : Unable to start debugging. Handle de liaison non valide" But when i go to the solution properties, if i uncheck the "Enable the visual studio hosting process" , that's work (but i lost the avantage of "hosting process") Thanks for your help I find the soluce Just turn the service "Services Terminal Server" from disable to manual. ...Show All
Visual Studio 2008 (Pre-release) Maintaining transparency of a PNG image when using "IMAGE" in XAML ...
Greetings - When I use the Image declaration in XAML, I can display the image I want just fine. However, for my PNG image, transparency is not preserved. I'd like to keep its transparency so that the underlying background color of whatever UIElement it is on shows through. Anybody seen this Thanks, Rick ...Show All
Windows Forms Scrolling picture box containing graph
Hi, i have problem of this kind. I have database witch contains some data. That data have to be viewed in graph state. So, i need to draw graph. That is simple, ArrayList points, than converting to Point[] pointArray and usage of DrawCurve method. Now, trouble is beggining. If i set max paintbox width to , exmaple, 400 pixels, how ican implement scrollbar to witch movement picturebox will responde in order to move graph and draw next area Most trouble gives me how to draw curve at point witch i do not have in pointArray. This is my code so far. using System; using System.Collections.Generic; using System.Collections; ...Show All
SQL Server Deploy of reports from command prompt
hi friends, can anyone tell me that , how can we deploy the reports from command prompt is there and command for that any help will be greatly appreaciated sandeep Yes. There is a tool named RS.EXE which will do this for you. You point it at a script which publishes the report on your behalf. Here is a BOL help topic about a sample script you could modify: http://msdn2.microsoft.com/en-us/library/ms160854(SQL.90).aspx ...Show All
Windows Forms how to add dataColumn to an array?
hi there, I am having problem adding dataColumns that i created dynamically to an array. I keep getting nullReferenceException. Could anyone help me here are the codes: Dim i as integer Dim cArray As DataColumn() For i = 0 To ColNum - 1 Dim dataCol As New DataColumn("Select Column", GetType(Boolean)) cArray(iiii) = dataCol Next ...Show All
Windows Forms ListBox and ListItem
The type or namespace name 'ListItem' could not be found (are you missing a using directive or an assembly reference ) foreach ( ListItem li in myListBox.Items) { if (li.Selected == true ) { //do something } } What reference am I missing. I have tried a few, but can't seem to find the right one. This is what I have on the page.... using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Data.OleDb; using System.IO; using System.Net; using System.Net.Sockets; ...Show All
Visual Basic Why don't all the properties work for my controls in VB express 2005 Beta 2?
I've downloaded Visual Basic 2005 Express beta 2 and have been trying to teach myself through various tutorials and VB.Net texts. Generally I've been making progress, but there is one major problem I can't seem to solve - the refusal of certain controls (dropped on the form at design time) to implement anything other than their default properties. Oh, and all my attempts to use controls at runtime just don't work at all. For example, when I drag-and-drop a ProgressBar onto Form1, and write a simple little button-triggered program to increment the ProgressBar with every Tick from a Timer, the program works fine with the default se ...Show All
Visual Studio Team System Could I work off line with Team Foundation Server?
It seems I could only connect to the TFS to work with work items such as bug, task, etc. Could I work off line with the Server Sometimes I have to work at home. Could I make a dial-up connection to the remote server in company, see is there any bugs related to me, then disconnect from the network, after I modify the source code, and reconnect to check-in my modifications to the code and change the state of the bug Thanks! Shelving is something else. When you shelve your work, you're effectively (but not precisely) checking it into a new branch (made just for you). When you unshelve you're getting that branch and then del ...Show All
