xarmoso's Q&A profile
Windows Forms How to intercept WebRequest.Timeout
Hi, there WebRequest wreq = WebRequest.Create(Url); wreq.Timeout = 15000; IAsyncResult r = (IAsyncResult) wreq.BeginGetResponse ....... ....... I must do something when wreq.Timeout. Where can I write code in Thanks... Hi, Thanks a lot I know how to resume, I omit the resume code here, just to protrude the restart download error. If I run 10 times, it gets error about 8 times, ...Show All
Visual Studio Subreport, business objects, VB, Local report
I've been looking at the Orders example (from GotReportViewer.com) and some of the other examples, trying to figure out how to get a subreport to work using business objects. I seem to have it all correct but I get: Error Subreport could not be shown. I'm using AddHandler for the LocalReport.SubReportProcessing call and it seems to work because the Subroutine gets called for each master record in the report. I have the parameter to tie the main report to the subreport; my key field is text instead of the example's integer but that should be ok. My datasource for the subreport is a List (of ) detail records. Is there any way to find out just ...Show All
Visual Studio Team System Working with multiple team projects in Team Build
Looking at Manish's blog: http://blogs.msdn.com/manishagarwal/archive/2005/12/22/506635.aspx I'm wrestling with the best source control structure to use including when and why to use seperate team projects etc. In the above scenario I cant see why you wouldn't just include the framework libraries in the same team project as your application code, unless that is you want to use a different process methodology for each. Is there any other reason I may be missing That should not be the reason for creating multiple team projects. You can easily workaround the problem. There is two ways - The t ...Show All
Visual Studio Express Editions how to save usersettings
i'm making a webbrowser. The user can add favorites, and there is a combobx that saves all the sites you typed in. But when i close a Form, all the text is lost. Now is my question: How do i save those things, so that the next i start my application, or open a form, my text is still there. Can someone plz send me a code sample. Thanks in Forward, radexxion I "played" with this for a few days, and i know how i can save most of the things, but i have one more question How do i use this method with the treeview, because i want to save the Nodes, and the child nodes, but (I don't know why) i ...Show All
SQL Server "product level is insufficient" message during flat file import
I'm using the import wizard to create a new table from a flat file source. The table gets created but no data gets copied. What's wrong Here's the report: Operation stopped... - Initializing Data Flow Task (Success) - Initializing Connections (Success) - Setting SQL Command (Success) - Setting Source Connection (Success) - Setting Destination Connection (Success) - Validating (Error) Messages * Error 0xc00470fe: Data Flow Task: The product level is insufficient for component "Source - inSsrc_txt" (1). ...Show All
Windows Forms Why is DataGridView so slow?
I created a databound DataGrid, and then researched DataGridView to find it would fit my needs better. I have a DataGridViewCheckBoxColumn as my first column in my DataGridView then set its datasource to a DataSet. Sometimes the DataSet may contain a table with over 1000 rows. The user has a button that will select all checkboxes in the DataGridView. It takes about 5 minutes for my foreach loop to complete this task with the DataGridView. With the DataGrid, it was milli-seconds. What is going on Any suggestions Here is some of the code. Thanks in Advance, ryan //my DataGridViewCheckBoxColumn truevalue = 1 foreach ( DataGridVie ...Show All
Visual Studio TechEd excercise Improving Code Quality of a Code Template
Hi , I am a newbie to GAT and struggling to get "Improving Code Quality of a Code Template" section of the GAT excercise working. I have ensured that i have the latest copy of the teched example installed. I modified the code given for t3 template to t4 compatlible. I also followed the steps mentioned in the manual, but got the resultant string as ConfigurationManager.Connectionstrings[Propertis.Settings.Default.MyDatabase.Properties.MyDataAccess. I then wrote an action to trim out the connection name and use that as an input argument in the t4 template. ConnectionName.cs (Action) using System; using Microsoft.Practices.RecipeFrame ...Show All
Visual Basic Access or SQL Which one is better
Hi I'm wondering, which one would be better, i'm creating 2 medical programs, that are going to be running on a local machine, I Use visual Basic 2005 express and don't know if I should develop with access or SQL 2005 express. Which one is better and faster Any suggestions or comments will come in handy. PS. Future versions might have network connections, like for a secretary or interoffice connections. So should i work on access or SQL express SQLE is *better* in that it does more. The real question is, which is the appropriate tool fo hte job. If you expect to run the database on a seperate ma ...Show All
Windows Forms Custom control cannot be moved in VS.NET designer
Hi all, I developed a custom control derived from ScrollableControl. After I dragged my control onto a test Form, the control can be selected, but I cannot use mouse to move it around or resize it as I can with normal controls. However, If I used the property browser to change its Location or Size property, it takes effect. What is the possible cause of this problem Thanks in advance If your TestControl works fine, then I have no idea what is the real cause of the problem. In my case, however, when I removed the line base.AllowDrop = true, it solved the problem. And it's definitely not b ...Show All
Visual Studio Team System TF10216: Team Foundation services are currently unavailable
I finished the TFS install, with a lot of problems. I can connect to the server, however, if I go to "Team Foundation Server Settings | Security" I receive the following errors: Failed to query the source control global permissions for [SERVER]\Service Accounts Team Foundation Server foundation does not exist or is not accessible at this time. Technical information (for administrator) HTTP code 503: TF30059: Fatal error while initializing web service I also get error TF30177: Team Project Creation Failed when attempting to create a new project. ------------ Event Type: Error Event Source: TFS Version Control Event C ...Show All
Software Development for Windows Vista Re-hosting the Workflow Designer tool
Vihang, I have reviewed your article http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlong/html/WFDsgnRehst.asp and was wondering if xoml only workflows with namespace references can be used with it BTW: Have you considered a web based version of this product I look forward to hearing from you soon. Sincerely, John Portnov The x:Class attribute tells the WF Designer about the DesignTime type systems defined in the WF and hence is absolutely necessary. Basically the WF type system looks for the DesignTime types defined in the type provided by the x:Class. Hope this helps! Thanks, Kusha ...Show All
Visual Studio A4 paper size with winforms reportviewer
Hi, Ive searced the web and found only a few dead ends, so i thought i'd ask in here, hope its the correct place! i have created a report that will use a localreport on a winforms app, the report works fine, however when i try to print it, it is always set to letter size paper, how do i change the print preview to be A4, and set the margins i have set the report size in the report, but it seems to make no difference. Regards, Russ Render to EMF and print that. using System; using System.IO; using System.Data; using System.Text; using System.Drawing.Imaging; using Syste ...Show All
Smart Device Development digital signature
quick question regarding installation of an application. Does having your application digitally signed get rid of the nasty prompt message "this program comes from an unknown source and may not be trustworthy. Would you like to install this program " Or is it unrelated For devices there is a security model that varies from Pocket PC to Smartphone. some useful information here http://blogs.msdn.com/windowsmobile/archive/2005/12/17/security_model_faq.aspx Thanks Amit ...Show All
Visual Studio When are the 2.0 language packs going to be available?
I can only find .NET 2.0 language packs for German and Japanese - when are the rest going to be available Andrew They are being released on a staggered schedule. All of them will be available in the next two months. ...Show All
Windows Forms Clickonce fails to install from a web site
Can any one help with ClickOnce VB2005 install problem I've published my app to a website using clickonce, when the users try and install my app they can navigate to the website and the page is displayed, but when the install button is selected the myapp.application file is just displayed in the browser as an XML page and the app is not installed. If the .net fromwork is not installed on the pc, this gets installed first ok then the xml is displayed. Any ideas what is going wrong Hi, From the MS documentation I think you only need Front page extensions on the server to automatically uplo ...Show All
