dehoux's Q&A profile
.NET Development Table Adapter and multi-user environment
I am writing my first .NET application after years of using VB 6.0. As I understand it, the new table Adapter takes a "snapshot" or "cache" of the records in the table, until you TableAdapter.Update. Is this OK in a multi user environment I am writing an inventory program. I want to avoid the following problem... POS computer A sells an item, so my program changes it's quantity from 12 to 11. Two minutes later POS computer B sells one of that same item. It's Table Adapter's cache or snapshot may still think there are 12 of that item, and it would do the same calculation, and it would appear like there were 11 of th ...Show All
Windows Forms adding new row in datagridview
How do you get the values that were entered into a new row of a datagridview and update the datasource Is there an event that is fired when the user is finished or should I use an "add new button" to capture the new row. I am using bindingsource in my datagridview. the bindingsource datasource is a dataset. thanks! yanci. when the user finish entering the row to the datagrid, the row will be added to the dataset (related datatable) automatically. All you have to do is call the update of the dataAdapter and AcceptChanges of the Dataset. In order to get the row that was added use the following, VB.NET: CType(Tab ...Show All
Visual Studio Express Editions CDate function returns 'IndexOutOfRange' error - also in VB.Net 2005 Beta2
Hi folks, I have already reported this error in the VS 2005 Beta2 forum, but was told that it was not reproducible (VbCity and VBug, and your UK Launch team were also unable to reproduce the problem). I think I now have a lead on the issue! It also looks similar to a problem reported yesterday on the VB Express forum - 'I keep getting the out of range exception'. I have condensed the problem to two lines of code: Dim myDate as DateTime myDate = CDate("01/01/2005") The above error is reported on execution of the second line. This has now occurred on 6 different ...Show All
Windows Forms Windows Schedular??
Can anyone tell me how you would go about creating a scheduled task in Windows Schedular with vb.net code ...Show All
Windows Forms Creating List and Details view with Usercontrols
I am currently developing a MDI program and I would like to have this MDI-child which contains another usercontrol with a datagridview with the list of employees, and when double clicking on a row (employee), the usercontrol with the datagridview disappears and a usercontrol with the details of this specific employee shows. So currently I have the following - A MDI-Child form (Employees) with a panel to contain the usercontrols. This form also contains the employees dataset. - A usercontrol (EmpListView) containing a datagridview listing the employees - A usercontrol (EmpDetailsView) containing detailed information about the selected emp ...Show All
Visual Studio Team System VS crashes when using unit tests
Hello, When I'm running unittest in visual studio I often get the following error msgbox: COM object that has been separated from its underlying RCW cannot be used. After I click OK it's impossible to start any other test. So I use the X on the right top corner to close vs.net but then I get the following message 3 times in a row: Unexpected error encountered. It is recommended that you restart the application as soon as possible Error: HRESULT: 0x80131527 File: vsee\internal\inc\vscomptr.inl Line number: 473 After closing these 3 msgboxes the app shuts down. When I reboot everything works again, but that do ...Show All
Smart Device Development Odbc link for ppc
Hi I want to make a ppc application and write data from the ppc to a local access database, i've seen it's possible with odbc.. but i don't know how Can someone help me with this grtz There's no ODBC drivers exist for PPC. Where your database is located On the device or desktop ...Show All
SQL Server Can not connect to SQL Server
I installed SQL Server 2005 (server and client components) on Windows Server 2003 with SP1. I can connect to this sql server from any other machine. However, I can not connect from this machine to sql servers on other machines. I have tried named pipe and TCP/IP. Neither of them works. The error message is can not establish connection. Any suggestion Thanks, What is the exact error message HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Smart Device Development How do I bind two DataGrids in a master-detail relationship?
for Compact Framework 1.0 Hi Ilya, I am doing the same as you have written here (the above Visual C# code) BUT it gives me the following error: Unable to cast object of type 'System.Windows.Forms.BindingSource' to type 'System.Data.DataTable'. Please how can do this ...Show All
Visual Basic A VB Program -Confirm On exit
Hello! I am a beginner in VB, basically I am creating a notepad application as a part of my learning. Im doing it in VB.NET. I am having problem in writing code that I want, which will ask for a save before exit confirmation, wenever i click in red X button on right. I want also include a check, so that only wen there is some event changes in the richtextbox (that i have used as d writing area) the save on exit dialog will pop up saying - "Some changes detected! Save <Yes> <No> Cancel>" Pls help me with code!! Thanks in advance! darkfreedom ahahahh works for me... now if i could only code people with that o ...Show All
Visual Studio Express Editions GridView with changed Header Text wont Update
EDIT: see 2nd post for more up to date testing results. I'm having a few mildly frustrating issues with these components because finally they are usuable for me (2003 couldn't bind parameter values to controls), it's almost working except for one small niggling problem... I have setup an SQL database connection with my SqlDataSource and bound it to my FormView. I have manually verified that all 4 of my SQL statements exist. The formview displays the data in text boxes after clicking the provided "edit" LinkButton but when I click on Update, nothing happens. The data in my SQL database does not change. I know it is executing b ...Show All
Visual Studio Team System Team Build Error - TF42046 - Unable to Execute Team Build
All, I am working with a new installation of Team Foundation Server and I am struggling to get the Team Build component to work. Here is the Setup that I am working with: All Systems are running in a seperate Domain (BOOKSTORE) from my company's domain (CTS) BSTEAMSYSTEM - this is the Team Foundation Server that is running Team Foundation Server. I have the application that I want to build stored here in Source Control This is a Virtual Server that is hosted via Virtual Server. The installation has both the App Tier and Database Tier running on this VHD. Team Build IS NOT installed on this VHD. BSDEVBH ...Show All
.NET Development .Net / Windows Remote Desktop redraw issue?
A client has reported that a .Net application running on a PC alongside a windowed Windows XP Remote Desktop session causes the users desktop (not the remote desktop) to flicker from time to time. The same app running without the remote desktop session works fine. I have noticed something similar on my PC, when running a remote desktop with the .Net IDE minimised. The problem goes away when i close the IDE. Has anyone else seem similar problems thx Steve ...Show All
Visual C# don't understand AppDomain.CurrentDomain.SetPrincipalPolicy
Hi, I don't understand what: AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal); Is made for. Thread.CurrentPrincipal return always the same with ou without that piece of code. Does anybody has an example demonstrating a difference thank you OK thank you Vikram. Your link is very interesting and help me to clarify some details. I also disassembled some classes like thread, appdomain and httpapplication and I thing I have clear ideas now on what happened. In fact there is 2 cases: If the application is hosted by ASP. IIS authenticate a user (possibly anonymous) an HttpContext is created and passed to .NET a ...Show All
Windows Forms Changing text of dropdownlist style combobox without text being in the list
I have a combobox on my form which is filled with values from a database table. I want to be able to set the text of the box to something which is not in the list. Changing the dropdownstyle to "DropDown" allows me to do this, but then i do not want to let the user type anything in. Basically what I really want is to behave like the style set to DropDownList, but be able to set the text also. I'm currently using a custom control where I have just overridden the keypress events, but It still shows the cursor etc which i dont want. Does anyone know how i can do this. Perhaps by setting the style to a DropDownList and overrid ...Show All
