Antony Nguyen's Q&A profile
Visual Studio 2008 (Pre-release) Config failur
I am creationg a service. When I add an end point in code it works. But when I add it in app.config I get a exception telling me then the configuration of the service can not understand the attribute "type" in the statmant <service type="xxx" ... why did the schema change Yes, the configuration schema has changed. You now set the service's name instead of the type. For the d ...Show All
SQL Server Rounding Values
Hi, How can I round a value to the next int number like all values > 1 and < 2 I need to round to 2 and on and on...to all numbers So If I have 2.1 it's 3 if I have 2.9 it's 3 ...and so on... Thanks ...Show All
Software Development for Windows Vista Possible Start Menu GUI Bug
After a tough time installing Windows Vista, I came to install some third party applications. After installation, as usual the menu items appear in the programs list(classic view). Now this just maybe me, but isnt there a way to automatically organise the list When I right clicked, and chose "Sort By Name" it did so, but at the same time, added about half an inch onto the width of the start menu. Thanks for testing out Windows Vista ...Show All
Visual Studio Express Editions Question about adding an About Box to an Project
I'm currently doing a web browser project based on the one found in the book called Build a Program Now! Visual Basic 2005 Express Edition and I was about to add a About Box to the project when I came stuck in the secion in Chapter 6, Page 89 [for those who have the book] Basically in Step 1, it says to rename Form1.vb to Browser.vb which I did but Step 2 seems to be the problem as it says that on the Browser form I had to delete the txtURL a ...Show All
SQL Server Recordset Destination
Every time I try to us a recordset destination for error output, I have problems with setting the "VariableName" field. Is this a known issue Or am I just doing something wrong Thanks Jim Thanks Allan. Pretty simple and I figured it was something like this. I didn't realize I needed a "variable" to hold onto my recordset. Jim ...Show All
SQL Server Pause/Continue distribution, content formatting or delivering.
Notification Services get an event and create notification batch. Can I pause or stop process of notification delivery with (or without ) ability to continue I haven't tried it myself, but I can't see any reason why the standard retry logic wouldn't work. Just be mindful of the ExpirationAge, RetrySchedule, and RetryDelay elements. Of course you'll also need to consider those times when you need to turn delivery again before the expiratio ...Show All
Windows Forms custom scrollbar for datagridview
Is there a way to disable vertical scrollbar for datagridview and have a vscrollbarcontrol scroll the datagridview if yes, any suggestions, examples I want to use a custom scrollbar that has gradient paintings for the datagridview. You can set the ScrollBars property to be None to remove the vertical scrollbar. After you add your own vscroll bar control, you'll need to hook the Scroll event and set the FirstDisplayedScrollingRowIndex prop ...Show All
Microsoft ISV Community Center Forums VBA in EXCEL - Connect to SQL Server
I am a new programmer try to write some VBA codes in excel to get data out from the Sql server database. When I try to compile the codes, it said "compile error: user defined typed not defined" for the following sentences Dim dbsCurrent As Database Dim qdfPassThrough As QueryDef Dim qdfLocal As QueryDef Dim rstTopFive As Recordset Dim strMessage As String What I need to define for Database,recordset or QueryDef Please help! ...Show All
SQL Server Run a SSIS Package including Windows Tasks Scheduler?
Hello As a beginner I have created some Packages to import Data to SQL Server. The Packages are running well. I have created a Task to run the Package on a SQL SERVER 2005 Express. The Task starts. Then a Execute Package Wizard Picture appears on the Screen. I have mannually to select the Connection Manager and the Connection String. After the selection the Task runs without any Problem. Now I like to get the Task to run ...Show All
Visual C# Treeview Mimicking Windows Explorer
I am implementing a TreeView control to closely mimic Windows Explorer behaviour. The user can edit labels and these must be uniquely named. If the user edits the name of the label to a non-unique name an error message is displayed and the label remains in edit mode until the user enters a valid name. I am using the following pattern within OnAfterLabelEdit: protected override void OnAfterLabelEdit(NodeLabelEditEventArgs e) { //Label ...Show All
Visual Studio 2008 (Pre-release) ANN: Amazon ads - updated for Nov CTP
I have updated the Amazon ads - Avalon version. This is a small sample of a Web Browser Application embedded in an HTML IFrame. http://www.valil.com/winfx/ads.html That is simply beautiful, so smooth. Do you know if xaml can do grow rollover effects simialar to DHTML eg: http://www.premiumwanadoo.com/dhteumeuleu/runscript.php scr=imgPress-X.html ...Show All
SQL Server Moving the ReportServer database
I want to move the ReportServer database .mdf and .ldf files from the default directory to another drive (E:) The ReportServer service is started, but when I run a sp_help_db from SQL Server management studio the ReportServer database is not listed. When I tried to detach it using sp_detach_db , the command reported succes but I'm wondering how this worked when the database is not in the sysdatabases table. I haven't tried moving the Repor ...Show All
.NET Development Auto ellipses function
I have a label. The label autosize set to false. If the string larger than the label size, truncate and add the ellipses. Like .net 2.0 have the auto ellipses property in label. Example: Initially Label width is 40 px. The string length is 60 characters. Then compare the string length and size and do the action accordingly. string displayText = string .Empty; if (( this .baseText.Length * this .Font.Size) > this .Width) { dis ...Show All
Smart Device Development Compact Framework 2.0 & Windows Mobile 5.0 NotSupportedException
I have recently starting developing with VS2005, Windows Mobile 5.0 and the CF 2.0. I have noticed that recently I am receiving a NotSupportedException whilst trying to change the text of a textbox from a background thread. I used to get a detailed exception telling me not to update the textbox from a background thread. The only difference these days is that I am developing for Windows Mobile. Is there something I am doing wrong My App se ...Show All
SQL Server reporting services can not find SSL certificate name?
Durring SQL2005 RS install we recieve the error: "SQL server setup failed to receive the SSL certificate name" the Certificate on the default site is a simple cert issued by the same machine we were installing SQL2005 on (MS2k3 SP1) and does have a "friendly name". Can we install RS without it finding the default SSL Do we have to remove certificates prior to RS install any advice would be appreciated! ...Show All
