gullu's Q&A profile
Windows Forms How to focus other control after press the enter key in the last row of a DataGridVied control?
Hi, I have a program, after press the enter key in the last row of DataGridView control, i want one TextBox control get forcused in the same Form. How can i do that Everyone with advice Thanks Add a handler for your TextBox's KeyDown event. (This assumes you set the AcceptsReturn property to False). Then in your KeyDown eventhandler, have code such as: [C#] if (e.KeyCode = Keys.Enter) SendKeys.Send("{TAB}"); Add a handler for your TextBox's KeyDown event. (This assumes you set the AcceptsReturn property to False). Then in your KeyDown eventhandler, have code such as: [C#] ...Show All
.NET Development c# to x86 code
Hi Mike, how do you generated the x86 code in one of your following blog http://blogs.msdn.com/jmstall/archive/2005/09/08/il_vs_native_offset_0.aspx Thank you for your help, Visual Studio will show you the native code for jitted C# methods. (It won't however show you the IL). ICorDebug exposes the native addresses of jitted code, so any managed debugger could show that information. Vance Morrison has an excellent blog with further details and a walkthrough: http://blogs.msdn.com/vancem/archive/2006/02/20/535807.aspx ...Show All
.NET Development Codec problem
I'm going out of my mind. I have spent months trying to download Windows Movie Maker, which just a moment ago (and after donating buckets of blood, sweat and tears to the cause) I managed to do. Now it won't let me import video clips. It says I do not have the right codec. On options I have Download All Codecs Automaticaly checked. I do not understand why it is not downloading the codec I need to import video clips, or even tell me which one it is that I am missing. Please, if anyone knows how to fix this I would be most gratful if you could tell me what to do. Frankly, I am at my wit's end. This is not related to managed networking APIs. Please refer to other forums at http://www.microsoft.com/communities . Thanks ...Show All
Visual Studio 2008 (Pre-release) Help: RC1 ListView Memory Leak
I've got a memory leak problem with the ListView. I just have a long list of items that I put in a list with 2 GridViewColumns, and as I scroll up and down the list the memory goes up and up and up, until I eventually run out of memory on my machine if I do it long enough. I find it hard to believe that there's a problem like this with list view, so I'm wondering what I've done wrong. I'm running RC1 on Windows XP x64. I've done a real simple example. The code is below. You can run an XBAP version from here: http://150.101.100.238/~john/LeakyList/LeakyListXBAP.xbap In task manager, watch PresentationHost.exe Mem Usage grow as you scroll the scrollbar up and down. Press "Collect Garbage" and the Mem Usage won't go down ...Show All
.NET Development Creating Data Source in Visual C++ Express... help me..
Hi! If You can help me on that subject than look here: LINK TO MY POST Thank you for any help... for now there is 337 visits on my post and 0 replies from other users than me.... With Regards. Arczi. OK. I think that tis subject can be close. FINAL CONCLUSSION : ther is no chance to use under Visual C++ Express database created on SQL Server Express With best regards. Arczi. ...Show All
Windows Forms taking variable from Public Form1()
how can i reach initial variable from functions_ yes this option is perfect but can i do that without using button_ because i dont want to people( who use this program ) send the variable..i want to use the variable while writing program..like i need variable in form2, but the variable in form2.. and i think you didn't see my second question..it was:" and secondly i have an array like k[,] how can i learn the first and second column's length..".. and last question(i promise ) i have a form and there are a lot of labels on it..how can i delete all of them's Text.. this.yazilacak = new Label[300, 7]; //in the other function this.yazilacak = null; //is this work_ thank you ahmedilyas for your helps/advices.. ...Show All
Windows Forms C#: Search Function in Windows Form - HELP
Hi, I wanted to create a search function to search a Database and thereafter to display the search results. private void btnSearch_Click( object sender, System.EventArgs e) { DataTable datatable = new DataTable(); this .oleDbDataAdapter1.Fill(datatable); //Extract only Primary Key ("Customer ID") from Database string custID = datatable.Rows[0].ItemArray[0].ToString(); int count; bool found = false ; for ( int k = 0; k < count; k++) { if (txtSearch.Text == custID) { found = true ; // //How to copy the Search value into CustID textbox try { // Attempt to load the dataset. this .LoadDataSet(); } catch (S ...Show All
SQL Server Large SQL update - effect on SQL 2005 transactional replication
I'm a newbie to Replication and recently setup the following. Publisher and Distributor on the same SQL2005 server, then I've got 7 subscribers(SQL2000 servers) and I'm using push subscriptions. I'm replicating 5 SQl tables which don't have too many changes and these are scheduled to run every 3 hours. In a few days a large one off SQL update with add an additional 10,000 rows to one of the replicated tables. I was wondering what impact this would have on the above setup i.e are there any sort of limitations here. I'm assuming not but thought I would check. I'm thinking it will just cause additional overhead on the server, but the update is being applied when no users will be using the database. Any feedback greatly appreciated. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Strange effect when using translation
I have a strange problem when I'm trying to move one model around. When the model is in the center of the camera it look okay ( http://www.marmalad.com/milan/sample1.jpg ) but when I place it away from the center (let's say to the right) the model seems to be rotating as well ( http://www.marmalad.com/milan/sample2.jpg ). I would like to ask why is this happening Why is the model rotating when I'm just using translation Thx in advance. I solved the issue... The problem was caused by the culling mechanism I used ( graphics.GraphicsDevice.RenderState.CullMode = CullMode .CullClockwiseFace ). I should have used CounterClockwise instead. ...Show All
Visual Basic Wierd build error
I created a single form called 'StartForm' and a Dialog form called 'CountDown'. After debuging it - I added a deployment project. At my first build - I get a compile error with my original program. I deleted the deployment project, but I still get the same error. Recreating on a new project and copying my code from the old file reproduces the error. In my project properties - The only start form I can select is "CountDown'. 'StartForm' is no longer recognised is a form. The compile error is - Error 1 'StartForm' is a type in 'SchoolBells' and cannot be used as an expression. C:\Documents and Settings\Dean\My Documents\Visual Studio 2005\Projects\School Bell\School Bell\My Project\Application.Designer.vb 35 27 The error in Ap ...Show All
Windows Forms problem with signing application and deployment manifest
Hi... Using mage.exe tool, when I want to save my application manifest and sign it with my certificate, I get: Unable to save {filepath}: An internal certificate chaining error has occured. What could that be On the other hand, if I choose " Don't sign ", then I get an error (I think this is a bug), when setting the Application reference in deployment manifest: The Application Manifest is not signed - {filepath} So it would be nice to achieve both: possibility of signing the deployment with my certificate, as well as having an option of not signing it. Now I don't have either ! Is there something wrong with my certificate It's been issued by my country - Slovenia. Can you try signin ...Show All
SQL Server Hierarchal data reports
I have set up a hierarchal report, which is based on one data set using a table and grouping. I have a group header, a details, and a group footer section in the table. The details is filtered based on one of the columns, and hidden with the ability for the user to expand and collapse the row based on one of the fields in the group header. My problem is, I am trying to set up a report which gets scheduled to run weekly, and emailed out to its users, in PDF format. The PDF format will not allow the user to expand and collapse the rows. I would just send the users a link to the report, and the can expand / collapse the rows they want to see, if they didn't mind having to be connected to set up their report, and having the extra step of expor ...Show All
Visual Studio Express Editions Linking programs through the internet
So, I have an application which, basically, I want that, as it is updated by one person, the changes the same on whatever other computers it is linked to. I could pretty easily get all the information that needs to be sent to update in a short little text line. The problem for me resides in sending it to others. I don't know anything about networking with VB, or if it is even possible, but any clues would be very helpful. Thanks a ton. Matt354245, According to your description, I don't think there is an VB.NET application that can help you to update one project and link the changes to another one computer with the same updates. Here I recommand you the tools: 1. VSTS - Visual Studio Team System ...Show All
Silverlight (formerly WPF/E) What's The best way to communicate "bugs"
I've got an access violation showing up in IE when I shut my WPF/E based 'app' down. I fired up WinDbg, to capture the stack frames, etc, but without symbols, there's not much more I can do. The AV is in agCtrl.dll. I doubt this is the forum for this kind of reporting. MSFT, please let me know how I can help or what to do. Kevgor Thanks to Michael Schwarz for info - and when it's something that I can provide reasonable artifacts for - I most definitely will. But in this case the only thing I have is a process dump from IE7; with no symbol resolution ... ...Show All
.NET Development itemDataBound event fires twice
Hi . I converted a web site from 1.1 to 2.0. the datagrid has a itemDataBound event which formats some columns. in 1.1 everything went smoothly but in 2.0 for some reason the itemDataBound event fired twice for every row. Any reason why this is the code behind: Protected Sub dgTemplate_ItemDataBound( ByVal sender As Object , ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles dgTemplate.ItemDataBound Dim tempID As Integer Try Dim str As String Dim ddl As DropDownList Dim lbl As Label Dim obj As DayOfWeek If e.Item.ItemType = ListItemType.Item Or _ e.Item.ItemType = ListItemType.AlternatingItem Then tempID = dgTemplate.DataKeys(e.It ...Show All
