Paul Kjer's Q&A profile
Visual Studio Express Editions UserControl Load Event not fired with hosted WebBrowser Control
I don't know if this issue applies to the .NET Framework itself, or C#, or the IDE. I believe it's the Framework, but since I have only the 2005 Express edition of Visual C#, I can't prove it, hence my post here. I have an issue, which I can reproduce, where if I place a WebBrowser control in a UserControl, add a UserControl.Load event, and then place the UserControl in a Form, the UuserControl's load event will not fire. If I remove the WebBrowser control, or change the order in which the Load event and WebBrowser Control is added to the UserControl, the event fires as expected. To reproduce: 1) Create a new Visual C# Windows Application. You should already have a form, Form1. 2) Add a UserControl. I will refer to it as UserControl1 3) Ad ...Show All
Visual Studio Tools for Office Post It Note Type Comments Control In Word Document
I knew there was a reason I was looking at VSTO, I have a C# Windows App, and I am showing the user a Word doc using the DsoFramer control for viewing and editing. All this works fine, what I would like to know how to do (and I do not know if an AddIn or a WordProject is my best bet) is how do you create a "Post It Note" type control allowing the editor of the document to "Add Post It Note" , and also veiw other comments that were previously created. (preferably in a yellow balloon or box like a "Post It Note"). A super plush would be a way to toggle "View Comments - turn them all on if they are there - and Hide Comments - make them all invisible if there are any. Another plus (or point to note) is ...Show All
Windows Forms how to bring textbox in gridview load
hi alll i want to show the values in the gridview in the textbox i dnt want to move over to click "edit" and then the row changing into textbox is it possible to produce all the values in the grid in the textbox itself at the load event of the grid view if it s possbile then please do give me the code as how to do tnx n advance hey... i did as wat u said <asp:gridview id="gvFoo" runat="server" autogeneratecolumns="false"> <columns> <asp:templatefield> <itemtemplate> <asp:textbox id="tbFoo" runat="server" text='<%# DataBinder.Eval(Container.DataItem, "foo") %>' /> </itemtemplate> </asp: ...Show All
Windows Forms Combobox behavior
I'm beginning to think that the developers of VB2005 were on A-class drugs at the time! I've been writing software for many years and until now, never had to ask for help. Now, even the most simple tasks are infuriating! (Read my other posts) Here's my next problem: I have a form with a BindingNavigator, BindingSource and BindingTableAdapter bound to the "Customers" table of my database, a BindingSource and BindingTableAdapter bound to the "CustomerCars" table of my database which is filtered to show only the records relevant to the current customer and a ComboBox from hell bound to the CustomerCarsBindingSource to list the registration numbers of the relevant cars. Everything works fine and the ComboBox ...Show All
Visual Studio 2008 (Pre-release) WCF services from existing wsdl
I want to generate a wcf service from an exiting (non .NET generated) wsdl file. I created the service code using the .Net 3.0 SDK svcutil and discovered that the wcf service wsdl is completely different from the original wsdl used to generate the .net service types. How do you ensure that the .Net service metadata mirrors the original wsdl as I have .Net clients generating their proxies from that original wsdl and compatibility becomes an issue. The .Net wsdl is creating new wsdl messages and parts it just doesn't jive with the original wsdl. Some insight into how to work with 3rd party wsdls to build a .Net service is appreciated. Chris Thanks for the suggestions. I went back and ran the svccu ...Show All
Visual Studio Team System Team Explorer won't remember my password
When I first installed Team Explorer (with Visual Studio 2005) it remembered my password. They make us change our passwords every three days (I'm exaggerating a little). Once I changed my password, it began prompting me for a username and password every time I started Visual Studio. There was no "remember my password" checkbox visible in the dialog. I was forced to reinstall Visual Studio a while back, and after doing so, Team Explorer once again saved my password. But, yesterday was password change day, and now I'm back to re-entering my username and password every time I start Visual Studio. What's the deal We're using domain accounts to access TFS ...Show All
Architecture dealing with genration code
I use codesmith 2.5, Templettier 2.00 and ASP 2.0 I want to know how to use code genration from codesmith in asp.net, especially Tlist in generated classes from codesmith ...Show All
Visual Studio 2008 (Pre-release) http://msdn.microsoft.com/data/ref/linq/
The site does refer to that latest LINQ september CPT... Why The May CTP was re-released but contained only a few bug fixes, with no new features. It is available at the following link, http://www.microsoft.com/downloads/details.aspx familyid=1e902c21-340c-4d13-9f04-70eb5e3dceea&displaylang=en . ...Show All
.NET Development No connection could be made because the target machine actively refused it
Hi I experience problem accessing a web service installed on my development machine. If I create an ASP.Net web site, I can access the web service with no problem. I need to access the web service from a C# windows application. In order to do that, I added the webservice as a web reference to the project, initialise the proxy class. when I try to access a webservice service, I get the following exception. I am not binding the webservice to any port. Here is a code snippet: public Form1() { tmp = new TmpConvertProxy.Service(); tmp.ConvertTemperature(100); InitializeComponent(); } My IIS is setup so that anonymous access is enable. Can anyone help Thanks Frustrated Chris System.Net.WebException was unhandled Me ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Infinite projection matrix
Hey guys. I've the last couple of hours tried to implement an infinite projection matrix without succes. So I took a step back to see if I could even make some sense of the "normal" perspective projection matrix used by XNA. Normally I used the CreatePerspectiveFieldOfView() method to create the matrix. Here is what I've tried so far. What is XNA left-handed or right This code works but the view aspect is fu**ed up. Anyone who can clearify or better show how it's in XNA The infinite matrix that is. float Q = drawParameters.Far / (drawParameters.Near - drawParameters.Far); float yScale = 1 / ( float ) Math .Tan((drawParameters.CameraFov) / 2.0f); float xScale = drawParameters.ViewAspectRatio * yScale; infinite.M11 = xS ...Show All
.NET Development Size Constraint on Location Header of Http Response
I generally use Response.Redirect(url,false) for redirections. Is there a size constarint on the HTTP Response Location Header Also Is the behavior defined if we exceed this limit In my web app there are cases where the url being passed to the redirection method is very long.What should be the expected behavior in such cases In my case this results in no redirection. ...Show All
SQL Server Is SQL Server CE really the solution?
Hi, So far, with other programming platforms, I used to have the facility, embedded within application .exe, to: 1- Interface with already existing "multi-user" database (ex: Oracle, Access, etc.) 2- Create/access "local"/"Single-User" files for processing purposes. (try to minimize network trafic...) So far, I've read a lot about SQL Server products (SQL Server, Sql Server Express, SQL Server CE), at least all articles I could find, and would like to have your opinion on what would be the best approach 1- What SQL version to use for "multi-user" databases &n ...Show All
Visual C# C# Date Time Help
Ok I am writing this program to log me into WoW at a sertain time set by the user, but right now it won't work. My question is how can I get it to continually check against the current time and then fire the process when they are equal right now the way it is I just get a Not responding error in Task manager with it. [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; /* NoWait V1.0.0 by TRTwiggy * * Date: October 22, 2006 * * Author: TRTwiggy AKA Tyler Reid * * Description: This program was written for two reasons. The first is to help * develop my coding skills. The second is that I got so damn tired of get ...Show All
Visual Studio 2008 (Pre-release) Loading Resources from another assembly
Hi, My application has a plugin architecture so that you can add support for different types of data. In the assemblies that implement the various plugins I want to define resources (styles/templates) so that I can use them from my xaml window. I am not sure of the best way of doing this has anyone done anything like this Any ideas Thanks, Derek Yeah this works for me too thanks. Apparently this is a known bug ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=549792&SiteID=1 ) ...Show All
SQL Server Can we alter system views in SQL Server 2005?
Hi, all experts here, Thank you for your kind attention. Would please anyoneh ere give me any advices about if we can alter system views in SQL Server 2005 With best regards, If that is your intent I would suggest that you add extended properties on the table columns. Take a look at this feature at http://msdn2.microsoft.com/en-us/library/ms190243.aspx . or look it up in books online. In short, extended properties let you add a description to any object in the database such as tables, views, schemas, columns etc. e.g. To add an extended property to a column of a table you could do something like sp_addextendedproperty 'property_name','your description','schema','schema_name_of_table','table','table_name','co ...Show All
