DavidFG's Q&A profile
Visual C# TabControl MouseHover!
hi everybody, How can I know which tabpage I'm on when I move the mouse please! The solution doesn't work. It only "appeared" to work because the MessageBox command moved focus away from the tabControl. This makes the tabControl OnHover even fire again. When the onHover event fires, until you move away from the tabControl, the onHover event will not fire again. Which causes the problem that it will work the first time, but not again until you leave the tabcontrol. It's like you need to resetEvents. If you moved the code above to the MouseMove event handler, it would do what you want, except it wouldn't do it on Hover, only when you move the mouse. You're right, this should be simple ...Show All
Visual Studio Team System Manage projects on Team System
Hi for every one, I have some cuestion, How can I know in wich status my project are if some of my project dosen't contain code on TS, only documents, so , I can measure my status with this information TKS! well, it really depends on what you are using and tracking in tfs. Most people who want to track this use Workitems, most probably as tasks, and track the state of those tasks. For instance in the Agile Process template that comes with TFS includes things such as Remaining Work and Project Velocity to extract some of that information and use it to track the status of the project. Anything outside of tracking these workitems gets very very tricky and honestly I don't know how you would do this reliably ...Show All
SQL Server Create Subscription For Rpt Service with Windows integrated security !!!
hi All, I m nicky here. I have problem on Create Subscription for my report if my Data Source is use Windows Integrated Security, with this error message: "Subscriptions cannot be created because the credentials used to run the report are not stored, or if a linked report , the linked is no longer valid" Please Help .... Thank you From nicky Yep, it sure does. A big pain. You could have multiple copies of the one report and change the data source of each report. Then secure the report via user groups. A pain, but if you only had a few users it might be ok. If you have hundreds however...... ...Show All
Visual Studio Express Editions Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance.
Hi - Every time I try y to start one of the starter kits by pressing F5, I get the following message: Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed." Any suggestions greatly appreciated. Regards, roger One of the reasons for this is the time out value for the connection, extend the connection time out in your connection string. I see this happen on some of the slower machines as it is taking longer then the default time to start the instance. ...Show All
Visual C# How to disable abridging in an ArrayList object?
Hi! Let's say I have this object: private ArrayList aryClients; // list of Client Connections Now, on every client connection that my server gets I add a Client object to that list. It's all good, but think of this scariano: 4 clients connected. Now aryClients has 4 items from index 0 to 3. The 3rd client who's Client object is in aryClients has disconnected, so item 2 was removed. Now this is where we're getting into my problem; I want that item 2 will stay null and item 3 (of the 4th client) will stay at index 3. Why you're asking Because I need to have quick access to clients' info in my server (it's gonna be a game server), and making a search (thought about the Windows handle of the client's sock - uniqe) ever ...Show All
SQL Server Need help to create this named set
I have a "Date" dimension with several attributes in it such as "Accound Period", "Calendar Year", "Completed Year"etc. I want to create a "named set" for some dataset to filter out the "Calendar Year" which has the value "Less than or equal to" the value of the attribute "Completed Year". The structure for the "Date" dimension is as follows: Calendar Year (attribute) Members Calendar Year------member Properties Completed Year (attribure) Members Completed Year------member Properties It has only a single value for the "Completed Year" and it was calculated in the data source view using "getdate() -2" ie. 2005 for the entire attribute. How to create a named set to filter out the Calendar Year with this Thanks ...Show All
Windows Live Developer Forums Possible bug? Control behaves strangely when created inside a hidden div
If the map's container div (the argument passed to the VEMap constructor) is hidden at the time of construction, the map behaves erratically when the container div is shown. Repro: Run the following code and click the Show button. Observe that, when zooming in and out using the mouse wheel, the point that stays fixed on zoom is not in the center of the map, but in the upper left. The scale is also gone. < html > < head > < title ></ title > < meta http-equiv ="Content-Type" content ="text/html; charset=utf-8"> < script src ="http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></ script > < script > var map = n ...Show All
.NET Development Quick Start Sample MultipleSchemas
I am developing a Validation Schema for a few large applications. We want to be able to share the portions of this schema that are appropriate between applications. We decided to do this by using multiple schemas. In my research I stumbled across the quick start example in: Microsoft Visual Studio 8\SDK\v2.0\QuickStart\howto\samples\xml\MultipleSchemas\cs\MultipleSchemas This sample uses two different schema files to completely define the type book. This looks like exactly what we need however the sample doesn't work properly. For example there is an entry in books.xml that is as follows: <book genre="novel" publicationdate="1967" ISBN="0-201-63361-2"> <title>The Confidence Man</title> ...Show All
Visual Studio Deploying exe problem
hi everyone, I have an .net exe application, my problem is, this app works on a comp. which installed visual studio.net 2003 , but does't work properly only framework 1.1 installed comp. . Please notice the difference,program works with framework 1.1 but not properly,misses some events. But if you install the visual studio on this computer everything works properly, Please hel me Regards ...Show All
Windows Forms how do I restrict extension?
Hi, I've developed application with log files. I want to restrict extension to load the log files such as like, .aspx, .xml, .html, .htm. In my Parser class, I do something like this; public class Parser { public LogEntry[] Load(string p) { ArrayList entries = new ArrayList(); using (StreamReader sr = new StreamReader(p)) { do { string lineread = sr.ReadLine(); if (!lineread.StartsWith("#")) { string[] information = lineread.Split(' '); string[] allowedExtension = new string[] { ".aspx", ".xml", ".html", ".htm" }; if ( ) { LogEntry newEntry = new LogEntry(); newEntry.IPAddress = inf ...Show All
Smart Device Development connecting data with MS Active Sync, howto?
is there any way to connect a database (desktop) from PPC2003 to a desktop with Active Sync 4.1 I can't do it with this code: imports system.data.sqlclient Public Function GetConnectionString() Dim connectionstring As String = "Data Source=desktop;Initial Catalog=table-name;Integrated Security=True" Return connectionstring End Function Private Sub click() Dim connection As New SqlConnection(GetConnectionString) connection.Open() Dim queryString As String = _ "SELECT Layer FROM dbo.MasterLayer" Dim adapter As SqlDataAdapter = New SqlDataAdapter( _ queryString, connection) Dim mstmap As New dataset Dim mst As DataRow ...Show All
SQL Server hidden cell in excel
Hello, Can someone please tell me why there's ALWAYS a hidden cell in Excel when a report has a more than one page for example, a report has 10 page breaks and after exported to Excel it has the first row hidden in each sheet except the first sheet. Why this happens always is there any workaround to avoid this thanks Hi Geert, Although I didn't build the reports myself, I spoke with the author, and inspected the layout view (and RDL), and we are NOT using Document Maps. Might there be another reason for the "hidden row" issue with exported Excel reports John ...Show All
Visual Studio Team System SDM Directory resource
Hi, I'm trying to create custom SDM Resource which represents a set of required for installation on "ImageServer" images. The model of resource contains FileSystem:Directory resource, but when I go to Resource settings tool window, I cannot see any Directory properties. What is a purpose of the Directory and File resource Why it is not allowed to add file to the directory, according to SDM model definition ( < Property Name = " SupportsUserCreation " Value = " false " /> ) Evgeny Popov Hi Evgeny, Directory and File Resources defined in Microsoft.FileSystem.sdmDocument are models for generic directory and files. However their relationships are de ...Show All
Visual Studio Express Editions Generating hashes of big files
Hi, i want to generate hash of big file (>200Mb) content: Dim Public SHA512 As New Security.Cryptography.SHA512Managed Dim mHash as Byte () = SHA512.ComputeHash( My .Computer.FileSystem.ReadAllBytes( "C:\bigfile.zip" )) but making it this way takes lot of time and memory. Is there any other way to do it faster or without taking a many Mb of RAM Just pass the file directly as a stream: Dim FileReader As New FileStream( "C:\test\test.txt" , FileMode.Open, FileAccess.Read) Dim SHA512 As New Security.Cryptography.SHA512Managed Dim mHash As Byte () = SHA512.ComputeHash(FileReader) Also take a look at the BufferedStreamClass, if you are willing to use more memory, it might ...Show All
Visual C# Convert time from 24 hour to 12 hour
Whats the easiest way of converting 24 hour time to 12 hour time in a date Ideally in a suitable format for inserting to an Oracle database. ...Show All
