carthegenian's Q&A profile
Visual C# How can I omit the error mark on Datagrid ?
I get an error when I save data and I had rejected changes but the error mark still appear on my datagrid. Please help me disappear this mark ! Thanks in advance ! private void btnNew_Click(object sender, System.EventArgs e) { this.BindingContext[dt].AddNew(); txtCateName.Focus(); } private void btnCancel_Click(object sender, System.EventArgs e) { this.BindingContext[dt].CancelCurrentEdit(); } private void btnEdit_Click(object sender, System.EventArgs e) { txtCateName.Focus(); } private void btnSave_Click(object sender, System.EventArgs e) { this.BindingContext[dt].EndCurrentEdit(); try { i ...Show All
Visual Basic Problem with assigment
I used the following code to assign some values but lineItems(0), lineItems(1) always contains the last set of result of Salesline2. Dim salesLine2 As New taSopLineIvcInsert_ItemsTaSopLineIvcInsert Dim LineItems(1) As taSopLineIvcInsert_ItemsTaSopLineIvcInsert With salesLine2 .SOPTYPE = dr.Item("Type") .SOPNUMBE = dr.Item("DocNumber") .CUSTNMBR = dr.Item("CustId") .DOCDATE = dr.Item("DocDate") .ITEMNMBR = dr.Item("ItemNum") .QUANTITY = dr.Item("Quantity") .UpdateIfExists = 0 End With LineItems(0) = salesLine2 With sale ...Show All
Windows Forms VS 2005 Toolbox Refreshing
Hi, I have noticed that the toolbox in VS 2005 contains a tab for every projects in my solution that contains a component derived class. During builds of the solutions each of these tabs are being refreshed / rebuild and it can take a little time. Is there anyway of stopping this refresh, or is it a matter of removing the tab from the toolbox Maybe this is a bug that has been fixed post Beta 2 Thanks for your help Graham Mike, I am going to check that out first thing in the morning. If that does it, there will be a lot of happy people in our office. I asked multiple developers on my team to ...Show All
SQL Server SQL 2000 EM Prob. after 2005 install
After installing SQL 2005 Dev. I get an error from SQL 2000 Enterprise Manager's MMC Console when I right-click on database properties for any database shown in the EM list, and EM freezes requiring me to close it and re-launch it. Should I re-install SQL 2000 along with Analysis and Reporting Services Thanks for any help. Only one SQL DMO dll can exist on the server and it has been replaced by the new SQL2005 version. You can fix it later if you uninstall SQL2005, but in the mean time SQL 2000 should work fine side by side and you can manage both versions using the new SQL 2005 management studio tools. ...Show All
Visual Studio Express Editions installing express editions on same computer as full editions
This refers to the final products. Can we have visual web developer express and sqlserver express alongside vs stuidio 2005 and sqlserver 2005 developer edition Any issues dennist685 I'm new to asp.net and the express edition might help me learn it faster. Am I wrong dennist685 ...Show All
Visual Basic free up the memory allocated to a variable
Dear All, Procedure ABCD() DIM xyz as string xyz="....." ---------- 'from here onwards, I don't need or I am not using the xyz variable, So I want to free up that memmory. How can I -------- ------ END SUB Please read the comment in the code., If possibel please give me an answer. regards citrus When the variable goes out of scope and is unreferencable in the application then it will be subject to collection by the grabage collection process. So in the case of local variables such as this - once the procedure has executed then it may still reside i ...Show All
.NET Development xml to sql server
I need to get xml documents into sql server. I am using asp.net 2.0. I have been advised to pull the xml document into a dataset and then push this to sql server. I assume the first time the sql tables would be created. Can this be done without mapping the individual fields If so can someone point me to an article that shows how to do this. Thanks Danny Hi Danny, SQL Server 2005 has good XML support but I have no idea how it works however, for SQL Server 2000 you need to use the OPENXML stored procedure. This lets you map elements in the XML document to fields in a table by using XP ...Show All
Smart Device Development how to add Toolbar into menubar created by SHCreateMenuBar?
Hi all experts, After create menubar by SHCreateMenuBar, i want to add Toolbar beside the menu in menubar It's very easy and clair in evc++ 4.0 but in visual studio 2005 it's so stupid cos i spent a lot of time but i couldn't find out. Thank for your instruction. Hi, First, thank for your viewing. In fact, i don't find any way to add Toolbar beside the menu in menubar created by SHCreateMenuBar. But i will introduce another way to add menu and toolbar in visual studio 2005 with SHCreateMenuBar. To do that you have initialize your varibale ( which is SHMENUBARINFO ) before pass it to SHCreateMenuBar. Make attetion in nToolBar ...Show All
Visual Studio Problem with SS and VS Database Projects
Hi, we have a problem with Source Safe binding and database projects in Visual Studio. To reproduce the issue do the following: person A adds a script and checks out the project file person B adds a script too but gets the "already checked out by another user" message person B tries to add a script again and it works!!!! Without error message or something like that. The file is in Source safe but not in the project file. How can we solve this What type of project are you using Which version of VSS are you using It appears that the script is added to your ...Show All
Visual Studio Team System "Remaining Work" report only shows active workitems
Using TFS Beta 3 Refresh, I've created a MSF project, imported 100 or so workitems ( via Excel ) and closed 9 of them. When I look at the "Remaining work" report however the chart starts at 105 workitems and decreases to 96. The closed workitems do not appear. Have I missed something or is there a problem with the "Remaining Work" report Problem solved...Having played with the report definition I managed to get closed WIs to display by changing the query to select "closed" WIs rather than "Closed" WIs. When I originally changed the state of a WI, I typed &qu ...Show All
Windows Forms Run a program in the background
How can i run a program in the background I've putted 0% oppacity but when i press alt+tab it shows that there is something running. Thanks, Guilhreme Yeahh.. this works sorry for not being objectivly at others post. Thanks, Guilherme ...Show All
Visual Studio Team System Start of "If" statement
How can i determine the beginning of an "if" condition I understand that FxCop renders only the IL instruction stream. I basically need to determine the number of nested levels of "if", "while" and "for" within an "if" condition. Any pointers how this can be achieved Hi Pradeep, For such analysis you will need Dataflow, FxCop currently uses dataflow in some of its internal rules. But due to the fact that we're in the process of replacing our current dataflow engine and that the current engine's API's are very complicated, we don't recommend taking a depen ...Show All
Software Development for Windows Vista A new outlook on Windows Vista
Hi! I am fascinated by the way in which Microsoft plans to change the nature of operating systems radically. Vista promises a better future -- lots of new data exchange solutions, better information organization and an easier GUI. It looks very exciting to me. However, there is still some doubt whether Vista will really be able to define the new wave of technology. I've been a user of Windows for the past 9 years, and have been accustomed to it (one reason I'll accept Vista quickly). I'd like to point out a few things that Microsoft should improve in order to gain more popularity (and market share ). Of course, I'm not a Microsoft empl ...Show All
Windows Forms Showing property values as dropdownlist
Hi, is there a method to show a custom control property values as a dropdownlist (like ControlToValidate property) I know thet declaring an enum type property is a solution. Is there another Thanks Marco Apply a custom TypeConverter to your property (through the TypeConverterAttribute) and override GetStandardValues, GetStandardValuesSupported, and GetStandardValuesExclusive. ...Show All
Visual Studio 2008 (Pre-release) FrameworkElement.Tag not persist
I have tried using Button.Tag (FrameworkElement.Tag) to store some custom object (created with a new operator, not from stack). When handling the Click event for this button, the Tag property always set back to null. Am I doing something wrong, or is this a known issue for WPF beta Thanks I'd be really surprised if this was a bug...(Tag doesn't do much...) Here is a quick test I tried...all seemed to work fine. I didn't try it with the Feb CTP...but it should work fine there too. Window1.xaml <Window x:Class="TagProperty.Window1" xmlns=" http://schemas.microsoft.com/winf ...Show All
