Nate Skousen's Q&A profile
Visual Studio Express Editions VB: System.Random not random in For... Loop.
I'm having a problem where each number generated using System.Random is the same when created in a loop. The code works fine when stepping through, or using one occurance of the GenerateRandom Function, but at full run time in the loop, results in the same value. I am trying to generate 132 numbers between 1 and 5, and pass those results to an array. Here is what I've got so far... The random class is not all that random. I use RNGCyptoServiceProvider to create them. There is an example on the vb-tips website . ...Show All
Visual Studio running total with parametric percentile
Greetings, is there a way to make the percentile parameter of a running total field depend on a report parameter that i can set up with ReportClass.SetParameterValue if the answer is no, is there any way to modify this value Thanks in advance. ...Show All
Visual C# Running an ActiveX control on a form from DLL on a separate thread.
I have an ActiveX control that only works when I place it on a form and implements Single Apartment threading. I need to use this control in a DLL for a Windows Service program. The control communicates with a device. When I need to send a command to the device, the control sends the command, and then raises an asynchronous event when the transaction is completed. I created a form in a DLL and added the ActiveX control. I created a thread and set its apartment state to STA. I can't start the form before I start the thread, because it can only load the control in a thread that is STA, but when I start the form inside the thread, it throws& ...Show All
SQL Server columns order in entities
Hi friends i've report model with entities that depend on views. my question is , currently all columns in a entity in the same order as view has them. i mean if i have a view like below create view vname as select name,addess,status from mytable when i create entity based on this i get attributes in this order name,address,status but i want address,name,status how can i change it to alphabatical order i know i can change manually in model designer window but there are too many fields to sort !! is there any better way of doing this Thanks for your help ...Show All
.NET Development Where are the ASP.NET 2 Quickstarts?
Can someone point me to exactly where I can find the downlaod for the ASP .NET 2 quickstarts The go.microsoft link points to asp.net site, which then doesn't seem to offer too many clues... except that the quickstarts can be consumed from that site. thanks, -s Hi Scott, Here you go, http://www.asp.net/default.aspx tabindex=5&tabid=41 Thanks, Kedar ...Show All
Visual Studio Express Editions BindingSource Navigation
Hi, I've got a Winform with a number of controls that are directly bound to a bindingsource, I've also created a list box and a combo box that will be used for quick record selection. The problem is that both the list box and combo box, have a custom query source. What I would like to know is how to navigator to the selected record and how to change the other control to the same record. eg. If the user selects a record from the List Box, I want all the bound controls to go to that record and also the combo box to go to that record as well. I've tried to use the Bindingsouce Find method but I get a FormatException error. Thanks. ...Show All
Visual Studio Team System Event log errors RTM Workgroup edition
I have just installed the workgroup edition on a fresh installation of Windows Server 2003 R2. I'm getting the following errors in the application event log on boot: 1) MS SQL Server - Failure Audit - Event ID 18456 "Login failed for user 'domain\tfsservice'. User: TFSSERVICE Followed by 2) Windows SharePoint Services 2.0 - Error - Event ID 1000 #50070: Unable to connect to the database STS_Config_TFS on THUNDER. Check the database connection information and make sure that the database server is running. Any ideas Regards Phil Lee Hi, experienced the same problem with T ...Show All
Visual C# import file from a remote machine to local machine
Can we import a csv file from a remote machine to our local machine and after import delete the file from the remote machine in C# Kiran Hi Yes, you have to copy the csv file to your local machine and when you finished then delete the file. If I may ask, is the network drive mapped to the local machine of the remote machine if the above answer is true this snippet can be used ...Show All
Visual Studio 2008 (Pre-release) browser app questions
I have a few questions about browser apps. I guess you can't use NavigationWindow in browser applications as this causes runtime failures, can you advise on the best way of hiding the browser UI Also a ny reason why the following. < Style x:Key = " MouseEnter " TargetType = " {x:Type Image} " > < Style.Triggers > < Trigger Property = " IsMouseOver " Value = " True " > < Setter Property = " Image.BitmapEffect " > < Setter.Value > < OuterGlowBitmapEffect GlowColor ...Show All
Windows Forms Property Grid + CustomTypeConverter Question
I have a custom type converter that validates data entry on the ConvertTo and throws an error if it can't convert. I figured this would be just fine to get the property grid to display the error with it's standard dialog box with the error. But it doesn't display the error, it just continues. And yet if I pass the value I can't handle to the  ...Show All
Visual Studio Team System Workspaces are broken
I created a team project, created a distributed app in that project and checked it in. I then created another team project, created a native C++ app in that project and checked it in. Doing the above broke Team Build since both projects were associated with a single source control workspace. So I created a second workspace for the second project, and created a mapping in that workspace between the source control branch and working folder for that project. Team build is now happy, but the project itself is broken. Opening the source control explorer for the second project shows no mapping for any of the files, nor can I find any ...Show All
SQL Server Sql Express Advanced feaures
I am wondering an official answer on if Sql Express supports users creating their own reports and if it supports Integration Services or Analysis Services. Express Advanced Services includes a special version of Reporting Services, Integration Services and Analysis Services are not included, and the current plan is that they will not. ...Show All
Visual Studio Express Editions What does this warning message mean?
When I build a project, the system present me a warning message: Load of property 'RootNamespace' failed. The string for the root namespace must be a valid identifier. But my program runs well. Anybody can tell me what should I do to avoid this warning message Thanks in advance! Hi, Check if your namespace contains a period ".". You get this error when there are invalid characters in your namespace. Regards, Thayil ...Show All
Windows Forms bug? or am i doing something wrong
im trying to create a FolderBrowserDialog this is the code im using. FolderBrowserDialog *fbd = new FolderBrowserDialog; fbd->ShowNewFolderButton = false; fbd->RootFolder = Environment::SpecialFolder::DesktopDirectory; fbd->Description = S"Please choose the directory containing the the files."; fbd->ShowDialog(); now i get the dialog but all i can see is the description and a few&nbs ...Show All
Visual C++ Cannot change build configuration in 2005 release candidate
I have recently downloaded and installed the VS 2005 release candidate, and am trying to build a multi-project solution upgraded (with no problems) from VS 2003. When I use Build/Batch Build I can get both release and debug builds. However, when I try to compile individual files or to build either the entire solution or individual projects, it always does a debug build, even though I have supposedly changed the configuration to "Release" and it says "Release" for the solution configuration in the toolbar. I have tried every way I know how to change the configuration but nothing works. Does anyone know what might be going on ...Show All
