lisa52's Q&A profile
Windows Forms Eliminating MDI parent form scrollbars?
I am implementing an MDI app where the parent and all of its children have maximized views. I am experiencing a problem that when the first child form is added I initially get horizontal and vertical scrollbars on the parent form. I need to figure out how to eliminate those bars. If I scroll the MDI child up and down eventually& ...Show All
Visual C++ Can I write to MemoryStream?
In .NET we can save data to MemoryStream, can we do this in Visual C++( not using Managed C++) Regards There is no way to access managed stuff from the unmanaged world directly. So i.e. exposing an interface or function that can be accessed directly. You have to use at least some mixed code or you have to expose a class from the managed world via COM. ...Show All
Visual C++ VC++ 2005 doesnt compile, when non-startup project header is changed...
I have five projects in my solution. First four creates static lib and the fifth is exe file that uses those libs. The fifth project is set as startup and dependent to others. Whatever file (cpp, h) is changed, compilation occurres after F5 (build project) is pressed. I can also change something in cpp of the dependent project and it is also compiled. The problem are any changes in header files of dependent projects. VS just saves them, but writes: " ========== Build: 0 succeeded, 0 failed, 5 up-to-date, 0 skipped ==========" to the output window and compiles nothing. I tested this in VS2005 prof and VC2005 Express. Both have the ...Show All
Visual C# Application.Exit
Ok. Can someone tell me how to when the application closes to perform a function..maybe something like this. if (application.exit == true) { MessageBox.Show("Are you sure"); } private void OnFormClosing( object sender, FormClosingEventArgs e) { e.Cancel = DialogResult .No == MessageBox .Show( "Close " , "" , MessageBoxButtons .YesNo); } Works for me here. ...Show All
Windows Forms DrawArc question.
Hello. I got a question about the DrawArc method. To my great disapointment it only takes angles and not points/coordinates as start and end points. Does anyone know of a way around this so I can use perhaps start point, end point and a center point or something Or perhaps someone know how I can get the start and sweep angle calculated from those three variables (center of the arc, start point, and end point). Any respons will be most appriciated. Anyone Come on, there must be some math geniuses here that can point me in the right direction :) ...Show All
Windows Forms To make the border of a group box invisible !!. - URGENT PLEASE>
Hi I am working on the group box in the C#, can u help me in making the border visible false. In Need, Anuradha. just use System.Windows.Forms. Panel you have control on its border ...Show All
Visual Basic reading a string from the right until...
I thought this would be simple to figure out (and perhaps it is), but I’m not finding it. I want to extract the last part of a string and save it in a variable. The string lengths are never the same, but there are consistent separators, as below: home\work\school\neighbor I need to save “neighbor” in a variable. My idea was to simply read the string from right to left and stop at the first instance of “\” but I am having trouble finding the proper way to do this. BTW, I’m using VB 2005 express Sure that can be done.... There are numerous ways of doing this. Heres a function which ...Show All
Windows Forms Active control change event?
Hi. I want to put on form's toolbar a buttons for RTF formating but I want to enable and disable them based on the current focused control. For those who are/where Delphi developers is something like TAction behaviour what I need. There is some global event fired when active control changes Regards. These forums are only support Microsoft development products, they don't support Delphi and J2EE, so your question is an off-topic here, sorry for that. ...Show All
Windows Forms controls not rendering on the form
Controls on my windows application form render as as white rectangles with red border and red diagonal lines. It happens very rarely. Has anyone ever encountered such a thing If yes, then what maybe the cause of it Thanks Nitin That means that there was an error when loading the control into the designer. If you resize the control larger, the error should be a part of the image (the white rectangle with a red X). I am afraid that I cannot be more specific without a repro scenario. ...Show All
SQL Server Data Mining Query returns ADOMDDataReader
Hello, I created a Market Basket Data Mining Model with Association Rules, which I want to query and show in a Report. Everything works fine, when I preview the result in the Reporting Services Data tab I see some sort of table which I can expand and then see the related products. Unfortunately this result seems to be an ADOMD Datareader which I cannot place in a table, matrix or textfield. If anyone knows how I can make this Informationen available in my Report please let me know. Thanks in advance In report designer select "Analysis Services" as data source type. Then you can connect ...Show All
Windows Forms one cotrol, can it had TWO DesignerAttribute?
hi all, i am writing a control that is inherit from DataSet, as we know that DataSet had its own designer which named "Microsoft.VSDesigner.Data.VS.DataSetDesigner" , and this designer had two command : ViewDataSetProperties , ViewSchema ; now i want to add my new command to this control , but i can not find the way that  ...Show All
Visual Studio Express Editions Why Visual Web Developer Express needs Sql Server Express.
Hello I just did a single application, it has not data components. And I cant see it. the error is the following I have sql 2005 abril ctp. Isnt it that enough Do I really need sql server express. for what Does the full version of visual studio also need sql server express SQLExpress database file auto-creation error: The connection string specifies a local SQL Server Express instance using a database location within the applications App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the database does not exist. The following configuration requirement ...Show All
Visual Studio Team System MSF in spanish
Hello. Iam loooking for info on MSF in spanish. I already searched in google but there are a minor documents that seems to be incomplete. I wonder if Microsoft has a translation of MSF Thanks for your help. We will be translating the primary MSF v4 materials (MSF for Agile Software Development and MSF for CMMI Process Improvement) into Spanish. That work will get underway when we've locked down the English versions later this quarter. Keith Rowe Product Unit Manager - MSF ...Show All
Visual Studio Tools for Office Button is not getting removed after uninstalling the Word add-in
Hi All, I'm creating and installing a Word Add-in. The add-in creates a button on standard toolbar. When I uninstall the add-in the button is not getting removed. The add-in is the basic add-in from the link http://support.microsoft.com/default.aspx scid=kb;en-us;Q302901 as it is. The code in OnBeginShutdown is as follows: public void OnBeginShutdown(ref System.Array custom) { object omissing = System.Reflection.Missing.Value ; System.Windows.Forms.MessageBox.Show("MyCOMAddin Add-in is unloading."); MyButton.Delete(omissing); MyButton = null; } Can anyone let me know what am I missing I've even tried using oCommand ...Show All
Windows Forms How can execute the public method inside the MDIparent from the client form?
Experts, I have an MDI form and child form. MDI form has two public methods which should be called or executed from the child form. Please guide me with same sample pages or code pages with c# or c++ visual studio 2003 version. Thanks, I find some information in this pages, same as what I need, but could not clearly understand the solution. Is there any C# example for this Any help Thanks ======== I have a main form (an mdi container) with a menu and the item "open". When clicking "open" a child form appears. Now, i don't want that several childforms are opened. So i want the "open" item to be ...Show All
