laurag's Q&A profile
Windows Forms DragDrop to MonthCalendar control
I'm writing a little scheduling application. Basically, I want to be able to drag drop items on the monthCalendar control. This works just fine. But I want to be able to drop them on a specific day on the calendar. I can tell the X,Y position from the DragOver event, but how do I translate that into the actual day they are dropping it on Or is there a better way MonthCalendar has the HitTest() method to find out where the mouse is located. It is however rather crude, you can just find out what area of the calendar you're on, not what date. So, I thought of a trick: fool the control into believing that the user clicked with the mouse. Then you can simply look at the SelectionStart property to find the date. Here's a simple Windows F ...Show All
Software Development for Windows Vista Windows SDK Documentation
Hello, If you have the Windows SDK and Visual Studio installed, you can help me. Please tell me if your Windows SDK documentation is integrated with your Visual Studio 2005 documentation. Thankyou. Because mine isn't. Assistance appreciated. I did a clean installion of Visual Studio on Vista RC2, and I installed the following additional items in the order shown. installed VS2005 sp1-KB918525-X86-Beta-ENU installed MicrosoftR WindowsR Software Development Kit for RC 1 of Windows Vista and .NET Framework 3.0 Runtime Components installed Microsoft Visual Studio Code Name Orcas Community Technology Preview – Development Tools for .NET Framework 3.0 - vsextw ...Show All
Windows Forms some Click once questions..
1. What is the real difference between the publish site, and the launch site. When would be the publish location different from the launch location 2. Code access security: If I enable Click once security and click on Full Trust. Once I deploy this, the end user still needs to say ok to allow full trust, right What can go wrong in giving full trust in an intranet only application 3. Allow URL parameters to be passed to application. Under publish->options what is the significance of this, and how is this used 4. GAC: Can any files/components be installed in GAC using Clickonce I have a question regarding Command Line parameters. If you deploy using ClickOnce to a ...Show All
Visual Studio August 2006 V3 RTM ???
Hi there, I think all are waiting Visual Studio 2005 SDK - August 2006 V3 RTM. But... already September begins... When are you (I mean VsSDK team) going to release August 2006 V3 RTM Has current iteration been completed already Thanks Before every RTW vX release, the team executes a "release sprint" to take care of the logistics of releasing an official RTW. (We did the same thing before the v1 and v2 releases.) So the v3 RTW is named 2006.09 and will be coming out in the next couple of weeks. ...Show All
SQL Server T-SQL question
I have some T-SQL experience and can do most basic stuff fairly easily. I've been tasked with generating a report that compares 2 different numbers in 2 tables. The join query that I wrote works well, but now they have asked me for a subset of the data returned. Basically my result set give me a format similiar to the following. Bob, Jim 000000012345 0012345 Doe, Jane 000001234567,1234567 If the second number returned has zeros preceding the number i need to include those in the report, and exclude ones that do not. I am unfamiliar with how to sort that, i am familiar with using trim to specify the number of spaces on the left or right to trim. Can i use a sub-query, or would i use a cursor to do this ...Show All
Visual C# Recursion with delagates
I wish to write following code but I get the error that variable is not inialized. delegate void Recur ( TreeNodeCollection nodes); public void ShowKeywords( string message) { List < TreeNode > list = new List < TreeNode >(); Recur recur = delegate ( TreeNodeCollection nodes) { foreach ( TreeNode node in nodes) { list.Add(node); recur(node.Nodes); } }; recur(treeView1.Nodes); -- error is Error 12 Use of unassigned local variable 'recur' It is possible to modify Recur recur = delegate ( TreeNodeCollection nodes) to Recur recur = null; recur = delegate ( TreeNodeCollection nodes) But I think it worth to modify C# a bit to ...Show All
SQL Server SQL Server Error Message - Operating system error 10038: An operation was attempted on something that is not a socket...
My apologies...I wasn't for sure where to post an error like this... Over the last 2 months I have gotten this SQL Server error (twice). All existing processes will continue to work, however no new processes can be created and users cannot connect to the server. This is the exact text of the message in the SQL Server error log. Operating system error 10038: An operation was attempted on something that is not a socket... Error: 17059, Severity: 18, State: 0 Error accepting connection request via Net-Library 'SSNETLIB'. Execution continuing. Error: 17882, Severity: 18, State: While we can typically just stop SQL Server Service and restart the services...I have found it is best to restart the machine during non-production t ...Show All
.NET Development Start automatically Windows service
I created a windows service in VS Standard .Net 2005 I installed it and set to start automatically, but when boot machine, an error 1053 occured. If I click in button to Start, everything is OK. I can stop it... Please, what can I do Tks! Jaren, Yes windows service don't pick up xml file as default(like application), but if you specify the location of the xml file then you can load it.I hard code the location and it woked for me.If it is not working for you,let me know i can me email at tanveer_ashraf@hotmail.com Thank You Tanveer ...Show All
Windows Forms DataGridView Search
Hi I am using a DataGridView for a timeline - there is a time column starting at 00:00:00.0. I also got a timeslider (Trackbar). When I use the timeslider the correct row in the DataGridView should be selected/highlighted.. Therefore, when using the timeslider the application needs to search the DataGridView for a certain time string. What is the best way to do this Thank you Thank you for answering. The number of timeslider values is not equal to the number of DataGridView rows - so I need to search the DataGridView for a specific time value. ...Show All
SQL Server Using many-many relationship in SSAS
Hi, we have built a cube implementing many-many relationship within. will it have any effect on the performance if a many-many relationship is used within a cube with large volumes of data I have implemented a cube with about 3 dimensions referenced through many-to-many relationships. I have a fair bit of data and I wouldn't say there is a considerable effect in performance if you define your aggregations properly. However if you can add this dimension as extra attributes of another dimension I would advise you to do so. ...Show All
.NET Development .NET (v2.0.50727) server committed a protocol violation
Hi, I’m working on a simple web service in C# running on IIS which sends a GET-Request to an external server. The Get-Request is received properly and processed by the external server. A trace with Network Monitor tells me that the response code from the external server is 202-Accepted. I guess this might cause the problem that the HttpWebResponse class throws the following WebException “ The server committed a protocol violation. Section=ResponseStatusLine” I looked at many mailing lists and found the ( httpWebRequest useUnsafeHeaderParsing="true" ) patch. I changed machine.config and web.config but without any changes. I also changed the header field “connection” in the Get-Request from “keep-a ...Show All
Visual Studio 2008 (Pre-release) Root object(class) in Domain Object Model
I have a question, the question is: In the ADO.NET vNext Entity Data Framework how do I solve the problem of having a root object in my domain model Let's say in my domain object model I have to have a root class from where every other class will be inherited. Obviously the root class does not need to be persisted, it simply adds some behavior to all the objects that I am going to use in my application. While playing with the August CTP, I noticed that I could not make this work. Maybe I'm missing something. Maybe there are ways to get around this problem, can anyone please shed some lights on it I replied to the other thread here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=70336 ...Show All
Visual Studio Express Editions VB.NET 2005 EXPRESS EDITION SERVICE PACK
I understand that a service pack is being prepared for Visual Studio 2005. Will this service pack also apply to VB.Net 2005 Express Edition If not, is there an intention to provide a service pack service packs are fixes/patches for existing problems in a product and it is good to keep your product up to date (like Windows for example). Some service packs also include new features for your benefit but mostly the bugs found in the product are resolved by the Service Pack as it includes fixes for it. ...Show All
SQL Server Wrong Set Option during request with serverside cursor
Hi, I'm working with VB5, ADO 2.7 and SQL Server 2005 and want to retrieve some data from a table with a lot of rows using a serverside cursor. The table has a computed column and so I need to set arithabort on, which I set after opening the connection. While I'm looping through the Recordset, I need to execute some statements, which use a user defined function (scalar), where I can't set the set option arithabort. My problem is, after opening the serverside cursor, the value of arithabort is off (and not on!). In Profiler, each time I execute a command while the cursor is open, there is an Audit Logout and Audit Login. Audit Login changes the set option for arithabort to off (maybe because of ADO or the database default set ...Show All
Visual Basic How to debug a Windows Service built with Vb 2005?
Hi everyone, I’ve installed that service by means of installutil.exe and then started with Service Manager. But from the IDE I trying to attach that process from Debug option but it doesn’t appears. Why Let me know where am I failing. TIA It's already solved I was looking for the same name as service instead of process... Pre and post build events too. Is different from VB Thanks anyway. ...Show All
