Boaz Shalev's Q&A profile
Visual Studio 2008 (Pre-release) mouse events misfiring
hi, i am building window which will have a tree structure in it. the root node is a canvas and the child nodes are shapes. my aim is to add new shapes nodes to the root or as sub child to another shape node (when i click on the shape node). but when i click on a child the node is getting created, but it is getting added to the root i.e (to canvas) instead to the shape node on ...Show All
Windows Forms TypeConverter
Hi I have a custom control derived from System.Windows.Forms.Control . It is placed on a custom Form derived from System.Windows.Forms.Form Now my requirement is that when the user drags and drops the control onto my form, the code generated behind should be something like as follows : public class TestForm : CustomForm { private Declarations ..... ..... TestForm() { InitializeComponent() } private  ...Show All
Visual Studio Tools for Office Shared Add-In VS2005
Hi! I have problems to get Shared Add-in done with VS2005 ("final" version) with Word 2003. I manage to make same test with old VS2003 shared add-in project type and it's working fine with Word 2000. Is there some issues why .Net 2.0 Shared Add-in won't work with Office 2003 Also what I actually trying to solve is that I need add-in or way to add new command bar to Word where users can use my .Net windows form program. On VS2003 it worked just as I though with Shared Add-in project. If I need to make this kind of 'add-in' for .Net 2.0 and Word 2003 should I install VSTO for this purpose or should shared COM Add-in method work I ...Show All
Visual C# Where the picture that shows all of .NET classes
Hi, Afew days ago, i saw a picture, which had shown all of .NET classes including 1.1 and 2.0, but now i lost the link of that picture. Does anybody know where that picture it Click ! ...Show All
Microsoft ISV Community Center Forums BSM Scorecard Report Views
Hi All, I have created a scorecard,and added 2 reportviews(Type:Pivot chart) in the report view Tab, both of which belong to the same group i.e 1. I have added this scorecard on my sharepoint site along with Report view Web part and defined the relationship between them,by connecting them using "Webpart connections" . I have also selected the "Report view groups" thats needs to be displayed in the "Reportview webpart" by checking the appropriate checkbox available in the web part. When i execute my SP page, i can see the Scorecard and also the Report View webpart with a drop down box,which has both ...Show All
Visual Studio Express Editions Thanks
Hi! I have an Excel workbook in My.Resources. I want to open it when I use a button. I don't know how to do it Do you have any idea I can do it by opening the file from its adress (see bellow). I want to do the same job with the excel file from the Resources. Thanks for your help.... Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click xlsApp = New Excel.Application With xlsApp .Visible = True .Workbooks.Open( "D:\Documents\Fred.xls" ) End With End Sub One way to go about it:...Use a binary reader to read the ...Show All
Microsoft ISV Community Center Forums How to put text in a listbox heads ?
Tried to find in help but to no avail. listbox.heads = True listbox.column = 8 but how to put some text in the headers. Thanks..... Hi Michael, The support engineer found the following... I have setup up a office 2000 machine for this case. And do test on ListBox control. First, ListBox control has a property ColumnHeads, we can set it as true, then the list box will show header for each column. But this won’t show column header when you use code to insert data. So there is only work around: Use a label instead of listbox header. -brenda (ISV Buddy Team) ...Show All
Windows Forms Refresh Designer at Design Time?
Hi, I’ve created a simple user control which resizes its height automatically according to the image size loaded by a user at design time. After loading the image my control resizes but the control selection area doesn’t resize automatically - only when I click on the control. My control also has a custom control designer which restricts the control user to set the user controls height at design time. Is there any particular reason why this is happening How can I fix this Thank you, Eric Maroudas. In your custom designer, after you've done ...Show All
Visual C# Regarding WebBrowser Control
i am working with c#.net Console application. i m using the following code snippet NavigateDocumnet() { object o = null; // some code here // Every time <b>"NavgateFile</b>" value is changed" m_WebBrowser.Navigate(NavigateFile,ref o,ref o,ref o,ref o);//<b>problem is here</b> // some code here NavigateDocument(); // Recursive funtion } <b>in Document_Completed</b> { mshtml.IHTMLDocument2 doc=(mshtml.IHTMLDocument2)m_IExplorer.Document; mshtml.IHTMLElement BodyElement=doc.body; //Retrieve all Text from Body Tag &nb ...Show All
Visual Studio Team System What test framework/technique should one use for testing web pages?
Situation: I have a number of pages that require passing information back and forth via Query Strings or POSTs. I would like to apply unit tests to each of the components on the page. As an example: http://homesite.com/landingpage.aspx a=UNIQUEIDHERE I want to write a unit test to a: make sure if the correct uniqueID is passed in, it is parsed correctly b: if they key is no longer valid, the page is redirected correctly Options: It would appear that I have quite a few options to do this. A day full of browsing around gives me: Use nUnitASP -- this is ok, but I'm writing all my tests in VSTS, and this would mean it'd be a separat ...Show All
.NET Development Databinding Custom Classes
I have a custom class that is data bound to a textbox.text property in the usual way... Textbox1.Databindings.Add("Text",MyCustomClass,"Value2") When I us the UI and change Textbox1.Text, MyCustomClass.Value2 updates as expected when the textbox is validated. But changes to MyCustomClass programmatically does not update the textbox. I guess MyCustomClass needs to implement an interface and supports notification but I'm not sure which one and how to achieve this. Thanks in advance.. ...Show All
Visual Studio Team System Error TF42052
Hi, I received the "TF42052 : The file system on the build machine does not support access control lists. Please specify build directory on a file system that supports access control lists like NTFS " error when I try to build on the server. Sorry, I posted this in another forum as well but I wasn't getting any responses I use the Team Foundation Server Workgroup Edition and the Team Explorer version is 8.0.50727.147. The DropLocation and BuildDirectoryPath are NTFS drives with this structure : \\s5615lab : D:\donnees\lar31\build D:\donnees\lar31\drop (with a "drop" share na ...Show All
SQL Server Long running Query
Hi, I'm trying to optimize a long running (several hours) query. This query is a cross join on two tables. Table 1 has 3 fields - ROWID, LAt and Long. Table 2 has Name, Addr1,Addr2,City,State,Zip,Lat,Long. Both tables has LatRad - Lat in radians, LonRad- Lon in Radians. Sin and Cos values of Lat and Lon are calulated and stored to be used in the distance formula. What I'm trying to do here is find the nearest dealer (Table 2) for each of Table 1 rows. The Select statement takes a long time to execute as there are about 19 million recs on table 1 and 1250 rows in table 2. I ran into Log issues- filling the transaction log, so I'm c ...Show All
SQL Server Problem with CASE Expression
Hi, all here, I have a problem with CASE expression in my SQL staments. the problem is: when I tried to just partly update the column a , I used the CASE expression : set a=case when b=null then 'null' end the result was strange: then all the values for column a turned to null . so what is the problem tho Thanks a lot in advance for any guidance. The issue is with your comparison of the column value against NULL using equality operator. By default, <any non null value> <> NULL unless you set ANSI_NULLS to off and this affects few operations in the server. You can check the Books Online for more detail ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Specular reflections for sphere mesh is ugly.
I saw the thread about specular reflections disappearing but the solution of reducing specular power ie, specularSharpness is not an option because either way it the reflections look really ugly. I can't see why there would be a problem with my mesh either, since I'm using the Mesh.Sphere method to generate it, so I don't see why there would be a problem with that. I don't know why this happens. I am simply trying to render an untextured, colored sphere, with lighting from the top, a fair amount of ambient light and a small sharp but well defined specular point. I'm able to do this in openGL and get really nice looking specular reflection ...Show All
