Dongwei's Q&A profile
Visual Studio Team System Checking in - Developer Comments & Other Comments
When checking in code, we put a requirement in that developers must comment what they did in the "Developers Comment" section (Check-in Notes). This is not displayed anywhere, in any email or on any web page in TFS. Regular comments are. Is there a way to display "check in Notes", or instead of doing this, require that developers put comments in the "Comment" section where they see the files they're checking in This way our CSR's can see what our developers comments are when they check in code. You'll need to install the dll on all of the developers machines the VS\common7\ide\privateassemblies directory should do. You also need to create a registry entry under: HKLM\Software\Microsoft\VisualStudio\8 ...Show All
Windows Forms Refresh DataGrid on unload of form
hi! I have two forms, say form1 and form2. Form1 contains a datagrid. (using 1.1 framework) on the unload of Form2 i need to rebind(i.e.) the DataGrid on form1. Form2 is shown using frmForm2.ShowDialog(); Any pointers would be appreciated thanks Rohan Wali you can use like this. if (frmForm2.ShowDialog() = DialogResult.Ok) then //Write your code here to repopulate the data grid. if user press the ok button on the form2 dialog box. and in form2 you have to set the ok button. end if ...Show All
SQL Server how does the .net app capture raiserror values from a stored proc
I have been using return values to check the status of my stored procedures called from an application. But how does one read the new raiserror values that are passed with sql server 2005 and using ado.net 2.0. Are they returned as parameters or as a dataset or what Thanks smHaig Hi; They are returned within the error itself, take a look below.... try { // your Data Access code } catch ( SqlException ex) { string strErrMessage = ex.Message; int nSeverity = ex.Class; int nErrCode = ex.ErrorCode; byte bState = ex.State; } ...Show All
SQL Server Processing SSAS2005 from DTS
Hi, I have a requirement to process SSAS2005 cubes from DTS. Anyone know how to do this or does anyone have any recommendations I've done a search on this forum and came up with teh following which was no help at all unfortunately: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=198374&SiteID=1 -Jamie Unfortunately I am pretty sure AS 2000 does not support the XMLA process command. The best work around I can think of in order to process AS 2000 objects using SOAP would be to write your own web service that used DSO to process the cube. You would need to have the web service running under a domain account that was a member of the OLAP Administrators group to get this working. ...Show All
Visual Studio Express Editions User Searches 2 fields to find a database record in application.
Hi, I am learning Visual studio 2005 Express Suites (very new learner). I am attempting, in a form to have a user type in a first name and last name into a text box each, then click a button to find a person in the database. The associated database fields are: StudentID, StudentFirstName, StudentLastName (StudentID is a foreign key in a a couple of other tables). The text box field names are: TxtBFirstName and TxtBLastName. The button name is: BSearch There seems to be a way to do this type of search through the bindingsource [studentsbindingsource] where I click the little arrow, choose "Add Query", click "Query Builder", then edit the SQL query. I am confused as to how to phrase the WHERE clause - basically it would ...Show All
Visual Studio Express Editions XML troubles: saving bitmap data
I'm writing a program and I want to use XML to save data files. I want to use XML because it's readable and easier to parse. If anyone has a better way other than XML please let me know. I want to save a data file that contains several text and numeric fields. I also want to data file to contain pixel color information for a bitmap image. In other words, I want to save binary information in an XML file. I know this is possible, but I'm having some trouble because my bitmap data contains illegal characters (like 0x00, 0x10, 0x13, 0x15, etc.) Is there a way to write this information to an XML file and read it back again without VB complaining Is there a better way to do this other than XML Thanks for any and all help. fu ...Show All
Windows Forms Problem in ultraTabControl
I have a winform which has a ultraTabControl having 3 ultraTabPageControl in it. The dock property of the ultraTabControl is set to fill so that the view comes properly. Now its working fine in Visual studio 2003 (1.1 frame work) but when I am migrating same code to 2005 (2.0 frame work) the view is not coming properly though the dock property is set to fill. Any body has solution for this.. As far as I know "Ultra" controls are made by Infragistics. Don't you think you should ask them first ! ...Show All
Visual Studio Express Editions Creating Excel File using VB.NET
While creating an excel spreadsheet in VB.NET I get an error at the end of the entire program. Can anybody help The code I am using is shown below: Dim Row As DataRow For Each Row In Table.Rows If Row.RowState <> DataRowState.Deleted Then Dim ExcelRow As DataRow = ExcelDataset.Tables(Table.TableName).NewRow Dim i As Integer For i = 0 To Table.Columns.Count - 1 ExcelRow.Item(i) = Row.Item(i) Application.DoEvents() Next ExcelDataset.Tables(Table.TableName).Rows.Add(ExcelRow) End If Next 'Try Adapter.Update(ExcelDataset, Table.TableName) ' Error Occurs on this line Thanks loginmanish ...Show All
.NET Development Binary Read
I am looking for a way to read double data in large binary chucks using the ReadBytes command from Binary Reader. I have tried to define a StructLayout since unions are not supported in Managed C++ as shown below: [StructLayout(LayoutKind::Explicit)] ref struct read { // data array for vector [FieldOffset(0)] double * data_array; // data_bytes from file [FieldOffset(0)] array < unsigned char >^ data_bytes; }; And read the data like: read Test; Test.data_array = new double [numrows]; Test.data_bytes = binReader->ReadBytes(numrows); However the program does not like the "array <unsigned char>^ data_bytes" defined in the StructLayout and crashes at runtime wit ...Show All
SQL Server sql 2005 Transaction log size
We have a database that is backed up every night (full backup). The database size is around 5GB and the transaciton log is about 3GB. And it's 3GB after the backup too. I thought the log size should shrink after each full backup. I can't imagine what data the log needs to maintain after a full backup is complete. What can be done about this large transaction log TIA, barkindog i simply right click the db, all tasks, shrink, shrink file, log file. it went from 500mg to < 1mb. not sure why it wroked for me and not others. ...Show All
Visual Studio Team System New work item ticker tool?
Hello Is there any tool like the Team Build Ticker that can give me a notification in the system tray when a new work item is created It will be great if I can set filter for example to get notitifcation for bugs with a given severity No such tool is official released yet. We have email alerts for that purpose. You can easily create custom alerts for various system fields (unfortunately severity is not one of them) or when new workitems get created. For list of available fields, check http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=725281&SiteID=1 ...Show All
Windows Forms DataGridView color
Hi, I have a DataGridView and i want to color some of his rows How do i do it Thanks ...Show All
Visual Studio 2008 (Pre-release) Using LINQ to SQL-enable legacy database
Hi, I am new to LINQ and I just wanted a quick check with you guys on a question that I have but couldn't find answer to it yet. I have a database and I want to make it support SQL. Currently, it has a query language which is SQL-like, but for the future I want to use LINQ or SQL to access it. Is this possible Regards Hi jwooley, thank you for your reply. We are using a custom database developed to support our projects and I want to implement a data provider so that we can query it with LINQ. My question is can I start working on that at this point, or LINQ needs to mature before that Thanks again ...Show All
Visual Studio Code Snippets not uninstalling
Has anyone had an issue with code snippets not uninstalling correctly When I try reinstalling an updated guidance package, I now have multiple copies of the same snippet in my intelisense and one of the options does not work (the uninstalled copy). Thanks! The responsible entries are located in the "ExpansionsXML.xml" file that resides in the "C:\Documents and Settings\<USER>\Local Settings\Application Data\Microsoft\VisualStudio\8.0\1033" folder. If you delete or comment them the multiple code snippet entries in the intellisense will disappear. Salut ...Show All
Windows Live Developer Forums Using the DashBoard Control from v3 in v4
I noticed that the dashboard navigation control in v4 looks different than the one in v3. Does anyone know of an easy way to get it back to the original format without having to implement my own custom version of the dashboard (navigation arrows, etc...) Regards, Beezle From my knowledge there is no way to go back to the V3 dashboard. You'll have to hack up the current V4 dashboard to make it look like the V3 if your really daring ...Show All
