JohnACE's Q&A profile
Visual C# DataGridViewComboBoxCell value is not valid
hello to all i have a problem with DataGridView, when i have created a column "DataGRidViewComboBoxCell" : DataGridViewComboBoxColumn colStGruppi = new DataGridViewComboBoxColumn(); colStGruppi.DataPropertyName = "idStGruppoMerce"; colStGruppi.DisplayMember = "GruppiMerce.Rel.Descrizione"; colStGruppi.ValueMember = "GruppiMerce.Rel.idStGruppoMerce"; colStGruppi.DisplayStyle = DataGridViewComboBoxDisplayStyle.Nothing; colStGruppi.DataSource = ds; this.gvElementi.Columns.Add(colStGruppi); This is my error; DataGridViewComboBoxCell value is not valid why Tanks Hi, Make sure that all the columns' name do exist in the table of the DB. If idStGruppoMerc ...Show All
Visual Basic Clarification on project start up in VB.NET
Hi, i have created a sample project in VB.NET. i have one form(Form1) and a module(Module1) . i have written a sub main function in module and inside it i have asked to show the Form1 as shown below. Module Module1 Sub Main() Form1.Show() End Sub End Module Also i have disabled the Application Framework in settings and given the start up project as Sub Main(). The code gets compiled without any error. But when i run, it does'nt shows the form. Thanks, Ganesh Just a little info on what's happening.... the form is being shown, but it falls out of scope the moment the sub ends. This forces the form to unload and disappear. Using the Application.Run tells it to restart the app, with a new start form. - ...Show All
Software Development for Windows Vista Show of Hands! Is WF by itself a viable approach to addressing a customer's workflow needs?
Like many of us in the forum I am in the all too often unenviable position to influence my client's decisions. I currently have a lot of customers evaluating workflow, many for the 1st time. I personally have avoided building "custom" workflow solutions whenever possible as I have had success in the past implementing packaged workflow or BPM offerings, both Microsoft-based and less recently non-Microsoft-based. It's allowed me to focus my energies on building solutions and solving real business problems, not building infrastructure. Granted, there are customer situations that don't require or afford you the opportunity to buy a packaged solution to address a workflow/BPM need, but I would argue those are/should be the exception n ...Show All
SQL Server Date lookup in SSIS
How do I perform a date lookup in SSIS. I have a date with time component in it. This has to be looked-up with a table that contains only a date element. I commonly use a slight cheat on this one, if you make the integer key of your lookup table the difference in days from 1 Jan 1900 then you can calculate the key instead of looking it up. You can also use the same trick with the time portion of neccessary (do the diff in seconds). Hope that helps you Philip ...Show All
Visual Basic Using Excel worksheet functions in IWorksheetFunction in VB.Net
I have been asked to convert a Excel/VBA application into a VB .Net application. The existing code uses a lot of application.WorksheetFunction and I tried to use those functions exposed by IWorksheetFunction and unfortunately no joy at all. I wonder if anyone can help me on this. Thanks in advance. skbNo5 Thanks very much spotty. All works well now. Thanks again ...Show All
.NET Development Remoting
hi, i am building a client server application in which client and server can be on the same machine or they can be in different machines. i am building a windows based application using c# in .NET. 1.) can you suggest me which channel should i use for communication 2.) what to use, client activated objects or server activated objects and in server activated objects, if single call or singleton 3.) i guess the single call activated objects are used when only one client wants to communicate with ther server at a time and singleton activated objects are used when multiple clients can interact with server at the same time. plz correct me thanx in advance Divya If you need to communicate ...Show All
SQL Server Multiple query results by one event - question transferred to VB Forms
Glad to do it. Sorry. ...Show All
Smart Device Development How to provide custom paint method for MenuItem control?
Hi, I need to provide a custom paint method for the MenuItem control, but I don't know where to start. Can anyone give some directions Thanks. Tuan You can download a trial version and see for yourself what it can do. In short it allows you to create an owner-drawn context menus with the icon menu by default. http://www.opennetcf.com/PermaLink.aspx guid=b4655cd5-8978-4e0b-b157-0acf624786ec ...Show All
Windows Forms How to deselect the DataGridView row header
Hi, I'm trying to figure how if it's possible to completely deselect rows, including the arrow symbol in the rowheader cell. The reason I am trying to do this is because with multiple selections (eg. using CTRL key) the user can select multiple rows, but they can also deselect previous selections. Example: - Select first 3 rows with CTRL key - Deselect 3rd row with CTRL key. The SelectedRows collection correctly reflects the change, and now contains only the first 2 rows. Also, the CurrentRow.Selected = false for the third row - But the RowHeader arrow is still on the third row, which is now no longer selected - What I would ideally like is to set the new CurrentRow to be the second row, and the RowHeader to be updated accordingly I have t ...Show All
Visual Studio Team System Team build CTP6 datadude project
I'm trying to team build a solution with a ctp6 Datadude project but the build fails stating the next line in the buid.log file Target SqlBuildScriptName: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 Microsoft.VisualStudio.TeamSystem.Data.Tasks.targets(26,5): error MSB4044: The "SqlBuildScriptNameTask" task was not given a value for the required parameter "TargetDatabase". Done building target "SqlBuildScriptName" in project "SenterNovem.Ras.Database.dbproj" -- FAILED. Can someone give me a hint where to look to solve the problem. It may be, Ruben. You might want to take a look at the following help topics that were new for October: Ho ...Show All
Visual Basic How to Access a Unregistered Non-COM DLL From VB.NET
Hi, I have a non com dll which is functioning for years.(i do not have the source code) I need to access it from a vb.net application. how can i achieve this Any suggestions/solutions/sample code is be highly appreciated. Thanks in advance! Dinesh. ...Show All
.NET Development BufferedGraphics - Rendering
I have recently started playing with BufferedGraphics class. One piece of functionality that I found missing is rendering to a specific location. BufferedGraphics.Render function does not accept any coordinate parameters. Is there a way around this Rationale: I have a control that has 3 parts that change independently. I have a BufferedGraphics object for each part. On paint, I would like to only update the buffer (contents and size) of the part that has changed. Then render all 3 buffers to the control's Graphics object. Thanks... J Hi Peter, You're correct. You can choose the buffer offsets when you call Allocate.... however, I do not want to call Allocate (and have to redraw the buffer), every time I ...Show All
SQL Server Header on Matrix Rows
Is there any way to add a header to a Matrix row in RS SP2 Much like a header for fields in a table. I have multiple row groups in my matrix and want to label them so as to avoid confusion. However, I haven't had much luck in finding a way to do this. What I have looks like this: Tasks, Users, Billing 01 Jan 2005 Time External Billing (£) 1 to 1 2 SubTotal 5.25 270.00 6.2 SubTotal 1.50 0.00 10 South Way 1 SubTotal 3.50 245.00 106 Wetherby Road (Ian Mcleod) CS0344 SubTotal 0.50 17.50 I want to add a header to columns 1 and 2. Thanks, Corwin ...Show All
Visual Studio Team System Using Team Foundation Server with Adobe DreamWeaver
Can someone please let me know if it is possible to use Team Foundation Server with the Adobe Dreamweaver IDE I know there are plugins for Eclipse. I was wondering if there were any for this product. Thanks in advance. Hi Michal Yes I belive it does there is an option for Visual Source Safe when you setup a remote site. I do not see one for Team Foundation server. I am a little confused on the MSSCCI provider. Any help or references would be great. - Aaron ...Show All
Visual C# Win32 API & Disk Management
For Educational purposes I really want to learn how to access hard drive I mean everysector in the drive and so on, how to move one sector to another one, how to create disk defragmentation software this would be low level stuff which .NET can't do/access. you would require C/C++/Assembly to do this to be honest. I would guide you to the correct forum but can't seem to locate a C++ forum here in the Microsoft public communities site. ...Show All
