Lars E.Nes's Q&A profile
Visual Studio Express Editions Invalid e-mail when trying to register
I log in using my e-mail address, however when I enter the e-mail address to be notified on it tells me I am using an invalid one. It is the same e-mail address the I used to log into the page with, so how can it be wrong. I have tried others without success. Cheers Siller Others have seen similar issues. Updating the profile at http://profile.microsoft.com has helped http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=581759&SiteID=1 ...Show All
Visual Studio 2008 (Pre-release) Drag and drop in XBAP
Hi May I know whether the XBAP applications can support drag and drop When I tried drag and drop in a custom control I got SecurityException upon hosting in XBAP appln. Detials: Request for the permission of type Permissions.UIPermission failed. on line DataObject do=new DataObject("Item",this); which resides as follows. class MyControl :ContentControl{ override MouseDown(..){ on line DataObject do=new DataObject("Item",this); //Uses this do obj to call method DoDragDrop() later } } Please let me know ,how to avoid this.Are there any other good practices to do the same Thanks in Advance Joy For the benefit of readers, this was answered in another thread . ...Show All
Software Development for Windows Vista Dynamic update within running TransactionScopeActivity
1) It seems that Dynamic Update within running TransactionScopeActivity is not allowed! Is this any alternative/solution to this limitation (I know that Dynamic Update comes with its performance costs but in my scenarios flexibility is the primary requirement) 2) Is there any way to execute extra code after an Activity Completes (without using Dynamic Update) I have tried using AddHandler but it does not work! What is missing // Add EventHandler does not work DependencyProperty dpEvent = DependencyProperty .FromName( "ExecuteCode" , currentActivity.GetType()) as DependencyProperty ; currentActivity.AddHandler(dpEvent, new System. EventHandler ( this .AdaptWF)); // Even tried this still does not work ...Show All
Software Development for Windows Vista Text Wrapping in Custom Activity
I've built a custom activity but the Name value won't wrap like the default activities do. Here's my code: private Rectangle CalcImageRectangle() { Rectangle bounds = Bounds; Size sz = new Size(32, 32); Rectangle rcImg = new Rectangle(); rcImg.X = bounds.Left + 4; // ((bounds.Width - sz.Width) / 2); rcImg.Y = bounds.Top + ((bounds.Height - sz.Height) / 2); rcImg.Size = sz; return rcImg; } private Rectangle CalcTextRectangle() { Rectangle bounds = Bounds; Rectangle imgRect = ImageRectangle; Size sz = Image.Size; int room4Image = bounds.Left + 20 + sz.Width; return new Rectangle(room4Image, bounds.Top, bounds.Width - 4 - room4Image, bounds.Height); } My base size is 175 x 60, so the height is ...Show All
SQL Server Unable to Edit Windows Password in Connect to Server dialog
Hi, I think my description says it all. I have just installed Studio Express for the first time. I want to attach a database. When the connect to server dialog is displayed the user name and password text box is greyed out. The Password box is blank and I need to edit this. I switch to SQL authentication they are enabled but if I switch back to Windows authentication they are both greyed out. I have uninstalled and reinstalled but still no luck, Any help would be great. Hi, I resolved this myself. The answer was that the SQL Express service was run as NTAuthority which did not have permission to access the folder where my mdf file was. I ran the account using the my own which works fine ...Show All
Commerce Server Credit Card sorting
Hi Can anybody help with customising the sort order of credit card profiles please I've tried using SQL Server Profiler to work out which stored procedures are being executed, but it isn't obvious how they are being retrieved. Any help would be much appreciated. Regards Paul Tew If you are talking about the Starter Site and/or the Credit Cards that are listed in the user's profile, they are shown in the order that they are stored inthe multi-value property. The multi-value property (credit_card_list) is a delimited string of profile IDs (<guid>;<guid>) and each profile is retrieved individually. You will most likely need to do the sorting in the application. There is no join be ...Show All
SQL Server Problem with report viewer
Hi, I recently upgraded by ASP.Net 1.1 application to 2.0. 1.1 application was using awReportViewer to view the reports. But, when upgraded, awreportViewer doesnt display the RS2005 enhancements like sorting, etc...so I decided to replace it with Report Viewer control in VS2005. Now the problem starts, Whenever I try accesing the reports through application, it gives me error " Client found response content type of '', but expected 'text/xml'. The request failed with an empty response." This is how I have coded, ReportViewer1.ProcessingMode = ProcessingMode.Remote ReportViewer1.ServerReport.ReportServerUrl = New Uri( http://localhost/ReportServer/reportservice.asmx ) ReportViewer1.S ...Show All
Visual C# Change frame source using C#
Hi, I'm searching on a method to change the source (scr) tag of the <FRAME> tag in HTML. Ok, this is a little bit hard to understand, isn't it. Well I have this inside a html BODY part: <FRAME NAME=left_frame SCR=main_menu.php> <FRAME NAME=right_frame SCR=main.php> How to change the source of the "right_frame" using a HtmlElement I allready have this function: private void change_url_reception( string url) { foreach ( HtmlElement elem in webbrowser.Document.All) { if (elem.Name == "right_form" ) { //change scr here } } } How to actually change the source now Thx Already Ruben Tacq Hi Ruben, it is the SRC attrib ...Show All
Windows Forms Slow painting of ListView
I simple add ListView to the form and set ListView's back color. Draging the window over my listview, listview painted very slowly and i can saw the white regions on listview. How i can solve this problem public partial class Form1 : Form { MyListView p = new MyListView(); public Form1() { this.WindowState = System.Windows.Forms.FormWindowState.Maximized; InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { p.Parent = this; p.Dock = DockStyle.Fill; ImageList iList = new ImageList(); iList.ImageSize = new Size(32, 32); p.LargeImageList = iList; p.View = View.LargeIcon; for (int i = 0; i < 100; i++) { ...Show All
Visual Studio Express Editions Alternate text for picturebox
Hi, I am inserting a picture of a person when FirstName and LastNames are typed into two text boxes, a button is clicked and this is searched for in an associated database. I want a picture box to display a picture of the person found for verification. I looked up the Books online. Is this what I put in the VB file Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' Browsers that do not support an image format ' will show alternate text. PictureBox1.AlternateText = "This is the image of the person searched for." End Sub VB tells me that "PictureBox1 is not a member of Systems.Windows.Forms.PictureBox. How do I set alternative text on mouseover I know how to do ...Show All
SQL Server Is it possible to create a cover page in SSRS 2005?
Very simply, I need to add a cover page to my SSRS 2005 report. I've tried this using the Page Header region, but the cover page will not show up on Preview or Export. How and where do I create a cover page Hi, Bibble, Whatever you place first on the Report Design surface (the dotted white area), renders first. So try adding a rectangle which will act as a container, put whatever you want in the rectangle, and set a page break at the end of the rectangle. ========================================================== This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX debugging add-in for Visual Studio 2005 not installed
Hi I just installed the August 2006 SDK and seem to have lost the debugging add-in my Visual Studio 2005 Pro (English) . I don't see it on the splash window or the debugging sub menus. I've tried the uninstall/re-install thing. Does anyone have any other ideas Thanks Gary Windows XP Professional SP 2 Development account is set to limited user It seems they've forgotten all the Visual Studio Integration in the August 2006 SDK. I just installed the SDK on a new laptop and it didn't auto setup the Include/Lib project directories, and Visual Studio does not recognize and color code .hlsl files as April 2006 SDK did. I'm just going back to the April 2006 SDK, nothing really special in the Au ...Show All
Visual C# Checklistbox problem in new domain...
Hello, I have a window app written in c# that contains checklistbox. I had the statement clearselected() to clear out the checked checkboxes when the user loads the new case... Everything worked perfectly until my users got converted to new domain. Since they got converted to the new domain, the checkbox is no longer cleared out on pageload. Whatever the user selected in the previous case remained checked for the new case. The problem is: the application will not do anything because there are nothing actually checked (the checkedindices collection is actually cleared)! The user either has to shutdown the app or manually uncheck/recheck the items in order to add them to the checkeditem collection. The situati ...Show All
Visual Studio 2008 (Pre-release) Duplex bindings vs Async
Please excuse my ignorance. I would like to understand what the difference between these two patterns is: 1. use a Duplex contract to do callbacks to the Client 2. Client hosts a service endpoint for callbacks and passes the endpoint address as a parameter to the Server so that it can callback using a service proxy. (2) is possible with none duplex bindings so... What does (1) provide that you don't get from (2) Does the duplex contract do both the service request and the callback in one session context I'm sure there are some subtleties here that I don't see. Thanks, Ting I've never actually done 2 personally but I can see how it would definitely be more work. Using the duplex binding gives the server a ...Show All
Windows Forms textBox Question
is there a way to allow only ' a-z A-Z 0-9 ][{}()-* ' characters to be typed into a normal textBox the MaskedTextBox wont work in the way that i want it too. Im using VC++ 2005 thanks no still not working, ive seen similar code for doing this somewhere but i cant remember where although it may have been the same code. maybe someone out there has a solution to this mysterious puzle it doesnt seem to recognise the word ' Regex ' either so it could be that ...Show All
