Alvin Kuiper's Q&A profile
SQL Server SQL 2005 Express slow/stalling
Hi All, I've read a few threads on problems that look similar to my issue, but I can't seem to find a solution. Is there any particular reason a queries should take longer than normal to execute And I don't just mean a couple of seconds... Some times a query can take about 0.01 seconds to execute (which is good) and others it takes 25 seconds to execute (which is bad). This anomaly seems to occur on all websites using the database instance. The only thing I can think of is something to do with the server running as a Windows user as opposed to System. The user (system.mssql) has no special rights except for log on as service, plus all the normal (modify) permissions on the SQL-related directories. If anybody could give me a ...Show All
Visual Basic How add code to the close button (title bar)
I'd like to display a msgbox when the user clicks the close button (X) at the title bar. An option to the user is to save data or not. I tried to use the event .disposed, but the frame was already closed before the msgbox is shown. This will work, but it would be more 'fancy' if the form was still visible. Is there any form event for the close button Thanks Where are you looking for this specific event This is the BaseClass event: you probably need the FormClosing (or FormClosed ) event - unless there is some specific reason you need the baseclass Closing event. In which case, yes, you would have to handle (code) it manually. ...Show All
.NET Development Countdown Timer
I can't figure out how to make a timer countdown rather than counting up, I know that it has to do with System::DateTime::Subtract. I have a DateTimePicker, and I want the timer to start right when you change the value of the DateTimePicker, and I want the countdown to be counting down from the value I choose. For example if I choose August 14, 2006 on the dateTimePicker, I want the timer to be counting down from that date. Yeah that's what I thought too but I'm pretty sure I did it wrong because I got a bunch of errors. In fact I know that I did it wrong but I don't know how to do it right. If u could, would u please show me an example of what u think it should be ...Show All
Windows Forms column focus in DataGridView
Is it possible to restrict user to put focus on a particular column in DataGridView http://www.windowsforms.net/FAQs/default.aspx PageID=2&ItemID=682&CategoryID=3&tabindex=302 I hope this article will help you ...Show All
Visual Basic How do I search the database for data and return a True or false?
I am trying to add code to check if the information in the first two TextBoxes(FirstName and LastName) is already in the database(so that I can just update it) or if the TextBoxes contain new names so that it will continue to add a new DataRow...... Private Sub SaveButton_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveButton.Click 'Create a variable for the child's photo' Dim ChildPhoto As String ChildPhoto = ChildPhotoPB.ImageLocation 'Make sure names have been entered' If TextBox1.Text = "" Or TextBox2.Text = "" Then MessageBox.Show( "Please enter a first and last name." ) Else 'Copy the information from the variab ...Show All
.NET Development jscript event handler
I have an existing html page that works well in a Visual Studio 1.2 ASP.Net project. When I included the page in a Visual Studio 2.0 web application I recieved errors on all my event handlers. The code I used for the event handlers is from Microsoft's MSDN site for embedding media player in a web application. When I visted MSDN and searched for jscript event handlers for mediaplayer I got the same stuff as below. Code: <script language = "jscript" for "Player" event = "PlayStateChange(NewState)"> </script> Visual Studio underlines script, for and event in red. When I hover the mouse pointer over each I receive the following error messages. script - Validation ...Show All
Visual C++ LINK ERROR _errno
hi, i've got a linker error :( my project is /MTD additionnal dependency " libcp.lib" ------ Build started: Project: romustrike, Configuration: Debug Win32 ------ Linking... Searching libraries Searching C:\Program Files\Microsoft DirectX SDK (December 2006)\Lib\x86\Dxerr8.lib: Searching C:\Program Files\Microsoft DirectX SDK (December 2006)\Lib\x86\dplayx.lib: Searching C:\Program Files\Microsoft DirectX SDK (December 2006)\Lib\x86\dxguid.lib: Searching C:\Program Files\Microsoft Platform SDK\Lib\winmm.lib: Searching C:\Program Files\Microsoft Platform SDK\Lib\wininet.lib: Searching C:\Program Files\Microsoft DirectX SDK (December 2006)\Lib\x86\dsound.lib: Searching C:\Program Files\Microsoft Platform SDK\Lib\use ...Show All
Software Development for Windows Vista Problem installing cards!!
I installed all the software, and web pages also. Everything is working fine. But, after I create a card And tried to install I have always an error: "Class not registered". In the Windows Cardspace I have the same problem when I click in "yes, choose a card"! Anyone had the same problem Thanks in advance ...Show All
Windows Forms Help required with understanding threading
I've got a function in my program that's made by this logic: SaveItem if CheckSave = true then if Status != 5 then If Revision = "Y" or Status != 0 then SaveRSFiles else bSucces = true end if if bSucces = true then SaveMaItem end if end if Now I noticed that somethimes the application hangs on saversfiles. So I read a little bit about threading and now is my question how can I implement threading into my application Something like this: SaveItem if CheckSave = true then if Status != 5 then If Revision = "Y" or Status != 0 then SaveRSFiles (IN A NEW THREAD) else bSucces = true end if end if If thread finishes, then it needs to fire "SaveMaItem" (if bSuc ...Show All
SQL Server Textbox Properties Format Code = to General Format in Excel?
When I export a report to Excel I need most of the fields to be the general format of Excel which is what in the format properties of Reporting Services Reports I tried Default and that doesnt seem to be it either. According to Excel the General format cells have no specific number format. Any ideas would be wonderful! Thanks so much! Stokh :) That worked for the general now what about text I tried it with leaving it blank and I tried Default that didnt work either, I even used cast(debtorName as text) in the stored procedure when I do that the data doesnt show up at all! Stokh ...Show All
Silverlight (formerly WPF/E) TextBlock Background Property
According to the documentation the TextBlock has a Background property: http://msdn2.microsoft.com/en-us/library/bb188394.aspx . But when I try setting this it my xaml will no longer load. Bug or documentaton issue Thanks! TextBlock does not have a Background. It's an error. Thanks for pointing this out! You can put the TextBlock on a Canvas and set the Canvas's Background. -mark Program Manager Microsoft This post is provided "as-is" ...Show All
Visual Studio 2008 (Pre-release) WCF X.509 CAs?
Can anyone point me to CA's of certificates suitable for WCF encryption and what do I ask for I understand that the standard SSL certs do not work and the sales reps are not knowledgeable about WCF requirements. Thanks John You can create certs using the makecert tool. The SDK has a lot of samples that have scripts that create these certs for you and install them into the correct store. Try looking at http://msdn2.microsoft.com/en-us/library/ms751503.aspx ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Debugging & highliting shaders
hi, i have 2 questions about shaders 1. can i debug shaders in vc#, as i can debug usual app 2. are there any instruments to highlight and auto-complete (like intelli-sense) shader code 1. No. However there is a shader debugger in PIX whch comes with the DirectX SDK. 2. In VS Pro and above you get color coding of shaders, but no intellisense when you install the SDK. However in VS Express you get none of these things. This would be a good request to add into connect. ...Show All
Visual C# Is there such a thing as a multidimensional Arraylist or List? If so. Syntax?
Hi! I'm new to C# (and programming for that matter), so this might be a really dumb question. I want to create a multidimensional array where each item is an arraylist. I have a bunch of data, that fits different criteria, and I want to be able to store these in different rows of a multidimensional array. New data, for each criteria, is being generated, so I need the arrays to be able to resize. What I would like to be able to do is something along the lines of this: List<double>[,] myData = new List<double>[2,2]; Meaning a 2x2 array, containing in each element a List<double>. And then I should be able to add data by a statement like: myData[0,0].Add(moreData); And retrieve data by: myData[0,0][someI ...Show All
Visual Studio Team System MS Project versions?
Does MS Project have some sort of versioning mechanism An .mpp was created by pulling work items for a query and then saved to a desktop. after modifying and saving the changes, upon reopening the start date and first item in the project plan have incorrect dates. Once the document was sent to me and everything connected to TFS, the dates were what they should have been. I'm just curious how I can access the same .mpp and see different dates than a coworker for the same work items. We are both running MS Office Project Pro with SP2 and are both connecting to the same TFS site. Hi, Right now, the MPP integration losing the information when you export the work items from TFS since the start ...Show All
