Shaurya's Q&A profile
Windows Forms DataGridView - select last row after reload
Hi I want to be able to select the last row after the DataGridView refreshes . It auto refills when a combobox is changed, and after the refill I want it to select the last row. Anybody know how to do this it is proving much harder than it sounds. Details: The combobox is linked via a binding source to the DataGridView. This causes the DataGridView to be filtered based on the ComboBox selection, and so changing the selection changes the DataGridView contents. See "Walkthrough: Creating a Lookup Table " http://msdn2.microsoft.com/en-us/library/ms171924.aspx as an example of what I have done, although I used a DataGridView. I have tried the 3 combobox events (SelectionChangeCommitted, SelectedIndexChanged, SelectedValueChanged) ...Show All
.NET Development File Copy over unreliable network share
Author: Ting Choo Chiaw, choochiaw.ting@gmail.com Note: I am not a programmer and i am working in non-IT firm. Scenario: The network shared PC is at another network segment, interconnected with extreme busy router which drops most of the packets, making the sharing extremely unavailable. I not only not able to copy files from the share folder, i also can't view the files in the shared folder before it disconnected. The router is a cheap router, but extreme busy where lots of pc interchanged message via the router. If you are lucky enough (every early morning), you able to see the files in the shared folder and able to copy small files, but if you try to copy a file around 700MB, it takes more than 20 hours and definitely disconnected ...Show All
Visual Studio Visual Studio Debugger Need Help
When i load my system up a JIT debbugger screen appears and and i don't know what to do. I have tried to debug it but it but it does not good. The system then changes the display settings to windows classic and makes the bar at the bottom go white. Then sometimes the system crashes or stops my Internet fom working. To remove the JIT debugger dialog coming up Change the key: HKLM\Software\Microsoft\WindowsNT\AeDebug\Auto to have value 0. Sadly this will just remove VS from the picture - you still have a crashing application in your startup I would imagine. Try starting up in safe mode by pressing F8 as the machine is booting, Good luck John ...Show All
Windows Forms DataGridView Seek
Hi, Is some way that I can make a search in a datagridview not whit Loops (For, while). I remember that the datagrid in VB 6 has a Find or Seek method that does this. I don’t remember the correct syntax but it was something like this: DataGrid1.Seek = “field LIKE ‘” & textbox1.text & “%’” Datagridview has that method or is some way that i can do this Checkout this thread ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA GSE Language restrictions
I've gone through the XNA GSE FAQ and I'm not sure I understand the decision in developing XNA GSE in a manner that doesn't allow it to integrate into Visual Studio languages other than the Express editions. Sure you can run C# Express alongside Standard, Pro and Team editions of Visual Studio, but I would suspect that a great many hobbyists (to which XNA GSE is targetted) have invested in at least Standard and even Pro editions. Won't these users be giving up extremely useful IDE features and coding tools because Express editions lack these features due to the nature of them being free products I honestly fail to see the logic in all this :) - Seef Seefer wrote: Won't these users ...Show All
SQL Server Web sync and partitioned snapshot - failed from time to time. Why?
Hi! Well.. There's operable web sync with parameterized filter. But sometimes the strange errors appear. Below the list of the errors I got from ComErrorCollection property of MergeSynchronizationAgent instance: ERROR: -2147199433 SOURCE: Merge Replication Provider(Web Sync Server) TEXT: The Merge Agent was unable to start the SQL Server Agent job to generate the partitioned snapshot for this subscription. Verify that the SQL Server Agent service is running at the Distributor. ERROR: 22022 SOURCE: HOST3\MAIN TEXT: SQLServerAgent Error: Request to run job dyn_HOST3\MAIN-Customers-Main-2__20061014_14 (from User distributor_admin) refused because the job is already running from a request by User distribut ...Show All
Visual C# login
simple login will not work at www.syscpupower.com you can see the contents of the site but getting the zip file, www.syscpupower.com/files.zip please tell me what is going on, I beleive that its the web config file, but i could be wrong i am new to this c# programmig, but learning and fast. Thanks Hi, ASP.NET related questions should be asked on http://forums.asp.net/ And pls paste you problem in short on the thread. Thank you ...Show All
Windows Live Developer Forums Place VE Tiles onto sphere
just as a side project, I'm trying to place virtual earth tiles onto a sphere made in WPF. I am using the 4 largest tiles created as a single PNG. My problem is with placing the texture coordinates, the continents are all the wrong size because I don't know what parts of the tile to match with the spheres latitudes (because I don't know where the latitudes are on the tile). Anyone know to identify latitudes on the tile the equator and the ends are no brainers, but in between...no idea. 2d image http://farm1.static.flickr.com/124/329370551_124631d76b_m.jpg 3d attempt http://farm1.static.flickr.com/145/329370550_16df4d398d_m.jpg I think may come in really useful: http://www.viavirtualearth.co ...Show All
Visual Studio 2008 (Pre-release) How to encrypt WCF messages?
I have a WCF service hosted in NT service in a XP machine and the client is also a NT service running on a different machine. They communicate over the internet. What is the simplest way to encrypt the messages on client and decrypt by the service Any ideas, comments will be greatly appreciated! Hi, There are multiple way to apply confidentiallity, as well as other security related actions to WCF based applications, which are, basically, out of the solution, meaning that you don't need to implement anything and just use capabilities, provided as part of the WCF package. The best fit solution is usually, yet not always, derived by the functional requirments of your application. The follow ...Show All
Windows Forms datagridview row cell selection to TextBox?
Hi all, I'm a bit stuck with a method I'm trying to implement... I have a datagridview that displays XML data(resx), I want to select the row & display the "value" column field of that rows contents to a TextBox... then edit it there, then click an insert button to add the text to the selected row column "value" Is it possible to have each time a row selected a certain cell will be displayed to the TextBox field in realtime or is there a better method Also ... I may be typing in Japanese or French in the TextBox, so is TextBox ok to use or should I use RichTextBox & will datagridview be capable of displaying these characters once I save them to XML Thanks In Advance. Well I'm sti ...Show All
Smart Device Development Install / Update and deployment question
Hi all, i have here the following situation... - I developed an App with CF 2.0. The App has 4-5 different DLL's - The App (Version 1.0) is installed on 20 Mobile devices at a customer (with SQL Mobile). These devices have 4-5 times a day online access to the server at the customer site (via GPRS). - No i developed a Version 1.2. Two of these DLL's on the device have to be updated. But the users of these devices only come to the office 3-4 times a year because they are allways on the road (this is where sales guys have to be ;-)) Now my questions : - What do you think is the best Way to update these DLL's when the sales guys a always on the road and can't use ActiveSync for doing this Greetings Henning ...Show All
Visual Studio 2008 (Pre-release) Capture Input Char
Hello! I need to capture user input char before it'll be displayed in TextBox. But the KeyDownEventArgs contain only Key value, and i have to get its char representation. The same control in Windows.Forms had KeyCode argument in KeyDown event, that returned exactly what i need. Is there any way to capture input char Or maybe to get char from Key value Thank you. I think that what you are looking for is the PreviewTextInput routed event... This will gives you access to a TextCompositionEventArgs... which in turns tells you what is the TextInput for the event... This will allow you pre-parsing, replacement, ... The TextInput contains actual text that goes into the TextBox... Therefore, hitting dead keys or ...Show All
SQL Server SQLRUN_SQL.MSI is not valid for Service pack 1 SQL 2005 command line REINSTALL
Hello, I have recently tried to run this command line utility for SQL Server 2005 - "start /wait \sqlfoder\setup.exe /qb INSTANCENAME=myinstance REINSTALL=SQL_Engine REBUILDDATABASE=1 SAPWD=[password] SQLCOLLATION=SQL_Latin1_General_CP1_CI_AI" Unfortunately I recived an error stating the "Installation package for the product SQL Server 2005 (64bit) cannto be found. Please locate a valid SQLRUN_SQL.MSI". Which I couldn't find anywhere., so.... I created a fresh instance on my 2005 server, held back on installing SP1, and ran the command line again. This time it worked. My best guess is that the installation scripts check the version header on the MSI file during install and display a compatibilty error t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Spacewar Starter Kit
Hey , I just started using XNA Game Studio Express . When I load the Spacewar Starter Kit and press start to test the game there is only Xbox 360 functions , Is there any way I can play this using my PC keyboard or send this to my Xbox 360 . Thanks, so let me correct my first statement ...the 360 controller (wired version) works great plugged into the PC. ...Show All
.NET Development Grabbing text from website
So im familliar with stream reader and am able to use the .readtoend I was just wondering if there is anyway I could get a specific line of text to display in my paragraph. I was thinking about grabbing all of it and only showing whats between word 123 and word 12345 Is this possible The text shows up in both source and on the page. Any ideas Try this: public static string FindWebSiteText(Uri uri, string startText, string endText) { WebRequest request = WebRequest.CreateDefault(uri); using (Stream response = request.GetResponse().GetResponseStream()) { StreamReader reader = new StreamReader(response); &nbs ...Show All
