Daikoku's Q&A profile
Visual Studio Cancelling the report thread throws "Stack Empty" Exception for LocalReport
Hello all, I am getting the "stack empty" exception when I follow the following scenario: 1) Run the report by opening the Windows Forms dialog box and assigning the report criteria 2) Close the dialog box while the report is running and has not yet return a value 3) Re-Open the dialog box and try to run the report with the same criteria. I am getting the following exception: at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) at System.Collections.Generic.Stack`1.Peek() at Microsoft.Reporting.WinForms.ReportHierarchy.Peek() at Microsoft.Reporting.WinForms.ReportViewer.get_CurrentReport() at Microsoft.Reporting.WinForms.ReportViewer.get_LocalReport() This exception happens in SetReportParams ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Distributing XNA games?
Forgive me if this is covered in the FAQ or documentation. When I have finished my XNA game I want to put it on my website as an installer so people can download and play it on Windows XP. What will users have to add to their plain XP setup to play my game Just the .NET 2.0 framework Jim There is no redistributable yet (Any person who plays your game will need the full install just as you did). Please also make sure to read the EULA to see what you are allowed to do as far as redistributing games using the beta. ...Show All
Visual Studio Express Editions how can I copy files before the windows(XP) startup?
Hi, I want to program in VB2005 express a button that force the user to startup the computer and after the computer restart before the windows will startup I want to copy(overwrite) some files. I tried to insert to the autoexec.bat (that was empty) but it didn't work . any ideas how to do this Best Regaeds, Yaniv Pinhas I'm guessing that in VB2005 it can't be done.... If someone know where can I find solution for that or of another forum to ask there that can help me I will happy to try... Best Regards, Yaniv Pinhas ...Show All
Windows Forms TabControl problem
I have a form with a tabcontrol(with 2 tabpages) and I add a new TabControl at runtime using this->Controls->Add(gcnew TabControl()); Its been created at top left corner of windows and not visible fully..how to control its location/size etc how to access it Thanx in advance Thanx for ur reply. In your code.. TabControl myTabControl = nw TabControl(); myTabControl.Size = new Size(100, 100); this.Controls.Add(myTabControl); u have declared and instantiated tabcontrol "nw"..but in my case I dont know how many tabcontrols(>20) and their names I create at runtime,so I cant declare/instantiate them ..Hope you understand my problem ...Show All
.NET Development Better way of removing commas
Here is the situation, using C# and VS2005, one has a string that contains a number. Unfortunatley the originator of the string is ouputing commas within the string such as "1,234,567.89" What is the best way to strip commas from a string Below is a method I have come up with that seems like it is overkill... Can it be replaced with an easier, meaning less code on my side, way of doing it advTHANKSance I am not sure if I am missing something here but won't a Double.Parse( "1,234,567.89") return a double value w/o the commas ...Show All
.NET Development unable to load dll using PInvoke
Hi, I am having a problem trying to load a dll. I have an external peice of hardware called the MTC Express. It comes with a API in dll format. Im using PInvoke to try to call function in the dll from my c# application. My code looks like this. [ DllImport ( "C:\\ttxmtc.dll" , EntryPoint = "MTC_GetAPIVersion" )] public static extern bool MTC_GetAPIVersion( char [] buf); public static void Main() { char [] buffer = new char [128]; bool b = MTC_GetAPIVersion(buffer); } When I call GetAPIVersion, I get the error Unable to load DLL 'C:\ttxmtc.dll': A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A) I've r ...Show All
.NET Development use of filesystemwatcher along with backgroundworker
hi all, I m creating an application that continuously monitors the file sytem using FileSystemWatcher in the background using the BackGroundWorker class, but i m not getting the event fired when the filename is renamed, plz any1 can help me inthis how to implement it...... i dnt knw anything abt using both 2gether. plz help needed. thanx in advance Why do you need to do it with Background worker It doesnot halt your GUI if you use it from the main Thread then why BackgoundWorker is needed Try to think and change your logic accrordingly. ;) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Pixel Shader 1.1 not available
I'm using Intel D845GVSR main board and it has 64mb VGA and 512mb of RAM but my main board does not support Pixel Shader 1.1 or greater, I want to do game programming but this problem does not allow me to do so. Please give me some suggestion to avoid this problem without purchasing any new Hardware. I'll very thankful to you, Farhan This page will help you ...Show All
Visual Studio 2008 (Pre-release) Bizarre bahavior concerning identity tracking of entity objects versus query
I am seeing some behavior that looks odd. It has to do with the identity tracking of entity objects versus querying the same object from the database. What I have found is that if I perform a DLINQ query, an entity's membership in the results set is determined by querying the actual database, but if that entity is already in the DataContext cache, the cached object is returned in the results set. This can be odd because the state of that entity in the database may be inconsistent with the state of the entity in the cache. As an example, I will query a specific customer, LONEP from Northwind. LONEP's region is OR. I can then change his country to United States in the entity object. It is USA in the database. Then, i will query all ...Show All
Visual C# error with checkedlistbox
Hi i put this code in event handler itemcheck for checkedlistbox but when execute there is error : An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll how can execute this code without error thanks if ( Control .ModifierKeys != Keys .Control) { return ; } bool shouldBeChecked; //Determine the box's current state and use to set variable to define desired state if (e.CurrentValue == CheckState .Checked) { shouldBeChecked = true ; } else { shouldBeChecked = false ; } //Prevent check change to current item from happening e.NewValue = e.CurrentValue; //Itterate through each item's index and set each item to the des ...Show All
Visual Studio Team System TF26000: Could not connect to the Team Foundation Server (lack of database view WorkItemWordsContains)
Defining work item query I can't use filter condition on "Description contains 'text'". When I add such filter condition I get the error "TF26000: Could not connect to the Team Foundation Server. Check that you have a network connection and that your Team Foundation server is available." After enabling tracing I see in trace: -------------- BEGIN OF TRACE 00000768 15796.24834866 [296] [WI] [Error, 296, 28, 15:30:18.890] SqlEx: id-208 msg-Invalid object name 'dbo.WorkItemWordsContains'.. 00000769 15796.24975111 [296] [WI] [Error, 296, 28, 15:30:18.890] SvrEx: Microsoft.TeamFoundation.WorkItemTracking.Server.ValidationException: Invalid object name 'dbo.WorkItemWordsCont ...Show All
.NET Development .NET Uri class - problem with built in unescaping.
I am having a rather serious problem when trying to create a URI which contains escaped backslash characters. During construction, they are un-escaped and converted to forward slashes. For my application, it is necessary that they remain in their escaped form. The interesting part is that the Uri class only messes with the 'slash' characters, it properly leaves my other characters escaped. Example: literal is : http://192.168.127.33:54845/C:\MJPEG A.jpg It is necessary in my application to send the relative path literally. To accomplish this, I pass in the following escaped sequence to the Uri constructor: uri = new Uri(" http://192.168.127.33:54845/C%3A%5CMJPEG%20A.jpg "); note: %3A = ":" %5C = "\" %20 = " " Howeve ...Show All
Visual Studio Team System Deploy w/o Compiling
Okay, After a build and deployment to our assembly environment the build is tested. If it passes the tests in the Assembly env, it is moved up the System test1 env for more testing; from there it would go to System test2 and end-to-end testing ... Production. With each move to a new env I am basically doing a redeployment of the build to a the new env. This is a manual process b/c I cannot rebuild. Is there a way through MSBuild or some other tool to automate this redeployment I'll tell what would be ideal, to have a team build type for each redeployment. Where I would set a couple properties via the cmd-line or rsp file to tell it what build to redeploy. Thanks a million, BJHop Have a look here ht ...Show All
Visual Studio Express Editions if statement
Hi, Can you please let me know what is wrong with the following if statement I believe the following values should make the statement to show the messagebox. Do you agree Thanks intPosHomeUS= -1 intPosHostUS= 7 intPosHomeUK= 7 intPosHostUK= -1 if (!(intPosHomeUS > 0 && intPosHomeUK > 0) || (intPosHomeUK > 0 && intPosHostUS > 0)) { //show messagebox... } else { //print report... } Yeah. It looks like a typo to me. I'm not a compiler, but I'd say "intPosHostUK is assigned a value, but never used" Double check your expression and let us know... ...Show All
.NET Development Problem in Master/Detail Update
Hi Guys i am new to vb.net and i am using visual studio 2003. I have created a master detail relationship between two tables. My problem is i am not able to update the changes. I am pasting the code please help me. Imports System.Data Imports System.Data.SqlClient Imports System.Configuration Public Class AsnEdit Inherits System.Windows.Forms.Form Dim cn As New SqlConnection(ConfigurationSettings.AppSettings("constring")) 'OleDbConnection i Dim cmd As New SqlCommand("Select * from asnhdr_sql", cn) Dim da As New SqlDataAdapter(cmd) Dim ds As New DataSet Private Sub AsnEdit_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) ...Show All
