Greenwu's Q&A profile
Visual Studio Pending checkins window display non source controlled files
We currently user Visual Sourcesafe to manage projects across development team and have now started to implement Visual Studio 2005 and are looking to take advantage of the Source safe integration, specificaly the Pending Checkins window which could be extremly usefull to us. However, I am experiencing one problem. We don't always add all the folders / files within a website to source control, one example of why could be because within the route web folder there is an uploads folder where the client can upload images / documents through their CMS and display these on the web itself. Obvioulsy if this folder was included in sourcesafe they would be unable to add new files to it or remove existing ones. The problem I have is that when ...Show All
SQL Server Job scheduling for Packages in SQL Server 2005
---------------------- MS Win XP Pro 2002 SP2 MS SQL Server 2005 MS Visual Studio 2005 ---------------------- Can anyone help me (even by pointing me to a documentation) in order to schedule Packages (from file system source) in SQL Server 2005. I've configured providers logging, but still the error file doesn't give me any explanation why the error happens: "#Fields: event,computer,operator,source,sourceid,executionid,starttime,endtime,datacode,databytes,message OnPreValidate,PC1234,NT AUTHORITY\SYSTEM,D_AGR,{8A4FA774-F5F0-40DE-AB16-A93F27950E09},{8A918844-8E43-403D-A606-C8CB4B7D8238},31/08/2006 16:42:55,31/08/2006 16:42:55,0,0x,(null)" I've also done the same on the Step properties under 'Logging' In Manageme ...Show All
SQL Server Is there support for xml path in SQL Server 2005 Express Ed?
Hi. I tried a for xml query in SQL Server 2005 Express Ed. but it says that there is an error near path. I tried the rest of the statements in the query and they were fine. So this led me to ask if it there is for xml path support in SQL Server 20005 Express Edition Just in case this has anything to do with it, I have an installed version of SQL Server in my PC too. But I didnt find that in the requirements in installing the Express Edition. I really need to know this...It's kind of hard having to do the queries in for xml explicit, which works by the way. yes, thank you.. I was more careful this time.I still have to check it with the VPS though. Thanks a lot, its reassuring to know that at least that's d ...Show All
Visual Basic VB2005 Code Sample to handle restaurant operation
Hi, I was wondering if anyone has found on the Internet VB.NET code to handle the day to day operation of a restaurant/bar I can learn from. Functionality to look for would be: - Table Reservations - Handling of the food menu - Inventory handling - Billing - Printing on different ticket printers I'm just looking for samples, either using Access or SQL Server. Thanks, ST Thanks ahmedilyas for both posts. Actually I know VB/Access (SQL) quite well (I've developed several applications with printing capabilities also, etc). I'm just trying to learn the best practices and how people go about implementing for example, table reservations ie. I'd have a pool of tables, I'd flag a table to be reserved for tomorrow at 19:00 ...Show All
Visual Studio Express Editions Problem with Lexmark printer/driver ?
The program I'm working on allows the user to do some printing. It works fine with my Epson R220. One of my users is having problems with his new Lexmark Z617 (print preview is blank except for 1 black pixel in the centre and page setup dialog is blank!) but it works fine with his old Epson 600. I installed the Lexmark driver and tried my software. I got the same results as my user ie. no good. I installed several other printer drivers and my software works fine. Looking through the help (and thinking there must be something wrong with my code) I found this and tried it: Public Class Form1 'This method displays a PageSetupDialog object. If the user clicks OK in the dialog, selected results of ' the dialog are displayed in ...Show All
SQL Server SQL Express 2005 and BIDS
I'm sorry but I am so frustrated from searching and trying things! I can't understand why this can't be resolved much easier.............anyway I am trying to use BIDS on sql server express 2005 after attempting to install the tool kit a couple of times on different platforms. I have installed: 1) VS 2003 (also Visual C# Express on another machine); 2) .net 1.1 and .net 2.0; 3) SQL Server 2005 Express with Advanced services and the tool kit. The sequence of installs is as follows 1).net 1.1 was there from the beginning 2)VS 2003 3).net 2.0 4)sql server 2005 express 5) tool kit I see BIDS in the menu but devenv.exe does not exist. I've seen several workarrounds including finding and running vs_setup.msi but ...Show All
Visual Studio 2008 (Pre-release) Dispatcher.BeginInvoke and application freeze
Hi everybody, In my application, I use Dispatcher.BeginInvoke() to allow a long method to be run asynchronously. But this doesn't prevent my application to be freezed during the call of Dispatcher.BeginInvoke(): i click on a button which call the Dispatcher.BeginInvoke() method, but this button (and all of my app) is freezed and i've got to wait before being able to use my app again.... How can I launch a method asynchronously so even if it's a long method, I'm still able to use the app I tought Dispatcher.BeginInvoke() could do it but it looks like not..... Thanks http://blogs.msdn.com/nickkramer/attachment/553378.ashx Look at the examples in this document ...Show All
Visual Basic Datagridview Scrollbars Freeze up after binding datata to the control
Problem: Scrollbars are not functioning after the datagridview control is populated with data. I am having a hard time trying to figure this out, but I am loading an excel file into a table, and then binding the table to the datagridview control. However, after the datagridview control is filled. The scrollbars seem to be frozon. I have tried loading a table with 10 rows and tried other sizes as well but same result. The only way, I was able to get the scrollbars to function correctly was to hide the form and then show the form again. After showing the form again with the datagridview already populated the scrollbars function correctly. I have also tried to refresh the datagridview control, the form and I also tried application.doeve ...Show All
Visual Basic ClickOnce and VB2005 Express question
Is it possible to include a access database file in ClickOnce Publish. I have found a forum that shows a way in a full VB2005 but I cannot find how to do it in the Express version. Are InterOp ActiveX and self written DLL automatically included in the Publish sequence and registered properly on other computers The answer is yes....from the project explorer click on your database and then look at the properties window and make sure that "Build Action" = "Content" and "Copy to Output Directory" = "Copy If Newer" HTH ...Show All
Visual Basic Help using VB2005 with a MySQL Database
Yeah, I'm still learning lots of stuff. I think i have the basis covered in VB2005. Yet I have installed MySQL server 5.0 and SQLFront. So, I created a small database to practice and try to figure out myself how to make an application like an agenda, something simple. My idea is to have text fields in the form to capture data, and buttons to save em. A button that pops a small form to make a search by ID, etc, something simple like I said. But I can't find a way to connect the database I created on MySQL with the aid of SQLFront, in VB2005. How do I do that If you have a link for a tutotial, or a book u can recommend, that would help too. Thanks in advance. You might want to start with the below article ...Show All
Visual C# exposing a C# DLL's members to non .NET apps
Hi, I posted this in another forum (slightly different question though) and the answers I recieved weren't very helpful. Basically, I need to create a C# DLL who's members can be accessed by a non .NET application (it's a Windows program called Extend). Now I was able to write one in C++ and have it's members be exposed using extern "C" int __declspec(dllexport), but so far have been unsuccessful in doing so in C#. Is it even possible I don't believe it is. In order to call a method inside a C# class you'll have to start up the .NET runtime which might not even be running in the other app. Furthermore even in C++ you can't really expose a C++ class member (which is all a C# method is) directly. ...Show All
Visual Studio Express Editions TableLayoutPanel Formatting Help
Hi, I have created a TableLayoutPanel (TLP) in my application and I am having trouble formatting it to have the look I desire. I created the TLP in the form designer; it has 4 columns and 20 rows. The column widths are set to absolute 100; they should fit inside the TLP’s width of 450. It requires a vertical scrollbar, but no horizontal scrollbar. My difficulty is that the fourth column fills the remaining horizontal space (150) and both the Horizontal and Vertical scroll bars are present. I have tried to fool VB, but so far it is unfoolable! I have added a fifth column just to make the fourth column the correct width. This is a partial solution, but the horizontal scrollbar is my nemesis. Any suggestions ...Show All
SQL Server sql log files can not increase?
Database's log file can not increase when nearly get 2 GB Mine is sql server2000,What's wrong with this Any idea about this Thanks Do you really need such huge log files Or did you just forgot in the past to shrink these files HTH, Jens K. Suessmeyer. --- http:://www.sqlserver2005.de --- ...Show All
Visual Studio Express Editions Name of user control
Why does this return an empty string when used in the same user control class Private CaptionString As String = Me.Name Later in the same class, CaptionString returns an empty string. In VB6 I used the Extender object to retrieve the name of the control, but the code above doesn't work. It will only return an empty string when I really want e.g. Button1, Button2 etc. In design time the control caption will read "Button" no matter how many buttons I populate the form with, but when I run the application, the button captions will read "Button1", "Button2" etc. So I'm still not getting what I'm looking for :) ...Show All
Windows Forms Visible rows
Hi, hoping someone can help me figure out why I can't seem to prevent a datagrid from re-sizing when the datasource is updated. ie my datagridview is bound to a custom collection, works well, but if the number of rows is greater then the original height of the control at runtime, rather than showing the scrollbar, it automatically re-sizes the Datagridview, sometimes beyond the bottom of the form. Any ideas. so the datagridview is expanding past the form or is the form expanding as well it almost sounds like AutoSize for the form is set to true. or the DGV has a none default setting for the scrollbars. ...Show All
