FirstMalone's Q&A profile
Windows Forms C# Replacement for ActiveX
Has something replaced ActiveX Objects for C#.NET What I want to do is have a web page where a user clicks an "Install Now" button and has the standard ActiveX popup asking if they think its safe. When they click yes I insert some registry keys and insert a class into the Downloaded Program Files folder that you can view in Internet&nbs ...Show All
.NET Development Posting Data to Internet Explorer using SHDocVw dll
I have a scenario where I have to open a new instance of IE and navigate to a URL which requires some header information to be posted to it. I am using SHDocVw to do this, Following is the code I use. Whenever I call the navigate method, new instance of IE is opened and I could see the URL in the Address Location but the page is not displayed which I assume is due to the fact the header information is not posted properly. The same code works fine with WebBrowser control SHDocVw.InternetExplorer explorer; object oMissing = null; object headers = "Content-Type: application/x-www-form-urlencoded" + "\n\r" + "sid:324w ...Show All
Visual Studio Tools for Office Where is my cursor?
I have developed and outlook add-in that contains a custom task pane hosting a windows form user control inside it. The user control had a textbox and a button. The button has an event handler attached to it. When the end user enter some text in the textbox while compposing a new email and click the button, I want to insert the text from textbox into the body section of the email. The problem is that how can I identify where my cursor is currently positioned As I want to insert text at cursor position, is there any way to find out solution to this problem Any help will be appreciated. I hope you have some s ...Show All
Windows Forms Panel control autoscroll problem
I've had a problem with the Panel control in the past. I had child controls that would adjust their height based on the available width. These were docked one after another to the top of the panel. The idea was to have something that would reformat itself after the user resized the form (similar to what IE does when you have a&nb ...Show All
.NET Development SecurityException when open a new connection
I got an SecurityException when trying to open the database connection. I've found that it seems to related to the location of my project files which are located on a network drive right now. I'm just curious why the program works fine but only the data access part fails. By the way, how can I overcome this problem Thanks! when you run your application from a network-drive, your app does not run under the same security level like the one if you run it as from your local disk. If you run your app. as from a network-drive, it runs under the 'local intranet' security zone, whose security level is by default not set to 'full trust'. So, ...Show All
Visual C# Where is Object Test Bench in Beta2 (VSTS)?
I have installed VS 2005 Beta2 Team System - the full suite. And I can't find Object Test Bench any where. I tried right-clicking on the classes in class view, I tried right-clicks on the Class Diagram's classes there is no entry in the context menu to invoke a class or method. I am using the C# Windows Forms Project as well as looked inside a C# Web Project. Is there a registry tweak to enable this feature Or VSTS version does not ship with the object test bench Regards, Saurabh Nandu Sometimes we have to accept the consequences of our decisions. Choosing to learn VB.NET when C# is _clearly_ the better language is not their fault. " ...Show All
SQL Server How to Pass parameters in SSIS dataflow
I am using a parameterized select query as displayed below to fetch values from source. SELECT A.Account_GUID, M.Merchant_GUID, H.Household_GUID, B.BankAU_GUID, SR.SalesRep_GUID, E.Entitlement_GUID, I.Income_GUID, Exp.Expense_GUID, SP.Sales_Product_GUID, P.Product_cd, SUM(S.Sales) AS Monthly_gross_MC_VI_amt, SUM(S.Sales) - SUM(S.[Returns]) AS Monthly_net_MC_VI_amt, SUM(S.SaleTxns) AS Monthly_gross_MC_VI_tran_cnt, SUM(S.SaleTxns) - SUM(S.ReturnTxns) AS Monthly_net_MC_VI_tran_cnt FROM Account AS A LEFT OUTER JOIN dbKAIExtract.dbo.tblSales_STG AS S ON A.Account_No = S.AccountNo And S.BucketNo = And S. ...Show All
Software Development for Windows Vista How can I start instalation a Windows Vista os
How can i start instalation of Windows Vista OS. I burn a DVD image, but i can not open it. I can read only a README file. What shall I do What does the Readme file say ...Show All
Visual Studio Can VS 2003 and VS 2005 co-exist
Hello, Currently I am using VS 2003 with SQL 2000 DB on Win 2000 Server SP4 and I have some importnat projects which I do not want to upgrade. Now I have a new project which I would like to do on VS 2005 Pro ed. Can these two ver co exist or are there any special considerations when installing pls recomend Well, that's not true because I am having this problem... any thoughts I have VS 2003 installed and was working fine until I installed VS 2005. VS 2005 work fine, but when I try and start VS 2003 I get the follwoing error: "Please enter a valid product key to use this product - setup has detected tht the pro ...Show All
Visual C# What's wrong with this code?
I'm using the FormClosed event and i get an exception: Error 1 No overload for 'frmMain_FormClosed' matches delegate 'System.Windows.Forms.FormClosedEventHandler' C:\C# Projects\Reporting_System\Reporting_System\frmMain.cs 16 32 Reporting_System here's my code: public frmMain() { InitializeComponent(); this .FormClosed += new FormClosedEventHandler (frmMain_FormClosed); //error is here } private void frmMain_FormClosed( object sender, FormClosedEventHandler e) { } See bold: private void Form1_FormClosed( object sender, FormClosedEventArgs e) { } Best regards, Johan Stenberg ...Show All
SQL Server "Could not find schema information ..." error in XSD annotation
When I open any annotated schema in VC# 2005 Express, I get the error: "Could not find schema information for the attribute 'urn:schemas-microsoft-com:mapping-schema:relation'." Am I missing a reference MSXML4.0 and the SQL Client are installed on my workstation. An example of one of the annotated schemas I've tried is this one, from Andrew Conrad's MSDN article "A Survey of Microsoft SQL Server 2000 XML Features": < xsd:schema xmlns:xsd = " http://www.w3.org/2001/XMLSchema " xmlns:sql = " urn:schemas-microsoft-com:mapping-schema " > < xsd:element name = " CustomerRecord ...Show All
Visual Basic How to manage / call methods, procedures, forms in multiple Modules, classes, ect.?
Hello and thank for the help. I am such an amature. Can't find the right books either. I have created a windows form, and a lable array class and a sub main in a module BeamCalculation is a form Label Array is a class Calculate is a Module I am trying to run my program from the Module, I din BC as New BeamCalculation withthe hope that I can use BC throughout the module to perfor data and controlminipulation, A Dynamic Form that I change according to the calculation tye. I am getting 2 errors at line 15. 1. An unhandled exception of type 'System.NullReferenceException' occurred in Beam Calculations.exe ...Show All
.NET Development forms databinding
I have been playing with data tables, binding sources, table adapters on windows forms for about a week now, the drag and drop style. I come from asp.net (web matrix) where (almost entirely) and I am used to doing everything in code. My question is: is there a reason for me not to continue this way in windows forms The main reason I prefer the asp.net style, binding everything in code or events, is because I have so much more visibility. With all these adapters and data tables objects on my form, I am just getting thoroughly confused, and unfortunately lost. When I create a web form I simple bind my objects whe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Books on XBox 360 and XBox Live Development for eLearning?
Hello, I'm sorry to be such a noob, but if you have children, please consider offering me some assistance. I'm studying what it would take to put a SCORM compliant Learning Management System like Moodle ( http://moodle.org ) on XBox Live with the goal of offering downloadable eLearning that would lead to "Achievements" in things like basic math, geography, and other academic topics, in an entertaining manner. Before I get started, I'd like to read a book on XBox 360 and XBox Live development and find out a few things. Can someone please recommend a good book on XBox 360 and XBox Live development, targeted at an inter ...Show All
Software Development for Windows Vista windows vista
plz tell me from where i can download windows vista and how Hi, Your best bet for being able to download Vista is to become part of the beta program http://www.microsoft.com/betaexperience/default.aspx . Beta 2 is scheduled to be out soon. Thanks, Chris ...Show All
