shekhar saran's Q&A profile
.NET Development ADO Code not updating issue -- Help!!!
Hello, This is my first post -- I can not seem to write back my changes to the database.... if anyone sees anything out wack, please let me know. ' Not sure about the table mapping statment - or AcceptChanges() vers :: GetChanges(DataRowState.Modified) thx. Dave Gilden MCSD -- FT. Worth Tx ' this part of a ASP .Net 1.1 web app Private Sub btnUpdate_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpdate.Click Dim SelectedServiceOrder As String ' assign service order SO Type number from selected value posted back from the drop down menu SelectedServiceOrder = Request("ddlSOTypeDesc") Dim AllowedServices As New ArrayList(7) Dim rowC ...Show All
.NET Development Remoting sink configuration problems
OK, I have a Remoting server/client program and I am porting the server side of the app to be a Windows service. Unfortunately, Visual Studio stubbornly refuses to ensure that the Remoting .config file ends up where it needs to be and the server fails. I need to move my Remoting configuration code back inside my program so that I am not dependent upon an external file but have been unable to get my sinks properly configured in code. Unfortunately, Rammer's Advanced .NET Remoting seems to be obsessed with using the .config files and I have been unable to find any good examples of how to hook up multiple channels in code. The commented line in my code below is where the error is coming from: Error 16 Cannot implicitly convert type 'Sys ...Show All
Visual Studio Express Editions Can A button have a click event of a value to deduct from Text Box
I have a text box that will have a figure entered into it at the beginning of the week. What I want to do is have a button that when clicked will deduct 1 from the total showing in the text box each time it is clicked. Is this possible, and if so could someone help me out with the click event please. Thanks heaps, Diane Thanks for your help with this, but I seem to be having a problem. The show method is causing my "Totals Required" screen to appear when I click my "subtract 1 button" and it is changing the totals on this screen but when I access this screen from my main form the totals have not changed. Here is a brief description of what I am trying to do. I have a total number of ...Show All
.NET Development reflection - CustomAttributeBuilder
Hi, I am looking for a way to create a CustomAttributeBuilder of the same type and with the same values as a CustomAttribute that has been accessed via reflection (i.e. someMember.GetCustomAttributes()). I can't find a way of getting all the info i need to do this. For example, if i use the constructor: CustomAttributeBuilder (ConstructorInfo, Object[], PropertyInfo[], Object[]) I can populate the arrays for the last two arguments as follows: Type attributeType = customAttribute.GetType(); List<PropertyInfo> newProperties = new List<PropertyInfo>(); List<object> newPropertyValues = new List<object>(); foreach (PropertyInfo p in attributeType.GetProperties()) { if (p.CanWrite) { newProperties.Add(p); newPr ...Show All
Visual Studio Express Editions dirlist directory change
dumb question: i cant get my dirlist to change the dir it shows, anyone know how cheers thats it, i dont have any code a dirlist is a lost box designed for file listing, so it can indent items, and give them file and folder icons. the get directory thing u sed should work. how about getting my dirlist box to display the contents of f:/ on form load using wot you said.. Thanx,. James ...Show All
SQL Server Surface Area Configuration Error Message
Hi Dear I have been trying to add SQL database to my web application and have to configure the SQL to allow remote accee. I would like to start the Database Engine Service when I click on start button to start the service it dissplay following message: An error occurred while performing this operation Severa; time I restart the computer still, When I try it is same problem. thank for yout help. ...Show All
Visual Studio 2008 (Pre-release) ExceptionHandling - best practices
Hi, I was wondering if there are already any exception handling best practices or patterns for WCF Assuming, you are developing a real world enterprise application, do you have any patterns for handling all the exceptions like they occur on broken connections, etc. Thanks, Tom Thanks for your replies. However, I was looking more for advice for situations like: With NetTcpBinding the client makes a call to the server but the server closed the port or the connection broke. Now, do I need to wrap every call in a try/catch block and give them to an exception handler or can I somewhere in WCF itself specify that it should try to reestablish the connection on a broken connection exception. So, can I tell WCF te ...Show All
Windows Forms DataGridView maxes out at 140 rows
Hi, My application has a DataGridView which I have extended. The extended DataGridView I found out only allows a maximum of 140 rows. I was looking for which property to modify to allow the DataGridView to grow without restrictions. Thanks in advance. Dwight there will always be a restriction at some point. Maybe you should consider doing some filter on the query. However at 140 records it should not max out. are you able to show us the code on how you are adding items to the datagridview ...Show All
Visual Studio Team System Changing DNS Name after TFS install
We have installed the RTM version of TFS in a dual server mode on our domain. Now Our Network group is trying to change the DNS name so that we can have one URL for internal and external users who will be accessing the Team Foundation Server. After making the change I can connect to the App Server, but there is an issue with the Documents and Reports. Both have Red X's. When I right click on properties of the server, I can see the new URL name. But when I click on the Project Document folder the properties windows shows the ComputerName in the URL not the new DNS URL. Same goes for the Reports URL. What needs to be updated to have the new DNS name URL used on the AppServer Thanks, John Ames You need to change the regi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Model Collision Detection
Say I had two models loaded from file, a building and a character. I want the character to be able to walk around the building (up ramps etc.) and of course not be able to walk through the walls. I notice that all meshes loaded from file having a Bounding Sphere property which can be used for collision detection, however, the character will never be able to get near the building if I use that approach. Is there a way to create complex collision shapes based on the mesh data Or do I have to export the building as many seperate meshes I think the vertex buffer can be used for this as well, although, I can't seem to find a way to read the vertex buffer from meshes loaded from file. Any suggestions on how to accomplish this would be great. ...Show All
Windows Forms Hyperlink as a treenode?
Is it possible to have a tree sub-node as a hyperlink, or at least to make the treenode behave like one (change the cursor to a hand etc). Try using the MouseMove event. You can find out what node it is pointing at with the GetNodeAt() method, change the cursor accordingly. A simple example that uses the Hand cursor at nested nodes: Private Sub TreeView1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TreeView1.MouseMove Dim node As TreeNode = TreeView1.GetNodeAt(e.Location) If node IsNot Nothing AndAlso node.Level > 0 Then TreeView1.Cursor = Cursors.Hand Else TreeView1.Cursor = Cursors.Default End If End Sub ...Show All
Visual C# Some help please
I have figured out how to open webpages, but, if on the button click you open a webpage, say www.google.com. But, if you have a textbot on the program, and on the button click you want www.google.com/i-typed-this-in-the-textbot, how would you go about coding that Thanks Hello your post is a bit ambiguous to me. If you want to display the URL in a textbox: MyTextBox.Text = @"http://www.google.com"; If you want to launch the default browser with the URL from the textbox Process.Start(MyTextBox.Text);//Provided that the text is a valid URL If I missed something, please clarify it. Regards ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Missile CommandeEr Game (including Source) - XNA 1.0 release
First XNA game...done! It's an old school missile commander clone (only its CommandeEr, like pirates...ARRRR!!!). I spent extra time to maintain the original "cutting edge" graphics to make it a true classic. Check it out... (I just added the screenshots, game and source code to my website) Click here for the game Improvements to come: - MIRV missiles - Extra lives - High scores - suggestions Very nice. This is the first XNA game that was really fun for me to play (Not that I've tried many). I really enjoyed the classic feel. Definitely worth the download. As for suggestions go, maybe you should display the level/wave no. the player is current ...Show All
SQL Server Use of Memory Drive?
Has anyone here ever used a memory drive in conjunction with SQL Server If so, how and did it help performance Dave Hi, if your application used more temporary tables/ variable then setting tempdb for some more size would help, and about paging file (if it is spread accross the partitions / database files ) i am not sure if it help boosting performance. ...Show All
Windows Forms Deploying Files from Multiple projects
I have a windows forms solutions with multiple projects that are built as class libraries...and a main winforms project...the class libraries have content files that are set to copy always and marked content. When using clickonce these files are not copied to the clickonce application. How do I copy these files in the published application without having to add the files manually to the main winforms project Thanks, rhorner While we did some testing to make sure that we picked up nested dependencies and references, we don't pick up nested content files. The way references work, these files aren't picked up by the project system either. As a result, the only solution is to add the files to ...Show All
