stripendulous's Q&A profile
Windows Forms Menu merging without MDI
When using MDI, you can merge menu and toolstrip (and taskbar ) items. Luvly. But how should I go about creating a SDI application with muliple parent windows that have common items. For example 3 parent windows that inherit from a common base form. They all inherit "File -> Exit" and "Options -> Settings", but each have their own "File -> Print Report" etc. It doesn't appear I can extend the menus in the derived forms (even though modifiers=protected). Do I have to (can I) add their extra menu items at runtime You can merge any two menus (any ToolStrip derivatives actuallly) manually via methods on To ...Show All
.NET Development Problems with creating Structures in .NET
When I try to create the following structure in VB.NET... <StructLayout(LayoutKind.Sequential)> Structure Struct1 <FieldOffset(0)> Public Unk1 As Short <FieldOffset(35), MarshalAs(UnmanagedType.ByValArray, SizeConst:=23)> Public unk2() As Char <FieldOffset(97), MarshalAs(UnmanagedType.ByValArray, SizeConst:=23)> Public unk3() As Char &nb ...Show All
Visual Basic I Need help Debugging
Hi guys I'm new to visual basics and recently installed visual basic 2005 express edition, and as i'm new to it i tried out the getting started build a web browser guide, when i got to the end it said i needed to run the debugger which i did but every time i do i keep getting the following message... The application failed to initialize properly (0xc0000005). Click on OK to terminate the application. I have looked in all the help menu's and cannot find a solution, has anyone out there come across this problem and solved it, i could do with you help. Thanks It sounds like you've hit a bug somehow ...Show All
Software Development for Windows Vista Feature Request: Display activity description in designer
Not sure if you're taking feature (luxury item) requests, but I'd find the following to be a useful WF feature. Annotation/comment activities were requested in the following post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=162632&SiteID=1 I think it would be extremely useful to be able to use the activity's description property for comments, and to be able to see those comments on the activity itself (not just in the mouse over popup). This would be especially useful for developers new to WF who must work on an existing WF application. Perhaps displaying the description on the activity could be toggled via a ShowDescriptionIn ...Show All
Visual C# Connecting to a remote MySQL server?
Hi I'm trying to connect to a remote mysql server, but are having som problems. My connectionstring: string DataSource = "xxx.xxx.xxx.xxx"; string Port = "3306"; string Database = "dbname"; string UserID = "user"; string Password = "pass"; str ...Show All
Visual C++ msvc ++ 5.0 or 6.0
I don know if the is the corredct place to post this but I desperatley need some help. The 3D CAD motion analysis software we use requires MSVC++ 5.0 or 6.0. Our IT Dept purchased Visual C++ .NET Standard 2003 First of all I do not know what version of MSVC++ is included nor do I need all the other tools. Is it possible just to obtain just the C++ compiler and if so where Any help will be greatly appreciated. Richard Borders CAD Manager Komatsu America Corp. BTW, even if you get VS6.0, I would still advise you to upgrade to later versions since the support for VS6.0 officially expired. Thanks, ...Show All
SQL Server Replication performing UPDATES as INSERTS and DELETES on the subscriber
I have transactional replication set up between two SQL Server 2000 databases. In some cases when I perform an UPDATE on a published table on the the publisher, SQL Server attempts to perform a DELETE followed by an INSERT on the subscriber using the stored procedures created during the initial snapshot. Why does it do this How can I stop it doing this and force an UPDATE on the publisher to call the UPDATE procedure on the subscriber Thanks What's happening is called a deferred update. See kb 238254 for more info. This is a by design behavior. Is this causing any problems in your scenario Are ...Show All
SQL Server Setting cell properties in a scope
Is it possible to set cell properties like FORMAT_STRING in a mdx script scope Yes, absolutely. Mosha has some good examples here: http://www.sqljunkies.com/WebLog/mosha/archive/2005/10/13/mdx_format_currency.aspx Chris ...Show All
Windows Forms Change Location at design time problem
Hi, I am implementing a windows form designer that is based upon the designer sample from microsoft (http://support.microsoft.com/ id=813808). The problem that I have is that i would like to change the size and location of a certain control when I drop it on the form. In the IContainer.Add method of the DesignerHost I am able to change the size of the  ...Show All
Visual C# Is there a way to use IEqualityComparer<> for Microsoft owned value-types with no IEquatable?
Hi. I'm really liking Generics support in .NET/C# specifically, but I have some questions in mind. I'm trying to create a list of PointFs (List<PointF>) and it simplifies everything, but the documentation for List<>.Contains (and just about any List<> functions that require searches) talks about using IEquatable<T> of the type. If I'm creating my own type, I can just implement IEquatable, but in this case this is a Microsoft created type (PointF), which does not implement IEquatable. In fact there's quite a bit of MS structs that do not implement IEquatable (Rectangle, RectangleF, etc). For these typ ...Show All
Software Development for Windows Vista Vista Bootloader recovery
i went into my xp pro and was changing the seconds to choose OS from 30 to 6 seconds...and w/out thinking about it i lost my new vista bootloader and now i can't load vista beta 2...oops....anybody know how i can restore vista bootloader and still keep all my other xp boot...i would much rather use my windows xp x64 bootloader..i hate how vista's takes over everything....so if i could just modify my xp x64 boot.ini and have it load vista when i want..that would be what i want...but right now i thought i had it right...but whenever i select vista it just goes to a blank black screen and stay's there... here is my current xp x64 boot.ini [boot ...Show All
Windows Forms Resizing and repositioning the control at runtime
I have a window form in that i have a text box i want to resize and change the position of the text box when i click on that control // C# ListBox1.Location = new Point(10, 20); ' VB.net ListBox1.Location = New Point(10, 20) Is that what you wre looking for IF not please provide more specific details as to what you want to do. Thanks ...Show All
Visual C# C# and Lotus Notes
Does anyone have any suggestions for using C# to do a lookup in Lotus Notes address book Any Help would be apppreciated Thank You It's actually very simple. Create a new project in VS.Net 2003/2005. Add a reference to to Domino to it (right click on the References in the Solution Explorer, switch to the 'COM' tab, locate "Lotus Domino Object" and click OK). Now in your code add a 'using Domino' statement on top of your class. In your method you can now create a new NotesSession object as follows: NotesSession session = new NotesSession (); session.Initialize( "" ); NotesDatabase db = ses ...Show All
Visual Studio Team System getting select data records in a VS 2005 web test data binding scenario
I want to create a web test in VS 2005 that logs in to the test site as an admin; and I want to pull the login info from our existing database table. So I need to query the database to return records where a particular column has the required value (admin). Given the datasource below: [ DataSource ( "XXX1" , "Provider=SQLNCLI.1;Data Source=localhost;Persist Security Info=False;Integrated S ecurity=SSPI;Initial Catalog=XXX" , Microsoft.VisualStudio.TestTools.WebTesting. DataBindingAccessMethod .Sequential, "Users" )] Is there a way to make code like this return only users who are admins string txtTestUserAdminLogin = t ...Show All
.NET Development [WSE2.0] QuickStart Example problem
Hi All, I'm having this same problem in my own project (I went to check the QuickStarts example to see what I was doing wrong), so does anyone know what this is [CODE] Calling http://localhost/UsernameSignCodeService/UsernameSigningService.asmx ****** Exception Raised ****** System.Web.Services.Protocols.SoapException: SOAP-Fault code: http://schemas.xmlsoap.org/soap/envelope/:Server Message: System.Web.Services.Protocols.SoapHeaderException: Server unavailable, please try later ---> System.Configuration.ConfigurationException: WSE032: There was an error loading the microsoft.web.services2 configuration section. ---> Sy stem.C ...Show All
