bilsa's Q&A profile
Visual Studio Express Editions Cursor location
Hi, Can anyone tell me how i put the cursor location the same as a picturebox location by pressing a button. thanks Kooelho, Here I have an example on the issue and hope that can help you: Use a Timer control to periodically see if the mouse is over the control. Uses the ScreenToClient and GetCursorPos API functions to determine the cursor's location. ' Highlight the control. Private Sub Label1_MouseMove( ByVal Button As Integer , ByVal Shift As _ Integer , ByVal x As Single , ByVal y As Single ) If highlighted Then Exit Sub highlighted = True Label1.ForeColor = vbRed Timer1.Enabled = True End Sub ' See if we should unhighlight t ...Show All
Visual C++ C++/CLI - Class assignment
Hi, I'm currently converting apps from Managed C++ to C++/CLI. So far not so bad except that I'm not so sure about how to convert current operator+ assignment to C++/CLI syntax. In Managed C++, I had the following: CL_Modules* CL_Modules::op_Assign(CL_Modules& Nouv_Module, const CL_Modules& Module_Src) { if(&Nouv_Module != &Module_Src) { Nouv_Module.Collection = Module_Src.Collection; Nouv_Module.Module = Module_Src.Module; Nouv_Module.Fig_Xpos = Module_Src.Fig_Xpos; Nouv_Module.Fig_Ypos = Module_Src.Fig_Ypos; // Copy infos vs graphicspath Nouv_Module.Figure = dynamic_cast<GraphicsPath*>(Module_Src.Figure->Clone()); // Copy array vs Region(s) Nouv_Module.FRegion = dynamic_cast<Rec ...Show All
.NET Development Best way to compine datatables
Hello, I have to deal with x number of datatables to make one compined datatable. I was wondering what would be the most efficient way to do this. I am quite new to VB .NET. So the case is that I got bunch of datatables where colum name is the price and the rows indicate the amount of purchases for current time. Would it be best first to read all datatables to datatablescollection( ) or should I just build the new table as I read the tables. What would be the best way to compine same the columns There is alway the same amount of rows. When the column names(numbers) match the values for the current times are summed. well to add datatables into a "collection", you could add it into a dataset to hold the datatables ...Show All
Visual C++ What is the latest on STL.NET?
I am finishing up a book on C++ .NET and I need to what the latest is on STL.NET. Is it available yet Whats the status Thanks. Andrew A: Thanks. Incidentally, my book is on financial programming, which you may already know. Boost and Quantlib are unforetunately outside the scope of my book. I would love to write a chapter (which certainly would not do that subtopic any justice) on connecting to Quantlib. The idea is certainly very interesting though. Ben ...Show All
Visual Basic Visual Studio Is Busy?
Pentium IV - Northwood 3.5 Ghz - I Gb of Ram. XP SP2 .. all current patches applied. VS2005 RTM Team Suite On occasion while debugging the IDE becomes nonresponsive and I receive a Bubble message informing me that "Visual Studio is busy waiting for an internal operation to complete - If you receive this message often, please inform Micorosoft" After I receive this message the IDE never recovers. All I can do is to delete the process and restart it. Any idea what's occurring It's happening consistently for me any time I try accessing a remote site. The site was working yesterday, but when I got in this morning, I am unable to access it via VS 2005. I can get in fine using 2003, though. If I resolve t ...Show All
Visual Basic navigation between forms
i have a project with 17 different forms all being housed in a mdi parent form. i have tried to impliment a previous button on most of the forms, which is complicated by the fact that there is more than one way to get to some of the forms at this stage, i have used a global variable which is changed each time a form is closed, then a case statement within the previousbutton_clicked event procedure that will use the variable to figure out which form to go back to. this seems to work, but i was wondering if anyone knows an easier or better structured way of achieving this functionality. any ideas will be greatly appreciated. thanks in advance, Mark thank you for the response i am trying to go bac ...Show All
Visual Studio Team System Tools for Graphic/User Experience designers
I work for an IT firm that does mostly web application. We are very focused on user experience and UI design. The team leader of the design team has asked me if there are any tools that connect to TFS that they could use. I know that the Expression suite does, but they already use Photoshop, flash, etc. Are there any plugins for these tools or anything else that I could show them For tools that support the Microsoft Source Code Control Interface (MSSCCI) you can try using the Team Foundation Server MSSCCI Provider ( http://www.microsoft.com/downloads/details.aspx FamilyId=87E1FFBD-A484-4C3A-8776-D560AB1E6198 ), or run Team Explorer as a separate client. ...Show All
SQL Server How do I compact SDF with SQL Mobile 3.0 OLEDB Provider with VC++
The interface ID IID_ISSCECompact has been removed from ssceoledb30.h thus causing a compile error on this statement: hr = m_pIUnknownProv->QueryInterface(IID_ISSCECompact, (void **) &pISSCECompact)); So how does one compact a database using the 3.0 OLEDB Provider and VC++ Thanks JEK May be this is what you are looking for. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=186641&SiteID=1 Thanks, Laxmi ...Show All
SQL Server grouping or formatting issue
hey there I have a date time field Fields!CreatedDate.Value which I am grouping on and Counting on an ID Field result of grouping is this 7/13/2006 12:00:00 AM 1 7/21/2006 12:00:00 AM 11 8/7/2006 12:00:00 AM 3 8/8/2006 12:00:00 AM 2 I know if I put (Month(Fields!CreatedDate.Value) I get this result 7 1 7 11 8 3 8 2 What I really want is July 12 August 5 how do I do this please thanks jewel, Try Placing the expression Monthname(Datepart( "m" , Fields!CreatedDate.Value)) into your group expression (edit group), this will cause the group to only consider the month when summating the values ...Show All
SQL Server Can't connect to Express Edition
I have a huge connectivity issue that I can't seem to solve. We're using SQL Express Edition as a local data store that is participating as a subscriber to SQL Server Enterprise Edition. Perfectly valid and supported. Now the issue. I have the Express Edition on one machine connected just fine, but the other one absolutely refuses. Here is what I did for the one that connected correctly: 1. Enable remote connections for the Express Edition instance and restart the instance 2. Added the SQL Agent service account on the server to the SQLServer2005MSSQLUser$machine$SQLEXPRESS group on the local machine (yes, I want it to have that level of authority) 3. Connected to the machine with Express Edition to the network via VPN. 4. ...Show All
SQL Server Identity column not returnd after AddNew / Update with ADO and SQL 2005
Hi, I add new records to a table with ADO. The tables contain an auto-increment identity column. I want to retrieve the identity value after the insert operation. This works fine for SQL Server 2000. On SQL Server 2005 this only works if I use a table in the select statement. If I use a view in the select statement, ADO returns no value for the identity column, a trace with profiler shows that there is no Select @@IDENTITY statement. What is the reason for this behavior How can I change this behavior in SQL 2005 so that the behavior is the same as in SQL Server 2000 Best regards, George I have encountered this same problem too. Has anyone found a solution It's used in a complex bound fo ...Show All
SQL Server Why I got added rows when using FULL OUTER JOIN?
I've met a curiouse thing when using full outer join, that I got some rows belong to neither tables @_@ The SQL statement is like this: SELECT PreviousMonth.InvoiceID, PreviousMonth.CategoryName, PreviousMonth.ProdName, PreviousMonth.Qty, ISNULL(CurrentMonth.SellTotal, 0) AS SellTotal, ISNULL(PreviousMonth.SellTotal, 0) AS PriorSellTotal FROM (SELECT SellTotal, InvoiceID, CategoryName, ProdName, Qty &nb ...Show All
Visual Studio Team System Get users list subscribed to particular event type
Hello, I have subscribed to TFS events using Subscribtion API as a part of client side app. I need to get the users who subscribed to a particular event from a service running at server. Is there any way to get the users list for a particular event type Otherwise what is be the best solution in this case Please help Thanks Vighnesh If you have access to db, then you can do query on tbl_subscription table in TFSIntegration db. event_type column has type of event, and it shows sid of user which you could convert in your code. ...Show All
.NET Development VB.Net]How to draw an image with Graphics object on an MDI form
I have a problem that when I draw an image, a string, a rectangle, etc. My form cannot be an MDI form. How can I draw on an MDI form directly. I tried somthing like: Dim g As Graphics g = Me .CreateGraphics g.DrawString("hello", Me .Font, Brushes.Blue, 100, 100) Please help me. I'm using VB.Net 2003, Framework 1.1 Eslam, At first glance I thought the problem you are experiencing had nothing to do with being or not being an MDI form, but rather when you are calling the graphics method, as it needs to be called in the context of a paint event (an event containing painteventargs) such as: Private Sub Form2_Paint( ByVal sender As Object , ByVal e As System ...Show All
.NET Development How to download a text file after logging(authentication) into a web server
Hi , I am trying to Download a text file after logging into a web server server . I can log into and after that is a huge mark. The page after logging in contains the URL of the text file. I have tried making a new HttpWebRequest object and used the url in the page but still it's not working it says access denied. Below given code just helps me to log into the page that has the url to the text file. I need to retrieve the text file. Can some help me please. using System; using System.Collections.Generic; using System.Text; using System.Net; using System.IO; namespace Logon { public class Autologger { public static void Main( string [] args) { HttpWebRequest httpRequest; H ...Show All
