Sajjad Akhter's Q&A profile
Visual C# MDI Child resizing problem
Hi, I have an MDI application with the background image. This image used to flicker a lot on activities like tab change or tab out from a control etc. So the solution proposed was adding an MDI child and setting its background image rather than using MDI parent for the same. The code for this looks something like this : dummyChildForm = new ChildForm (); dummyChildForm.Tag = "DUMMY" ; dummyChildForm.GotFocus += new EventHandler (dummyChildForm_GotFocus); dummyChildForm.FormBorderStyle = FormBorderStyle .None; dummyChildForm.Icon = null ; dummyChildForm.BackgroundImage = //IMAGE dummyChildForm.BackgroundImageLayout = ImageLayout .Stretch; dummyChildForm.MdiParent = this ; dummyChild ...Show All
Visual Studio Team System Merge doesn't work reliably + Suggestions for making Branching and Merging easier to use
For me the merge tool does not work reliably. Trying to merge from an integration branch to main-line I cannot select "all changes from left/right" it is always unhighlighted. Once when trying to merge main line changes into a different integration branch, one file would select properly in the merge tool, but the other did not allow me to select "all changes from left/right" because it was unhighlighted again. Do I need to get SP1 beta to fix these problems Clearcase introduced a concept of an integration branch, where a developer does his work in an integration branch and then merges it back into the development line, when he is done with his development effort; I am guessing this not a reco ...Show All
SQL Server Finding dependency of Objects in SQL Server 2000
Hello, I would like to know , how can we find the objects dependency in SQL Server. e.g If there is a Stored Procedure (sp_GetShowEmp) , I need to find On which tables,views,Stored Procedures,Functions is dependent. And Name of the other objects which are dependent on the Stored Procedure (sp_GetShowEmp). Thanks Sidheshwar ...Show All
Windows Forms !!!HELP!!! Is ClickOnce useless? Publishing a Clickonce application after certificate renewal.
I recently renewed my certificate through thawte and found out after signing our clickonce application that clickonce does not play well with the renewed certificate. The problem seems to be that during the process of renewal, thawte and apparently others require a new private key to be generated for the renewed certificate. So it seems there is a critical flaw in the ClickOnce architecture if it requires your code to be signed but can't handle the industry standard of renewed certificates. The only other option is to be your own certification authority but that requires distributing your CA certificate before clients install your application. If we have to have our clients uninstall our software and reinstall it because of this, then ...Show All
Game Technologies: DirectX, XNA, XACT, etc. mesh in xna
hello, i'm making a 3d game, i have made a mesh with 3d studio max 9 and i have used the biped tool for the mesh animation, now i need to put the mesh in my game, i'm using de xna framework, i have tried to export the .3ds file to .x file format, but the .x file format result in a big square and nothing else this only happend with the animated mesh because i have exported to .x file format the static meshes and these are perfect, somebody can tell me what kind of format's models are supported in the xna framework or how to export the animation of .3ds to .x file thank you in advance. p.s: i have exported the .3ds file using calgari gamespace 1.5 and 3d object converter, the two of those show the same thing. ...Show All
Visual Studio Express Editions Putting a byte in to a text box
Hi, Please can someone paste some code for me, I am trying to put a byte in to a text box but have no iead how. I'm pulling my hair out with VB 2005 express and have no idea how to do anything. Thanks ElliotHC The ReadLine method you are using is used to read a line. It does not return before a specified character is received and therefore cannot be used for reading a single byte. The default character it waits for is LineFeed, but it can be changed with Com1.NewLine = "CharacterYouSelect" where Com1 is the name of your serial port. If you only want to read a byte, use the ReadByte method instead and convert the byte to a string by means of Chr(ReceivedByte) as specified before in ...Show All
Smart Device Development bubble notification
hi, i am working with pocket pc 2003 right now and i use MFC to develop it. i wonder how can i handle the return value from bubble notification i got some information in http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnppcgen/html/ppc_fications.asp but i still can't understand how to handle the return value ( which is on part 2 of this article ). Any sample code about this thing Thank you very much. When you call SHNotificationAdd the call is asynchronous and the return value indicates if the notification was successfully added. To receive return values from the notification bubble itself there are several ways. 1. Most bubbles have buttons, as in the example: < ...Show All
Visual Studio Team System LOC reporting
I am working with the TFS cube and trying to get meaningful data out of the LOC counters. (add / modify / delete lines of code). However, these numbers seem skewed because they count automated code generation. Such as vbproj files and wsdl files that are auto generated by VS. Also our build types in TFS are counted as line of code. Is there any way to remove these LOC from a report Thanks for your help, -Nate Thanks for your help, That worked great, next question. How would you go about finding the LOC for one branch within a project Thanks again, -Nate ...Show All
Visual Studio Express Editions Saving Data
Hello, I have a form and I can use the data binding tool with my access DB with no problems but I cannot figure out how i save things manually, I want to save specific data to specific columns in a table, could somone point me in the right direction or post some kind of example Thanks! heres what i have so far "which doesnt work" Try Me .Validate() Me .ContractsBindingSource.EndEdit() TextBoxVat.Text = Me .InvoiceDetailsTableTableAdapter.Update( Me .db1DataSet.InvoiceDetailsTable.Address1Column) MsgBox( "update successful!" ) Catch ex As Exception MsgBox( "update failed, the data may already exist please check and try again." ) End Try ...Show All
Visual C# try-catch
Is there any way with a try-catch that if the try fails that I retry it Basically I have an app that downloads text files, and then processes them. However, at my location we lose internet connectivity on a fairly common basis, and I don't want the app to try to process half downloaded files. The downloading sequence is in a class by itself, so I just basically want to do the following: try { download files } catch { try again } I haven't found any way to do it so far, so any help would be appreciated. Thanks, Russ the example shows you how :-P If you could have one method such as "DoTrySomething(bool keepTrying)" then in here have your try catch block, it will keep calling itself un ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Ball rolling + Collision in XNA (Sphere 2 Polygon I guess)
hi all, I’m writing a little demo this days in XNA. I have a tiled landscape ( just 40x40 3d tiles) and I want my ball to roll and move across the landscape. The problem is the same that Latest metroid games (Prime and echoes) that appeared in Game cube when Samus morphed into a ball and was rolling around. I guess I should get the tiles that are occupied by the ball and then make a sphere polygon test or somehitng like this. I would like to apply physics to the ball too. I’m in no way experienced in this and I would like to know if there exist any good XNA library or else to handle physics/collisions for me. Thanks in advance, HexDump. I havn't done ODE on XNA yet, so I am th ...Show All
SQL Server Installing SQL Server Express
I am having a problem installing SQL Server Express 2005 from the command line in that it gets part way through and then stops - no message - just terminates. After much rooting around in log files and running a normal install I'm pretty sure that it is stopping because of a warning regarding "Minimum Hardware Requirements". The laptop I'm trying to install it on is a Samsung X05, Centrino 1.4, 1gb RAM and 60gb free disk space. I've tried it on another laptop (Sony with a higher spec.) and get exactly the same problem. As far as I can see the hardware spec is well above the recommended minumum so I'm at a loss as to what to try next to overcome the problem. If anyone has any suggestions then I'd be very grateful. ...Show All
Visual Studio 2008 (Pre-release) Setting up tracing in wpf application
Using the project type "Windows Application (WPF)" in VS 2005 I cannot make use of the app.config to setup my tracing like the following example, since it (the app.config file) is just not created anymore. app.config: ... <system.diagnostics> <switches> <!-- definitions... --> </switches> <trace> <listeners> <!-- definitions... --> </listeners> </trace> </system.diagnostics> ... What would be the best way to setup tracing in a similar manner in a WPF application. Suggestions greatly appreciated. Just add an App.Config file Right Click on Project, Add->New Item->Application Configuration File Regards Neil ...Show All
Visual Studio Express Editions VB File.Encrypt method
I am trying to encrypt a text file in VB 2005 Express and found a couple of pieces of code that demonstrate it. I have used the following Imports: Imports System Imports System.IO Imports System.Security.AccessControl I am calling the method with: File.Encrypt(FileName) where Filename has been DIMmed with "D:\EncTest.txt" I get an IO exception stating that what I am trying to do is not supported. Going through the help system, I was told that this means that my file system is not NTFS. Looking at the properties of my D: drive, it says it is NTFS. The text file is definitely there, named correctly and not in use by any other application. Is this something wrong with the way in which the path is express ...Show All
Visual C# Cannot implicitly convert type 'string' to 'bool'
private void DataGrid1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { if (e.Item.ItemType==ListItemType.Item || e.Item.ItemType==ListItemType.AlternatingItem || e.Item.ItemType== ListItemType.EditItem || e.Item.ItemType==ListItemType.SelectedItem) { CheckBox cbBI=e.Item.FindControl( "Price" ); cbBI.Checked=e.Item.Cells[18].Text.ToString(); } } you need to change this to lines CheckBox cbBI=e.Item.FindControl( "Price" ); cbBI.Checked=e.Item.Cells[18].Text.ToString(); to CheckBox cbBI=( CheckBox )e.Item.FindControl( "Price" ); //this cause error because checked property is bool type and ToString() return string //the oth ...Show All
