Neil_at_AGI's Q&A profile
Visual Basic Using Modules for the Underexperienced...
I have created a public module to hold often used functions like cut, copy, paste, undo. I have something similar for print-related functions. I have the correctly named buttons on my form that correspond to the Subs in the module(s). Now how do I call the darn things If you have declared the functions as Public then you simply invoke them: Answer = SomeFunction(A,B,C) or Answer = ModuleName.SomeFunction(A,B,C) ...Show All
Windows Forms Display cell contents from a DataGridView in a MessageBox?
Hi, I want to be able to double click on a cell in my DataGridView dgvStatus and a message box pop up containing the data in the cell and the column name or other data in the same row. I fill my datagridview using this code: command.CommandText = "SELECT c.prod_barcode AS 'Barcode', c.prod_name AS 'Product Name', c.prod_category AS Category, c.prod_subcategory AS 'Sub Category', c.prod_cost AS Cost FROM sels_products c" command.Connection = conn adapter.SelectCommand = command adapter.Fill(productdata) dgvStatus.DataSource = productdata Any ideas Rob Ashton Private Sub MyDataGridView_ ...Show All
Visual Studio Team System Msscci and sprax enterprise architect
As Iwanted our UML modelling tool Enterprise Architect (Sparx: www.sparxsystems.com.au ) to support versioning on our Team System Foundation Server we downloaded version 1.0 of the Visual Studio Team Foundation Server MSSCCI Provider. When trying to connect to the team server I get a 'server busy' notification which prevents from continuing establishing the connection. I wonder if this is caused by ea or the msscci provider. Anyone with a solutions / similar problem This problem is fixed in the 1.1 release of the TFS MSSCCI provider which can be found here . Ed blog: http://blogs. ...Show All
.NET Development sqldatasource options
When configuring a sqldatasource through the wizard I see that in advanced sql generation options the two checkboxes are greyed out in visual web developer 2005. How is it possible to enable these please Thanks Hi, I had this too. The problem was that I tried to let VS generate a datasource that includes more than one database-tables. This implies that the command-builder could not generate insert/update-commands. In case that you have only one table, please check if your database-table got a unique primary-key. Hope that helps, Torsten ...Show All
Visual Studio 2008 (Pre-release) C# Properties and WCF
Hi together, sorry for that question, but I am a newbie to WCF. I have read in the SDK about different contract types like ServiceContract, DataContract etc. Now I only want to expose a class which has one property to a client. How could I do that Do I have to generate a service contract or is there a more simpler way to handle this. For example I want to expose that class to a client: public class DataExchange { private in m_MyData; public int MyData { get{ return m_MyData; } set{ m_MyData = value; } } } So is it enough to write [DataContract] public class DataExchange { private in m_MyData; [Data ...Show All
Visual Studio Team System Bug in FxCop 1.32 displaying an FxCop custom rule error
When I run FxCop.exe (build 50628.0) and analyze an assembly using my custom rules and then double click on the error generated from my custom rules I get the following error:- System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.FxCop.UI.MessageDetailsForm.DisplayMessage() at Microsoft.FxCop.UI.MessageDetailsForm.SetListViewItem(ListViewItem value) at Microsoft.FxCop.UI.MessageListView.UpdateSelections() at Microsoft.FxCop.UI.MessageListView.MouseUpHandler(Object sender, MouseEventArgs e) My rule's XML is:- <Rule TypeName="ThreadNotProvidedBy ...Show All
Smart Device Development Read/write from Pocket PC to PC
Hi, I try to read files from server which require Domain authentification on Pocket PC (Windows Mobile 5.0), but i get an exception File not found on line : stream = new FileStream(" \\server \path\file", FileMode.Open, FileAccess.Read, FileShare.Read); How may i set a DOMEIN authentification or FOLDER authentification or FILE authentification. Thanks for help. You need to use the RAPI libraries to communicate with the PC. OpenNETCF has some C# libraries for you to use if you wish. They are in the OpenNETCF.Desktop.Communication library. ...Show All
Visual C++ Lnk 4221 Warning during building stlport on VS 2005
I have tried to build stlport on vs 2005 RTM,but got a LNK 4221 warning. But on vs.net 2003(vc 7.1),there are no errors and warnings. So I try to use LIB.exe in vc 7.1 to generate lib file from objs generated by vc 8,hah,No warning!! Is there a bug in LIB.exe in vc 8 regards, It could be that there was a bug in VC7.1 that got fixed in VC8.0. Please post a sample reproducing the issue if possbile. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio Express Editions How to Convert a string to an Integer?
Hey, I’m new in VB and I want to know how can I convert a String to an Integer , well thanks!! ...Show All
Visual Studio More than one Diagram / File - Extension for a single model?
Hi everybody! I've downloaded the latest CTP (Nov2005CTP) of the DSL Tools. After installing I've read the Walkthroughs and have done some experiments. What I want to achive is to provide a way to use more than one Designer for my model. Let me give you an example of what I want to achive: 1. The "root" Designer I a kind of Class - Designer witch shall allow to define classes with Fields, Inheritance and Interface implementations. This is no problem so far. I would name this kind of Diagram an "Object Diagram". There shall be only one Object Diagram within a Project. 2. This is the step where I have no idea how to implement it: T ...Show All
Windows Forms Drawing Speeds
I have created a custom Button from the PictureBox class with 3 images Up/Down/Disabled it draws each image depending on its current state. When a image changes there's quite a re-markable slow down in speed. I am using the default OnPaint event. Could this be due to the fact its loading JPG images would BMP's speed up the image drawing process ...Show All
.NET Development Problem with web service that involve entity.
I have the following error when I call my web method which have entities as parameters or return value. What is wrong with my call I have no problem with web methods which don't have entities involved. All the related code are shown below: Thank a lot. Error System.ApplicationException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> There was an error generating the XML document. ---> The type Entity.eWarehouse was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadRespon ...Show All
Smart Device Development Trying to connect to SQL Server from
I'm trying to connect to SQL server from my pocket pc on my home network. I generated the connection string and bound controls from VS 2005 so the connection string being used was generated at design time. The program fails when trying to initially fill the tables The same connection string works on a windows application. Is there a difference in the connection string or Hi, It's kind of difficult to answer without knowing more. What is the exception that is thrown and what is the message inside it Also, are you sure the server is accessible from the PocketPC Does the device have network connec ...Show All
Windows Forms sorting datagrid with new "empty" rows
I have datagrid that I'm filling with rows, if the rows don't fill up the size of the grid, then I'm adding new empty rows from my dataview in my derived datagrid. The problems that comes up is that when im sorting the columns the empty rows are also sorted (not the last one, and i don't know why the last one is not sorted). Qe ...Show All
SQL Server An incorrect or unsupported HTTP function call was made error
Hi All, I've got this error " An incorrect or unsupported HTTP function call was made " I can't browse SQL CE Agent using IE also. How to solve this error TQ You need to give more information for other people to help, for example, what device, OS, what IDE, what kind of program you are writing, where do you get the error, and how --- Lao K Visit my Blog for Windows Mobile Pocket PC Smartphone Programming Hints and Tips ...Show All
