Kev-ster's Q&A profile
Windows Forms ComboBox DataBinding & CurrencyManager
I am having trouble displaying the correct value in a combobox when the position of the CurrencyManager changes. I have a pretty complex DataSet with 5 DataTables and 4 DataRelations. For this particular, only 2 DataTables are involved with one DataRelation. The major DataTable is Products, all of the controls on the form bind to this DataTable or is Related to it somehow. One field of the Products is a CustomerId, which can be selected from a ComboBox. The DataSet has a related DataTable for Customers through a DataRelation CustomersProductsRelation (note: it seems that Customers is major to Products because of the one-many cus ...Show All
Smart Device Development Trouble with DataGridTableStyle under 2.0
Lets say I have a DataTable with 5 columns and I am only interested in displaying 3 of those 5 columns in my DataGrid. I add a tablestyle to the datagrid and then add 5 column styles to it's GridColumnStyles collection. I configure the desired style properties for each of the five columns being careful to assign a width of "0" to the columns which mapped to the column names which i wished to hide. The problem is that these styles don't seem to effect the display of the datagrid at all. All the columns were displayed. I peeked in the *.Designer.cs file and I can see the code that was generated as a ...Show All
.NET Development Starting one proccess from another while a third is locked up
I am programming in VB.NET (2005) I do not seem to be able to start process B from process A whilst process C is locked up waiting - as it happens - for process A to tell it that process B has started. From some other behaviours I am guessing that the new process B can not start while another process (C in this case) has not returned from processing a windows message. I think there is some way for process C to process messages in the windows message loop via a function call (rather than returning) Does anyone know this call - or another way out of my dilemma which does not involve returning from processing its win ...Show All
Visual Studio Express Editions Trouble finding/reading file
Hello everyone I am having the hardest time right now. I am testing backing all my DB tables to text files and then reading them in to populate the tables. I am able to create the files without problem. But when I go to read them in, I am getting the "Could not find file error". Below is a small sample. File exists is coming back false and trying to open the delimitede file is throwing the error (which makes sense because it is not being found). I can see the file withing the directory I specify and when using normal windows search tool, the file is found. What might I be doing wrong Thank ...Show All
Visual Studio Slow Wizard Input using MonitorArgument
I have 6 arguments. The first is the only one shown in the wizard. The remaining 5 use MonitorArgument and the Evaluator (ExpressionEvaluatorValueProvider). The input in the wizard is very slow taking a second or two after each character typed. is there a faster implementation of Evaluator or a better ValueProvider to use for simple string formatting Here are the specifics: <Argument Name="ViewName" Required="true"> <Converter Type="Microsoft.Practices.GuidanceAutomation.SmartClient.Converters.TypeNameValidator, SmartClientDevelopment"/> </Argument> <Argument Name="ViewTargetF ...Show All
.NET Development N-Tier Application - Question about Static Methods
I'm starting an n-tier application with an ASP.NET 2.0 presentation layer, a business layer, a data access layer, and a SQL Server 2005 database, and I have a question. In the business and data access layers, should I use static methods Or, should I code the classes so that they have to be instantiated I've seen examples of both, and I'm not sure which is the "preferred" or "best" way. Thanks. Well. I guess that I agree in your comments. Howerver, there is also an other point of view. You may wan to use instance methods if you required that by one of the folloiwng reasons as well: 1. If ...Show All
Visual C++ Ensuring symbol order in object files?
Is there a way to get the C++ compiler to generate .obj files that maintain the order of the symbols as they appeared in the .cpp file If so, is there also a way to ensure that the linker also preserves the order A simple example of the behavior I'm seeing from the compiler/linker: .cpp file contains int foo1; int foo2; int foo3; int foo4; when I dump the symbols from the .obj file I get this 00B 0000000C SECT3 notype External | foo3@@3HA (int foo3) 00C 00000008 SECT3 notype External | foo4@@3HA ...Show All
Visual Studio Express Editions Error when creating or opening a project
Hello, I already posted this in the C# section, but the problem also happen for VB :-( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=141667&SiteID=1 When I'm trying to open or create a project with C# or VB an error message is shown. The error describe a problem with the file, folder or volume label ! "Die Syntax fur den Dateinamen, Verzeichnisnamen oder die Datentragebezeichnung ist falsch. (Exception from HRESULT: 0x8007007B)" Does anybody has an hint what the problem could be I already unistalled and installed again C# but without any changes :-( Thanks Stefan Yah good one Matt, ...Show All
Visual Studio Team System Problem branching on TFS server
Hi We wanted to branch our Team project. So we used Visual Studio to create a new empty team project. Then we went to the old team project in the source control explorer and selected "branch" and we branched into the new team project for a certain change set. When we do that, we get the following error: A database error occurred (SQL error 2627) ---> Violation of PRIMARY KEY constraint 'PK_tbl_PendingChange'. Cannot insert duplicate key in object 'dbo.tbl_PendingChange'. ENGTFSB3.TfsVersionControl..prc_PendBranch: Database Update Failure - Error 2627 executing INSERT statement for tbl_PendingChange. The statement has been termin ...Show All
Smart Device Development Connect with GPRS programatically for Pocket PC Client application
Hi All, I am developing Client Server TCP/IP based application in VB.Net. My Client Application is Smart Device application and going to be run on PDAs. This Client Application will connect with my server via TCP/IP using sockets. My Server Application is win form based application and going to be run on our server. Problem: { My Client Application needs GPRS to be connected. So, if GPRS is not connected, we have to do it manually. I am looking for the way where i can first check status of GPRS and then if it is in disconnected mode, i can connect is automatically using code. } I searched on net for the same and somewhere I found about Co ...Show All
Windows Forms Is there a way to fire an event programmatically?
I’m resizing a form using two function keys, F1 & F2, with keyDown event. It works most of the time but sometimes switching keys fails – the form just sits there. I have found if I then click on the form, not on a control in the form, I can then resume hitting the key that failed. One of the events that gets trippe ...Show All
Windows Forms Office Vba versus .net windows forms
Hello All I'm trying to convince a client wich has a necessity of automating some industrial processes wich envolve storing large amounts of data, some hardware connection to measuring machines and info exchange with excell and statistical software. The client wants to use ms office only. The best solution for him is a .Net windows application with a sql server database. How can I convince him thanks in advance A good newsgroep thread can be found here . I think you find a lot of things in there. Hope it helps! Otherwise please tell us, i will create a list for you. ...Show All
Smart Device Development Deploying a .net2/sqlce app
Hi! note: new in mobile development but experienced .net developer Can you give me a guidance on what do I need to install in a wm2003 device to deplory a .net 2.0 app which also uses sqlce 2005 Are some specific dll's enough I would like to create a complete CAB with all the necessary files so that end-user can easilly install/uninstall the application. Unfortunately, you can not do that. License does not allow you to break NETCF/SQL Mobile CABs apart and you can not have CAB in a CAB as only one instance of CAB installer is allowed. You can install SQL Mobile, NETCF and your application CABs one by one via AS: http://msdn.mi ...Show All
Visual C++ binaries compiled using VC8 not running on IA64
As VS 2005 is not supported on IA64 platform i had to use cross-compilation on 32bit machine. i did vcvarsall.bat x86_ia64 for setting the build environment. after building the application i tried running it on IA64 machine but it is not running. D:\samples>exercise.exe The system cannot execute the specified program. manifest info is embeded in the application and in its dependency dlls. on checking C:\Windows\WinSXS folder the CRT dlls and manifest were missing. so i copied the dlls and manifest files from my VC8 installation. dlls from C:\Program Files\Microsoft Visual Studio 8\VC\redist\ia64\Microsoft.VC ...Show All
Smart Device Development Urgent: Can someone from MS please help? CCommandBar on CPropertySheet
We have successfully ported an eVC4 app to VS2005 and are almost ready to launch the new WM5 ready version. The only thing holding us back at this point is cosmetic in nature, but still a critical piece of functionality. We need to add a menubar to the bottom of a CPropertySheet dialog. I posted this earlier but no one has responded yet: http://forums.microsoft.com/msdn/ShowPost.aspx PostID=104689 For an example of what we want to achieve, please see the built-in Tasks or Contacts application in WM5 (Pocket PC). When you create a new item, you are presented a property sheet, with a menu bar at the bottom (left softkey is blank, the right s ...Show All
