Marie Shin's Q&A profile
Visual Studio Tools for Office Bug fix request
Hi; There is one bug I hope gets fixed in Office 12. (Fixing it in a service pack for Office 9 - 11 would be really nice too.) Sometimes the menus I add to Word stop calling my event handlers. A very easy way to see this happen is open two instances of Word, close the first instance of Word, then close the document (but not Word itself) of the second instance. The menu objects will now fault if you access the enabled property and they will no longer call the event handlers for the menus. thanks - dave Hi Dave, Interesting, I don't recall encountering such behaviour in our add-in. Are you sure that your controls do not get garb ...Show All
Visual C++ HTMLHelp confusion
Hi everyone I'm in the process of migrating a project from VC6 to VC8 (aka 2005 Pro), and although it has been fairly smooth for the most part, I am now having trouble with moving the old help files. The help system for this project is very minimal - there are only 15 html files each containing a short writeup. There are various "help" buttons on various forms that activate the help system to display certain documents. My problem is with the HTMLHelp API. I used to use this bit of code to display a help topic: void CMainFrame::OnScreenHelp(CString filename) { filename = "::/html\\" +filename; HtmlHelp(m_hWn ...Show All
Windows Forms SubForm does not persist
Hi, I created a Master/Detail-Form with .NET Studio 2005 having the master table displayed as fields and the detail table displayed as grid. I modelled a master/detail-relationship with the Dataset Designer choosing the "Both relationship and Foreign Key Constraint" option. In the "Data sources" window the detail table is displayed as child of the master table - everything looks like in the samples. The master form works fine, the subform synchronizes perfectly when navigating ... but it does not persist - the correspondig code is: private void tbl_masterBindingNavigatorSaveItem_Click( object sender, Even ...Show All
Visual C# Read-only wrappers for derived classes
Can anyone point me to a good method for implementing read-only wrappers around a derived class rather than, for example, a simple collection What I mean is that I have class A which inherits from class B. B is not abstract, so can and will be instantiated on its own. I need to be able to create read-only versions of A and B. The only way I've come up is to have a class ReadOnlyB : B, blocking writes and forwarding reads. That's fine. But for A, if I implement a class ReadOnlyA : A, it has to override not just the members of A, but those of B as well - not nice, especially in a hierarchy 3 or 4 deep. Got to be a better way Thanks. Dou ...Show All
Visual Studio Team System FxCop Custom Rule: To check for variable name
Hi, I am trying to check if variables declared inside functions follow coding standards. I have implemented the code to check for Boolean variable. Variable name must start with 'b' public override ProblemCollection Check(Member member) { if (member.NodeType == NodeType.Field) { //Local local = list ; Field field = member as Field; if (field != null ) { //type = field.Type.ToString(); if (field.Type == SystemTypes.Boolean) { if (!field.Name.Name.StartsWith("b")) { //Problems.Add(new Resolution("The label {0} must start with 'lbl'", node.Name.Name)); b ...Show All
.NET Development Looking 4 "Dataset provider"
Hi, I'm looking for a ".Net Dataset Provider" to use in (old) ADO connection (VB6), so the connection will work with the Datset instead working with some DB. I've searched the web, and all I found was such a provider but for Delphi. Has anyone came across such a thing thanks, Oren. You might be interested in the assembly I've been working on at http://www.queryadataset.com . Besides INNER JOINS, it lets you perform complex SQL SELECT statements including UNION, OUTER JOINS, GROUP BY, HAVING, ORDER BY, sub-queries, etc against the tables in a dataset. Its not a .NET provider for DataSets, but it woul ...Show All
SQL Server Grabbing DATENAME from date only returns January
why is the below only giving me January CAST ( DATENAME ( Month , datepart ( month , ph . systemmonth )) AS varchar ( 15 )) What did you expect -Jens Suessmeyer. http://www.sqlserver2005.de ...Show All
Windows Forms Newbie Question: HTML Table equivalent?
I'm brand new to winforms, but pretty well versed in web apps using vb.net. I need to create a grid from a collection, but programmatically only adding one row to the grid ever few seconds on an timer_tick event. The problem is what control do I use Is there an control with events like AddRow(), or RemoveItem() and properties like Cell(index).BackColor. Th ...Show All
Windows Forms Help with custom control properties
I am a newbe only 6 weeks I am trying to create a custom control that contains two DataGridViews and a ToolBar for a header. The idea is to have the main gridview hold information on say "customers, companies" and so on and the second to contain extra information and one link column to bring up the second grid when clicked but directly under the row selected. Everything works great and when i drag my control from the toolbox everything is fine I have even added a smart tag with all the options I want. To cut a long story short the only problem I am having is adding some of the properties I want, I can add all of the pro ...Show All
Visual Studio File Deleted
hi! i have some problem regarding one file in VSS. The file is shown in the VSS interface but when i took some action on this file, error message displays, which says that e.g aaaaa.b file not found. i want to recover this file how can i do. thanx Do you see a file with the same name but a ".a" extension You may be able to recover at least a version of it by renaming that ".a" into a ".b" Regards, ...Show All
Visual C++ dialogs
hello, i just started programming using this software and i was wondering if anyone could help me. given i have 2 dialogs. how do i add the 2nd dialog class as a variable to the first dialog class thanks! First, you need to #include the header for the second class in the cpp file of the second dialog. Then you can just create instances as you would any other variable. That's assuming you only want to create a variable within a function. If you want a member variable, you need to put the #include in the header file for the first dialog. ...Show All
Visual C# serial port
Hi, I am new to C# and wanted to know How do I read data from serial port. and convert that data into integers.please help.. Hi I have come across this kind of quiz have a looksie here http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=286910&SiteID=1 Hope this Helps ...Show All
Visual Basic suggestion
From inside Visual Studio Basic, at the end of the address bar, there is no ( go ) button. I think there should be one there. I sometimes navigate to websites from inside VSB and a ( GO ) button would be an improvement. djartsinc, This forum is for specific questions related to Visual Studio Team System for Developers edition. I'll move this thread into a forum where it can be better answered. ~Ian ...Show All
SQL Server .Net Framework for SSRS 2005
Hi, We are plannning to upgrade to SSRS 2005 from SSRS 2000. Does it mean that our clients/users will have to upgrade to framework 2.0 from framework 1.1 inorder to see the SSRS Reports Thanks in advance ! siaj Only the report server installation requires .NET 2.0. If your users also want to use the new ReportBuilder in SSRS 2005, they will need to have .NET 2.0 installed on their local machines. If it is not installed, trying to use ReportBuilder for the first time will provide a notification about the missing .NET Framework 2.0 and ask if the runtime should be downloaded and installed. -- Robert ...Show All
Visual Basic Copying GDI+ graphics object
I am writing an analysis program that displays data on a GDI+ generated graph. Is there any way I can copy this graph, for example with a rectangular selection tool, to another application I am currently using Alt-PrintScreen, pasting the image of the window into Micorsoft Paint, then selecting the graph from the bitmap of the screen and copying that and then pasting the graph into Word. Any help and guidance appreciated If you're drawing it to a Bitmap, then you can create a new Bitmap which contains a copy of the section you want. If you're drawing direct to the screen, you may need to add code to render to a Bitmap so you can ...Show All
