cb2005uk's Q&A profile
SQL Server DTEXEC ReturnCode
Hi, The DTEXEC Utility has the capability of returning ReturnCodes which have specific meanings e.g. ReturnCode=3 means: The package was canceled by the user. Is it possible to set my own ReturnCode values For example, my Package contains a Script Task which contains code to search a folder for a file. If the file cannot be found then I make the Script Task fail and hence the Package fails. But, when the Package is invoked by the DTEXEC utility, then the ReturnCode is always set to 1. Is it posssible to set the ReturnCode from within the Package (in, say, a Script Task in the Event Handler) to a different value It is necess ...Show All
Smart Device Development Menu Items in Menu Bar
Can you have more than one menu item in the menu bar Currently, I have two menu items (Tools and Edit) in the command bar. When clicked, both will bring up a popup menu. HOWEVER, when I click on Edit...i see Tool's popup menu instead of Edit's own correct menu popup. Can I even have more than one menu item in the command bar Anyone have any ideas So I think i may have found the solution...kinda of. So I was at the MSN website regarding migration to vs2005. I was completing the exercise and I noticed it answered my problem. http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnp ...Show All
Windows Forms Advice on possible C# control I can use
Hi, I am new, new, new to C#. I am currently involved in defining requirements for a project and am wondering if there is a control available in .net 1.1 that is somewhat like the DataGridView in .net 2.0. I will not be permitted to use 2.0, so I would like an alternative (3rd party is OK also). I essentially need to be able to display a grid-like control with multiple icons and text for each row. Clicking icons would invoke different actions, etc. Any info appreciated. CWB I use the ComponentOne C1FlexGrid. It works great for me. Good Luck, Greg ...Show All
Visual C# How do I test a button when running an event?
I have a start button which runs a section of code continuously - how do I test the stop button while this code is running Colin, it is usually not a good idea to have an event executing for a long time, as while you are serving an event, the other events get blocked. This amounts to freeze the user interface. If you plan to have a lengthy task running in response to a button click, you should probably use a Thread, or the ThreadPool. It's fairly easy to use, and it's well worth the little time it takes to set them up, as the code becomes cleaner and easier to manage. Anyway, there is another option, ...Show All
SQL Server print blank page
i export my report to pdf and its leaving one blank page with every alternative page is there any setting thanks Make sure your layout, pagesize and margins all agree. Also, search this forum. This topic has been addressed several times in the past. ...Show All
.NET Development SQL 2005 Express Connection via Visual Studio
I'm trying to connect to an SQL 2005 Express DB via Visual Studio 2005 Express. Unfortunately, I have been unable to do so and the error message indicates the problem is caused by my default SQL settings. Below is the error message: " An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)" Does anyone know how to alter these original settings so I can successfully connec ...Show All
Visual Studio Express Editions What the Array is going on?
Is there a problem with array.sort If I load an array in to a list box I get A is Element [0] in the array B is Element [1] in the array C is Element [2] in the array but when I click the button to sort the array I get is Element [0] in the array A is Element [1] in the array B is Element [2] in the array Here is the code, Private Sub btnShowAll_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnShowAll.Click ListBox1.Items.Clear() For i = 0 To 2 ListBox1.Items.Add(arrString(i) & " is element [" & i & "] in the array") Next End Sub Private Sub btnSort_Click(ByV ...Show All
Visual Studio Team System Beta 3 >> Beta3 refresh >> RTM Question
Hi, We are happily running Beta 3 TFS and despite a few little issues are very happy with it. We have considered upgrading to the Beta 3 refresh for a while now but have been a bit reluctant to do so as we had a few failed attempts installing beta 3. As we will eventually upgrade to the release version does anybody know if we should be upgrading to beta 3 refresh prior to this or can we go stright to the RTM version Is there any advantages to upgrading to beta 3 refresh now in readiness Is the Beta 3 refresh running againt the release version of SQL server so therefore by installing this now it would minimise the impact of the up ...Show All
Visual C# Forms datasets and folders
I have a Windows project and would like to organize it a little better. It would be nice to have all my forms under a forms folder and datasets under a Datasets folder. I have tried doing things this way but have run into problems. Without me doing something different than what I am, my code does not always recognize these forms or datasets when they are in folders. Is this something that C# just doesn't like If so then I'll just have to get used to it. If not, what can I do to make my code recognize a form that is in a sub folder of the project. For example, this should work: AboutDlg3 dlg = new AboutDlg3 (); dlg.ShowDialog(); ...Show All
Visual Studio Team System TFS Crashes every 2 - 3 hours
Hi, Configuration. - TFS Beta3/Sept CTP/RC1 We have been with this config for 2 months now without any issues, for the last couple of days, we get disconnected from the server every 2 - 3 hours. We have to restart the server to reconnect to the TFS. Find TFS Error log below. Thankyou ________________________________________________________________________ TFSServices: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 12/7/2005 9:18:12 AM Machine: GDCDEV Application ...Show All
SQL Server Deploying Analysis service solution
Greetings, How do I deploy an Analysis services project on to diference machines. I have followed the process laid out in MSDN and changed the server to the remote server name while deploying. It throws up an error that the user does not have permissions to create objects on remote server. Please help me understanding the process of deployment and how the analysts can open up the deployed cube in their machines Thanks/Regards Shiv Hi, I am facing the same problem, i did as u said and got the following error: TITLE: Connect to Server ------------------------------ Cannot connect ...Show All
Windows Forms DataGridView Row Selection With Mouse Right Click
How can I select a row of datagridview control when i click with mouse right button. Here's what I use - a little bit of work, but seems to work regardless of other property settings on the grid. This code makes sure the mouse down is on a cell and not a column orrow header cell. This code clears all other selections and selects the row that the user clicked on because that is what I wanted, but you don't have to do that, of course. Private Sub dgvResults_MouseDown( ByVal sender As Object , ByVal e As System.Windows.Forms.MouseEventArgs) Handles dgvResults.MouseDown If e.Button = Windows.Forms.Mo ...Show All
Windows Forms Do I need to create ReportDocument to use Crystal report?
Do I need to create ReportDocument to use Crystal report I did not use reportdocument but still can view. there are just many differences check the help files or go to <a href="http://www.crystaldecisions.com/products/dev_zone/net/default.asp ref=devzone_main">http://www.crystaldecisions.com/products/dev_zone/net/default.asp ref=devzone_main</a> for support they will tell you the differences between& ...Show All
Windows Forms Smart Client Error
I'm trying to host my application in IIS. When I attempt to access my application (ie: http://www.mysite.com/myapp.exe) it downloads all the assemblies correctly but when it tries to run it throws a "System.TypeIntialization" exception... this seems to be thrown by System.Drawing. I have the assembly set for full permission. Any ideas See http://www.superdotnet.com/csharp_ ...Show All
Visual C# C# Events
Hello, i came from programming in visual basic 6 to look at C# (2005 express). Something i noticed is for example in vb6 if i double clicked on the form i could chose from the list box events such as Form_Load, Form_Resize, Form_Paint, and so on. In C# i cant do this, im not sure how to get these events for any controls, could someone please help me Thankyou Hi luke, Glad to be helful, For further assistance, Migrate Your VB6 Code to VB.NET Help for Visual Basic 6.0 Users Visual Basic Reference Best wishes. ...Show All
