Marcos Tito's Q&A profile
Visual C++ Add user control to the form
I'm using Visual C++ .NET 2005. I want to create my user control and add it to the form. I'm doing: File->New->Project->Visual C++->CLR->Windows Forms Application Then I am creating my control: Add new item->Visual C++->UI->User Control I'm drawing it and then I am openning my Form1 again. How can I add my User Control to the Form1 I thought my user control must appear into the "Toolbox" bar. But it doesn't. How can I add my User Control to the Form1 In Visual Studio go to Tools-> Choose Toolbox Items... and select the control that you want to add. RG ...Show All
Windows Forms AxWebBrowser dispose exception
I've seen a lot of talk about this problem but no good solution: I have an AxWebBrowser object which lies with a 'wizard' several pages deep. If I open this wizard and then close the application (click on 'x') without displaying the page containing the AXWebBrowser, then I get the following exception (): TargetInvocationException: Unable to get the window handle for the 'AxWebBrowser' control. Windowless ActiveX controls are not supported. ---> System.NullReferenceException: Object reference not set to an instance of an object. at System.Windows.Forms.AxHost.DoVerb(Int32 verb) at System.Windows.For ...Show All
Visual C# Signature Table
The Signature table holds the information that uniquely identifies a file signature. The Signature table has the following columns. Column Type Key Nullable Signature Identifier Y N FileName Text N MinVersion Text Y MaxVersion Text Y MinSize DoubleInteger Y MaxSize DoubleInteger Y MinDate DoubleInteger Y MaxDate DoubleInteger Y Languages Text Y how we get signature of file/program through c# I believe you are referring to the Sign ...Show All
Visual Studio 2008 (Pre-release) Generics & WCF
public class PersonService : IService < Person > { #region IService<Person> Members public Person GetById( int id) { Person p = new Person (); p.FirstName = "MyFirstName" ; p.LastName = "MyLastName" ; return p ; } #endregion } [ DataContract ] public class Person { string firstName; string lastName; [ DataMember ] public string FirstName { get { return firstName; } set { firstName = value ; } } [ DataMember ] public string LastName { get { return lastName; ...Show All
Visual FoxPro Philadelphia VFP User Group--Wednesday, April 5
Philadelphia VFP User Group Wednesday, April 5, 2006 7 PM (Optional: Meet for dinner at 6 PM in the food court) Topic: Introduction to .NET (from a VFP perspective) This discussion will include: an overview of the VS2005 environment, and general project structure; C# or VB ; Windows Forms; Creating classes/subclassing Winform controls; Data binding and data binding interfaces; Building a data access layer; Typed datasets; Distributed architectures with web services and remoting; String and date operations; Reflection and type discovery and uses of interfaces; Delegates and events; Miscellaneous tips Note: Special date for th ...Show All
Visual Studio Team System Update of SettingValue.Value throws exception
Hi, Following Dmitriy’s example ( http://forums.microsoft.com/msdn/ShowPost.aspx PostID=11246 ) I created an AddIn that analyzes an SDM diagram. During the analysis I’m trying to manipulate values of a particular SettingValue of a producer endpoint. This value is represented by a ComplexSettingValue[]. I have no problems to read and update existing elements of this array. But when I’m trying to reset it to a new array of this type because I want to add new entry I’m getting an “internal error” exception. Any ideas Nel Dmitriy, Thanks a lot. It worked! Nel P.S. Can you p ...Show All
SQL Server Sql Server internal error
Hi There Ok i have a piece sql, a pretty complicated select statement. When i run the select statement no problems. As soon as i put the EXACT same select statement in a view and select from the view i get a sql server internal error. I know that one can get these errors when you have subqueries in group by clauses and so forth , but i have never seen this error when you can perform the sql but only get this error when it is in a view. Can anyone help me on this one Thanx Hi Umachandar FOund the problem http://support.microsoft.com/default.aspx scid=kb;en-us;830466 You were right i need service pack 4. Thanx ...Show All
Windows Forms Bug in Listbox Multiextended
I have a listbox with multiextended=true. The listbox has 22 items, and If I click on the first item, and ShiftClick on item 22, then try to process the selected items onlt 1 and 22 are in the selecteditems collection and the indices.count=2. All the items in the listbox are blue'd before the process, but 1 and 22 are the only ones processed. However if I select all the items using CntlClick (one-by-one) the all are processed. Help ...Show All
.NET Development I need a simple MSDOS utility to count lines in a VC++ project.
You know, something like the character, word, line count utility in UNIX. If you'd like the same wc command, you might try the GNU Utilities for Windows at http://unxutils.sourceforge.net/ . It includes wc.exe (along with many other Unix-like utilities). Here's a command-line linecount util for c#: http://www.serviceframework.com/jwss/utility,csharpLineCount,utility.aspx -- Tim Scott http://geekswithblogs.net/tscott/ ...Show All
Visual Studio Team System Deleting Team Project
Hello, I have created a Team Project and later i deleted using TFSDeleteProject.exe . It showed "deleted successfully" from command prompt but it did not remove from the Source Control explorer. When i connect to Team Foundation server , in the project list it does not apear but in source control explorer it does. Can anyone tell me what may be the problem Thanks in advance. There were a number of issues in deleting Team Projects in beta 3, so the best thing would be to upgrade to the RC. Buck ...Show All
Software Development for Windows Vista WorkflowInstance.EnqueueItem Method
Can I use this method to raise an External Event after an CallExternalMethodActivity has been finished and been persisted and the ListenActivity is waiting The question goes back to this entry ... If yes what would be expected as the second parameter public void EnqueueItem( IComparable queueName , object item , IPendingWork pendingWork , object workItem ); You really can't - as the second parameter is a type called MethodMessage - which is internal to System.Workflow.Activities.dll. You really only want to use EnqueueItem when *you* are the one creating the queue - not the Exter ...Show All
Visual C# VS.NET 2005 RC1 -- Is clipboard ring missing from IDE?
It used to be one of my favorite features! Formerly, from the C# (for example) code editor in the IDE, open the 'Tool Box' tab, and there was a stack of all the things you'd put on the clipboard while editing. I can't seem to figure out where it went too...hopefully not the bit bucket... TIA, Howard Hoffman Howard, The clipboard ring still exists, though it's no longer exposed through the toolbox. In order to access it, hit Ctrl+Shift+V multiple times and it will cycle through the clipboard ring. Hope that helps! Anson Horton [ansonh@microsoft.com] Visual C# IDE PM ...Show All
Windows Forms refresh datagridview from another Form
hi i am having datagridview in base form. On base form's menuitem i can go to other form which displayes simple datagrid . double click on datagrid open info form for perticular record which is editable. on save i want to refresh my base form's datagridview . Hi, try this, it should be useful: http://www.devcity.net/Articles/100/multipleforms2.aspx ...Show All
.NET Development Updating Access from Data Table - slightly confused
I'm using vb2005 to create a front end to an access database. Being new to this I'm slightly confused over what the wizards will create automatically as opposed to what I have to code. I've used the table adapter configuration wizard and specified that I want it to create methods to update a table called 'Categories' in the database. This is a simple table with a text field for the category name and an autonumber field (CategoryID) as the primary key. Now, I've read the supplied help info and a few newgroup posts about how to update a table row containing an autonumber field by using the RowUpdated event of the adapter class. The code exampl ...Show All
SQL Server Doing a SELECT on a different field than the field in the GROUP BY
I'm using SQL Server 2005. I've got table tblSaleAddresses which looks something like this: AddressID SaleID Address1 Address2 ..... DateEffective ------------ ------- ------------------- --------------------- --------------- 1 100 Unit 20 100 Easy St &n ...Show All
