Mchafu's Q&A profile
Visual Studio Express Editions Confirm Deletion of a Record
I have a datagridview with a binding navigator with a delete button (the red X). I want a message box to appear when the user clicks on the delete button to confirm whether they in fact want to delete the record. I have the following code so far: Private Sub BindingNavigatorDeleteItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorDeleteItem.Click If MsgBox( "Are you sure you want to delete selected record(s) " , MessageBoxButtons.OKCancel, "Confirm Delete" ) = Windows.Forms.DialogResult.Cancel Then End If End Sub As you can see, I do not have anything after the Then line because I can't figure out what code I need to cancel the event. Of course, th ...Show All
Visual Studio Express Editions Modifying SQL Data in VBe
Hi, I'm looking for the basic steps of connection to and editing(Add and deleting tables and data) for a SQL Database inside a VBe Project. I've looked around the net (and the MSDN Help Library) with little success on finding something of this nature that's usable. If anyone knows how to do this or a good tutorial showing how to learn to do this that's clear on ALL details, it would be extremely helpful. Hi, First, create the database: Project/Add new item/Sql database (.mdf). Double click on the database in the solution explorer to open it in the Server explorer. Expand the node corresponding to your db, right-click on tables and select Add new table. Then fill the grid with the columns you need and repeat for the other t ...Show All
Visual Studio Team System Viewstate hardcoded as Form Post Parameter
One of our web apps allows the user to create notes or reminders by launching a new window. The webtest is recording the launch of the new window and the submittion of the note or reminder however, looking at the Form Post Parameters for the submittion, __VIEWSTATE is hardcoded. I can extract the viewstate from when the form launches and use that, but I am wondering why it is not automatically being grabbed as a hidden field. Could there be a limitation as to the length of the viewstate as a hidden field For Creating a Note it is over 200K long. For Creating a Reminder it is over 700K. (Please give any recommended code in VB. ) Thanks in advance. Manually adding the Ex ...Show All
SQL Server login failed for 'user' (Application Role)
I've created a database in SQL Express and I have a Windows form attempting to connect to it through SQL Authentication. Connection string: private string connString = @"Data Source=.\sqlexpress;Initial Catalog=SQLTestDatabase;User ID=SearchAppRole; Password=password;" ; The role I have added to the database is an Application Role. It has been added to the Database permissions with Grant checked for "Select" and "Authenticate". If I test this with query analyzer, it returns expected results (if I remove Grant from 'Select', it fails) sp_setapprole 'SearchAppRole', 'password' select * from recipe If I edit my connection string (for testing purposes) to use the sa account, the applicati ...Show All
SQL Server Rename file using File System Task Editor
Could someone please instruct me on how to use the File System Task Editor to rename a file I place control on control flow tab, change the operation to rename, from there I am not sure what to do. Often you need to use a resource that does not yet exist, be that a file or table. Generally you do need to create the object to help develop the package, but after that you can set the DelayValidation property to prevent errors at run-time. This means that the task does not validate until immediatly prior to executing, rather than at the begining of the overall package execution as well. It is of course assumed that by the time validation does take place any dependencies do then exist. ...Show All
Visual Basic How to not get combobox SelectedIndexChanged be executed on load
Hello, As what the subject line is.... What is the method to not allow combobox SelectedIndexChanged to be executed on load... and only make it to be executed when a "USER" changes the selection value. Thanks well anything can go wrong during that but should be kept as an absolute last resort :-) I am sure there is a better way of finding out why the developer (original poster) needs to alter the selected index at start up of the application (onload) I could post some examples but best not until we find out whats happening during onload, with some code :) ...Show All
SQL Server Processing AS2000 Cubes from SSIS
Hi All, I have a scenario where I want to execute AS 2000 Cubes from a SSIS package. In my Prod environment I have two servers one with the SQL 2000 database and the AS2000 cubes on it and the other with SSIS installed on it. What I am doing here is I have a DTS package with a process cube task in it, this DTS package is saved as a structured file and then I call this DTS package from SSIS using the Execurte 2000 package task. Just FYI the process cubes task is using local as the server reference. I want to know how this will work when I execute this DTS package from within an SSIS package running on a different server Appreciate all help. Thanks I've been thinking about this some more. A ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How best to learn 3D basics?
I've really enjoyed learning the 2D stuff, and have lots of synchronized moving, rotating and resizing pictures of stick monkeys. None of this post is a complaint to the XNA team which I think has done a great job. Unfortunately, coming from a C# but not a 3d graphics background, it's exceedingly difficult to figure out how to get simple things to work in 3d. I wasn't able to get the simple cube up and running (it was plain black) until reading a helpful forum post. I was baffled for a long time by the huge list of vertices. It took me a while to figure out that you just take the first 3 vertices and make a triangle out of that, then you take the next 3 and make a triangle out of that, etc. But it's still confusing--for example (not the ...Show All
Visual Studio 2008 (Pre-release) How can I disable [Minimize] or [Maximize] of title bar and system menu ?
I need a window like this: when it is in a normal state, it can be moved and resized, but not to be maximized from system menu; when it is in a maximized state, it can not be restored from system menu. I found that if a window was set as maximized and not resizable, it could be MOVED, that is really strange. But it could be still restored to normal state. I want a window in maximize state unable to be restored (could only be minimized); a window in normal state unable to be maximized. Shortly, I want to disable [Minimize] or [Maximize] in the system menu. ...Show All
SQL Server Data Flow Task empty after check in
On my office PC I have a strange problem with Data Flow Tasks. When I check-in a package into Source Control (Team Foundation) I usually have some empty Data Flow Tasks in the packages...even if I haven't changed that Flow Task. This is really frustrating cause when running the package all goes well, but after a whil you notice that some tables are empty. Does anyone know what the problem is Same here. It happens to me periodically. I haven't yet bothered to take a look at the package XML to try and work out what the problem is. note to self - do that next time. I can't belive that it just removes components from the DFT. I find it easier to believe that it loses the binding between them. Point i ...Show All
Smart Device Development Reading SMS from GSM Mobiles Phones
Is it possible that we can read sms messages present in the inbox of any mobile phone such as LG C2500, for a mobile phone that is connected to the system via a data cable This forum is dedicated to device development. Please post to relevant news group instead: http://support.microsoft.com/newsgroups/default.aspx Closing as off topic. ...Show All
SQL Server What is Compatibility_82_415_30001
Hello, I upgrade my SQL SERVER 2000 to SQL SERVER 2005 and i have on datbase, tables, view this COLLATION Compatibility_82_415_30001. What this I don`t change this collation on other... Some stored procedure stop working and I have errors during executing. System information me that this collation is incorrect.What is Collation : Compatibility_82_415_30001 ...Show All
Software Development for Windows Vista Privateprofile access win.ini as filename hung app
I have found that when using pathname\win.ini as the filename for use with private profilefunctions that this will not work correctly in vista. Vista reports a hung app message. If the filename is changed to something else such as pathname\setup.ini, the same code works exactly as expected. This fault was found in vista beta 2, and then again when tested on release version of vista. Hi The setting of UAC has no effect on this issue. I have found however that WNetGetConnection has trouble returning a network share name if UAC is On, it reports getlast error of 1201, "Connection not found, but is remembered connection", and works OK with UAC Off. ...Show All
Visual Studio Express Editions <br> tag shortcut?
Is there a shortcut key for the <br> tag Wow, seems like a given since it's probably the most used tag at least in my daily HTML'in. Thanks for the response. Where would the appropriate place be ...Show All
Visual Basic Why VB compiler is allways running !?
I’m sorry, i just don’t want to be rude. I have a few simple questions !!! 1o Microsoft want to KILL VB ! 2o if not, so why the stupid compiler start compiling a every line i wrote. 3a Why this experiencing is not lived by the C# compiler !! perhaps the C# team made very good job !!! 4o The performace patched release by you guys, work but the problem is not solved, the IDE continues flinking, the compiler is allways running, the bigger projects continues to be slow to work on them..... Sorry, but i’m working with VB.NET for a quite long time ( since VB.NET 2002 and 8 hours day) , and i’m doing a very large application since them and for the last 6 to 8 months i was experiencing something that i never imagine, slow pr ...Show All
