Mattias Asplund's Q&A profile
Windows Forms Combobox's behavior in dataGridView
I have added a combobox column to the dataGridView control. However, when I choose something from the combobox and leave the cell, the selected value gets disappeared: the item changes to blank. I haven't written any code in any of the events. How can I make the selected values stay in the grid private void AddComboBoxColumns( int pInt_InsertAfterColumn) { DataGridViewComboBoxColumn comboboxColumn = new DataGridViewComboBoxColumn (); comboboxColumn.HeaderText = "Action" ; comboboxColumn.Items.Add( "In" ); comboboxColumn.Items.Add( "Out" ); this .dataGridView1.Columns.Insert(pInt_InsertAfterColumn, comboboxColumn); } ...Show All
Visual Basic NEW PLAYER
i am very new in programming world. to be honest i am player of manufacturing and management side. i dont want to be great programmer but as now i require to build some software to manage my production in better way. i have interest to develop software and in design time i can design good forms also. but as no knowledge of coding only my forms stayes in design time. now i cant join any tution classes or take lactures in this. i want to develop software on my own. can anyone give me idea how can i go ahead or from where to start or in vb 2005 is there anything ready to use items to build easily. I would sugg ...Show All
Windows Forms change the default row hightlight color of DataGridView?
Hi, When user hightlights a row in datagridview control, the row color is defaulted to DeepBlue. Is there a way to chagne this default color to something else like Red Our client has this 'special' request. Your help is greatly appreciated. Thanks, Boston Hi... This will work for sure just use these two events and follow this code private void dgvTest_RowEnter( object sender, DataGridViewCellEventArgs e) { DataGridViewRow dgvRow = dgvTest.Rows[e.RowIndex]; dgvRow.DefaultCellStyle.BackColor = Color .Aqua; } private void dgvTest_RowLeave( object sender, DataGridViewCellEventArgs e) { DataGri ...Show All
Windows Forms How to remove the first column from datagridview?
Sorry if this is a dumb question, I'm just learning. The first column on my datagridview simply shows an arrow beside the currently selected row. I don't really want this column there, but I can't seem to find any way to disable it. How can I turn it off Thanks. The documentation has a lot of help for this. Check out the RowHeadersVisible property. -mark DataGridView Program Manager Microsoft This post is provided "as-is" ...Show All
Visual Studio 2008 (Pre-release) Please help with creating buttons!
I'm using Interactive Designer and need some help with the basic concept of making buttons. Also...I'm a designer (not a developer), so I need simple explanations and no XAML;) What I'm trying to do: Create a button with a blue background, white text, and an aqua highlight across the top. When clicked, the background turns yellow, the text turns black, and the aqua highlight stays the same. So...I can do everything mentioned above, except create the aqua background. Honestly, there seem to be a variety of ways to create buttons (Library > Button, draw a rectangle then Tools > Make Button, etc.) but I can't seem to find a way t ...Show All
Visual Studio Team System Project Creation Wizard was not able to connect
How do I solve this : Error Unable to connect to the Windows SharePoint Services at 192.168.1.12 Explanation The Project Creation Wizard was not able to connect to the Windows SharePoint Services at 192.168.1.12. The reason for the failed connection cannot be determined at this time. Because the connection failed, the wizard was not able to complete creating the Windows SharePoint Services site. User Action Contact the administrator for the Windows SharePoint Services at 192.168.1.12 to confirm that the server is available on the network. Also, you might find additional helpful information in the project creation log. The lo ...Show All
Windows Forms Changing look and feel of WinForms application
Hi there, I have a question that I can't solve for a long period of time. I love custom interfaces against standard ones but can't find the way to customize my Windows Forms application. Lets take a look into msn for example. 1. In the conversation dialog the RichEdit with messages has overridden scroll bar. How to change look and feel of scroll bars of each control using Windows Forms Maybe by using User32 and GDI32 functions 2. Send button looks good, but I didn't find the way to implement button like this using standard properties. 3. There is no ComboBox in msn I liked but I would like to change typical button on the right of Com ...Show All
Windows Forms windows forms control for matrix
somebody know which will be the better control to show a matriz in application forms. for example: code: int[,] intmatriz = new int [2,2] intmatriz[0,0] = 1; intmatriz[0,1] = 2; intmatriz[1,0] = 3; intmatriz[1,1] = 4; look col 1 2 row 1 1 3 2 2 4 i know&nbs ...Show All
Visual Studio Team System Source Control acting weird
I had a team project with a bunch of code as part of its source control (solution with 4 projects). I wanted to change the team project over to a new process template I created. So I took a backup copy of my source code from my local filesystem, and then used tfsDeleteProject to delete the team project. I opened up my .sln file and went to Change Source Control... and unbound all the projects and the solution. I created a new team project using the same name as the previous one, and created a new source control root using the same name. When I open up the source control explorer for the new team project I see the source control ...Show All
Visual Studio Team System HTTP Status Code: Unathorized - Unathorized
I have a team member who is getting an error trying to save a NEW work item. She receives a popup alert that states: "HTTP Status Code Unathorized - Unathorized" However, she is able to modify existing work items. I looked at the event log on the app-tier but don't see any errors. Any ideas ~slee Nope, in this case the following occurred: One of the members from my QA team entered a bug (without an attachment) and saved successfully. They then clicked on the attachments tab, added an attachment and saved the bug immediately. They received the bug: "BadRequest - Bad Request". That appears to me t ...Show All
Visual Basic Disabling the close button of a windows application has a problem
When I tried to disable the close button of my Windows Application program using an unmanaged code, this red close button will appear again if I maximized, minimized it , or using Win(key) + D (and again) I don't know why... I can delete the Close menu item, but rather, I wanna disable it. So, if you please find the solution, thanks... Set the forms controlbox property to false...this will get rid of the minimize, maximize and close buttons in the upper right hand corner of the window HTH ...Show All
Visual C# Microsoft Office Document Imagine (MODI) PLEASE HELP
Hello everyone, I have found numerous documentation regarding this on the internet and on MSDN but there all IN VB.net which I can convert to C# most of the time. but there are a few functions im not sure how to get to work in c# .. basically what I am trying todo is Load a scanned document .. OCR the document .. and then Search the document for or Specify a X - Y location on the page in screen cordinates where the data is on the document that I would like to capture from the OCR'd Document. I can load the document up .. and then OCR it no problem. but I cannot figure out how to tell it say at x.10/y.20 grab the data in that area. Please if ...Show All
Visual Studio Team System VS.NET 2003 client for VS.NET 2005 (TEAM FOUNDATION)
Will there be a client for the VS.NET 2003 IDE that will allow us to access things like the source control system Thanks, Jon. Yes. Team Explorer will integrate with Visual Studio 2005 and work side-by-side with other versions of Visual Studio and other development environments. See: http://blogs.msdn.com/robcaron/archive/2005/04/15/408426.aspx ...Show All
.NET Development Application_AcquireRequestState Execute twice per request
Code inside of the global.asax file on the Application_AcquireRequestState event fires twice for each request. One the first request I have session state and on the second, I do not. Here is simple test I ran to verify that it is running twice: Protected Sub Application_AcquireRequestState(ByVal sender As Object, ByVal e As System.EventArgs) If Request.IsAuthenticated Then System.Diagnostics.Debug.Print( "Inside Application_AcquireRequestState" ) End If   ...Show All
Visual Studio Cookies
Hi, My report needs to retrieve the value stored in a cookie and pass it to the report. All the report is going to do with it is display it as part of the report title. No data manipulation is required. Is there an easy way to do this Do I need to create a data source in order to pass the information over to the report Thx. Create a text parameter in the report. Then pass the value of the cookie to the report via the parameter. (vb.net snippets...) Dim cookieParm As New ReportParameter( "reportCookieValueParameter" , theCookieValue) Not sure how you are loading up the report, bu ...Show All
