trev73's Q&A profile
Smart Device Development Error when closing threaded modal dialog.
Hi, I am getting ThreadAbortException when my ShowDialog completes its work. I have created a thread and called DisplayInformation, which creates form instance and call its ShowDialog (means form displayed as Modal). In the form I have a button by clicking on it, I set the DialogResult to OK. Whenever I press that button the thread terminated abnbormally with following exception. This behavior is for CF2.0 and PocketPC 2003 SE emulator. Sometimes it work on Device. ERROR: ThreadAbortException at Microsoft.AGL.Forms.WL.SetVis() at System.Windows.Forms.Control.set_Visible() at System.Windows.Forms.Form.ShowDialog() at UtilitiesThreadedDialog.DisplayInformation() at Utilities.ShowInfo() at WorkItem.doWork() at System.Threading. ...Show All
.NET Development Gettting Object values from ArrayList
I have an object, and a arraylist...I bind the arraylist[0] to my comboBox ((Tracking.BusinessObjects.StopOrderLegDetail) this ._Order.Legs[0]).StopID = ( int ) this .cboStartingPoint.SelectedValue; then i bind my arraylist to another one in a differenct class like this.Order.Legs = obj.Arraylist; obj.ArrayList = this.Order.Legs Now from another class i want to the the stop ID out of the Arraylist which i want it to return the value...how do i do such a thing do i need to do it like so...and if so how do i know its going to the the [0] element and not keep repeating the loop. for(int x = 0; x < ArrayList.Count; x++) if(ArrayList[x].ToString() == "myobjectType") { ((myobjectTyoe)ArrayList[x]).StopID ...Show All
Windows Forms Reload data in DataTable
Lets say I have a function that receives two parameters: function MyFunction (dt as datatable, reload as boolean) as boolean end function Is there a way to reload (requery from database) data in dt, without knowing what dataadapter (SelectCommand0 was used to fill data in dt we can use some thing else but dataadapter:) like: MyFunction (dt as datatable, reload as boolean) { new a datareader as Reader; if (reload==need Reload) { dt.remove all rows(); while (Reader.read()) { Add Row to your table } } else { return ;} } ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Model Exporting From Maya (.fbx)
I have a question and concern regarding the .fbx model exporting from Maya. Problem: Whenever I load a model into my game that has been exported using the latest .fbx exporter plugin from Maya the model is arranged such that some of the pieces of the model are lined up along its x axis. I did some research on the .fbx file format and found out that while it was designed to be an open document 3D model format, it has been grossly revised by just about all modeling programs which have edited it to suit. Which is why you can't export a model in Maya and then import it into Max and expect it to be the same. My question is this, being that the .fbx file format is flaky at best; what make and version of the .fbx exporter/importer is XNA designed ...Show All
.NET Development Why choose SHA512 over SHA1
Hi, I need to create some hash values on some large files (say > 100MB) to make sure contents has not been changed. A little test showed me that creating a hash using SHA512 takes approx. 6 times longer that using SHA1. I assume that SHA512 is more secure that SHA1 :-) - but will this also imply that SHA512 will "discover" changes in files that SHA1 will not Kr. Soren If you only need the hash function to detect that a file has changed (the common case you want to check that a file was downloaded corectly from somewhere) then the security of the used hash function is not relevant. You can use MD5 as well for this type of task. The security of the has function comes in to pla ...Show All
Visual Studio Express Editions Error found during comfile~ please help
Hi, everyone I am just trying to run some simple example file (from the board) well...the code seems work fine....but..when i do the complie Firstly, i did build the solution and the window said something like below: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Build startrd: project:wincai03.............. Compiling.... WINCAI03.C can not open include file:'windows.h': No such file or directory =====Build:0 succeeded, 1 failed, 0 up -to -date.0 skipped=== ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ So i was wondering what is about this windows.h file..... Can anyone help me please Thanks The express edition doesn't contain the PSDK headers. windows.h is part of the PSDK headers. Take a look at http://msdn.microso ...Show All
Visual Basic HScrollBar not accepting Maximum value
when running this code, the hscrollbar will accept any value. however, once the form is finally displayed, the hscrollbar will change it's maximum value to either 0, 22, 54, or 246. in binary "0", "10110", "110110", or "11110110". i have stepped through the code with the debugger and have verified that i am specifically setting it to other numbers (i.e. 7, 31, 255, etc.). i have also specifically set hbar.maximxum = 7 for debug purposes but when the form becomes visible the hscrollbar acts as if i have set the maximum to 0. is this a known bug i have searched MSDN to no avail... For Each symbol In symbolList 'some code here hBar = New System.Windows.Forms.TrackBar() hBar.Mini ...Show All
SQL Server Error when installing
Iv'e searched other forums and websites for this, but I cant solve it. When I try to install SQL 2000 I get an error about Low Registry Quota. Any idea on how to solve this Doing a quick search, I found this suggestion which helped a few people fix this problem. Can you check if this might be your problem Thanks, Sam <snip> I have never ever had the following error message before during the installation of SQL Server Developer Edition 2000 on a client running Windows XP Pro SP2 using an account with administrator privileges: "An error occurred while creating one or more registry entries. Please see C:\Windows\sqlstp.log for details. The problem could be caused by a low registry quota c ...Show All
Visual Studio Team System Create duplicate folder with exact history and changesets
We have a folder called "Source" in VSTF and we need to create a duplicate of this folder called "SourceTemp" with same history and other details. How do we create this Is this possible Thanks http://msdn2.microsoft.com/en-us/library/aa730834(vs.80).aspx Pay close attention to the section about Branching. A branch is a "cheap" copy of a folder. "Cheap" means it shares all of the history and such, but it doesn't actually double the space requirements. ...Show All
Visual Basic Usercontrol outside form boundaries! Urgent Please
Hi all, I managed to create my own usercontrol Calendar. Everythings fine. After I finish it I am planing to share it with the comminity but before I do that I have to solve one critical issue. As you can see Microsoft DateTimePicker control can be shown outside the form boundaries. It does act like an another form but I am sure it is not. it is controls itself. But my control stuck with the Form boundaries. I dont want to use another form to show my usercontrol outside parent form. I am sure there is a solution for that. I saw a project for Visual Basic 6.0 once but I cant find it now. I mean if VB 6 can do it VB 2005 should do it blindfolded. isn't it I am using VB 2005 and waiting for your urgent helps. Thank you!!! ...Show All
Microsoft ISV Community Center Forums Dynamic filtering of picklist values CRM 3.0
Hi, I would like to create dynamic filtering of picklist values in CRM 3.0. But I have a problem for to delete dynamically my picklist option.it is really random. // It's here my problem var count = oSepcialisation.Options.length; for ( var i=0; i < count; i++) { try { oSepcialisation.DeleteOption(parseInt(i)); // sometime this function deletes option, sometime doesn't. } catch (ex){ alert(ex);} } ------------------------------------------------------------------------------------------------------------------------- For to reproduce the same condition, you must create 3 attributs of type picklist - new_dev_competency (parent picklist) - new_dev_specialisation (child picklist) - new_dev_orgi ...Show All
Visual C++ .pdb differs from previous link; relink or rebuild error
I got ".pdb differs from previous link; relink or rebuild" error even if i am building the application first time in DEBUG build type. What could be the problem and how to resolve it. ...Show All
Windows Forms CollectionEditor questions Names in left pane
Hello all, CustomItem is a class which inherits Component. I then created a strongly typed CustomItemCollection which inherits CollectionBase. Next, I wrote a custom editor which inherits from CollectionEditor. It works well except that I can't figure out how to access the (Name) property in the PropertyGrid. I would like to change the names in the left pane away from Class0, Class1, Class2, etc. based on one of the properties in my CustomItem class. Thanks in advance for any ideas and/or suggestions. Hello mangelp, I believe GetDisplayText is VS2005, we are still using VS2003. I can't use the default because I need to change it after one of my properties has been set. Thanks for the response, ...Show All
Visual Studio 2008 (Pre-release) Looking for lab or sample on WCF security
I am new to WCF and want to learn about setting up security between server and client. I have read Keith Brown's article in the August MSDN magazine, which explains things clearly but I need more sample code, showing particularly how to configure endpoints, bindings and behaviors to set up message-based and transport-based security via the app.config file. I have come across a couple of blog entries with sample code, but they are from earlier times and the APIs have changed sufficiently that they don't build any more. I am now using RC1, the latest. (Trying to figure this out from just reading the docs is HARD!) Craig, I presume you mean to chack this setting on the server I looked all over th ...Show All
SQL Server How to store an MS Word doc in a sql 2005 table
Hello, I want to store the contents of an MS Word document (or a brief Word extract) in a database field. This document could contain carriage returns, boldface, etc. I have tried storing the Word doc in fields of type nchar, text, and sql_variant but they do not keep the Word formatting. I found that the "Extended Properties" attribute of a field seems to retain these properties. (Though if I recall right, Extended Properties has a length limitation and is a pain in the #*&_*^! to access) What is the "right" way to do what I'm trying Keep in mind that we may want to view this document under either "Query Analyzer" or print a hardcopy version. And we'd like both to be intelligible! TIA, ...Show All
