82 Posted Topics
Re: That is by design. Cross-frame scripting is a vulnerability. The design is to keep *skimmers* from hosting a bank's web page in an iframe and grabbing the user's personal data. | |
Re: See if [this](http://stackoverflow.com/a/10597775"How to update the Dataset to reflect an added column in the data source without deleting the adapter?") works for you. | |
Re: [Here](http://msdn.microsoft.com/en-us/library/wzabh8c4.aspx) is a link to the walk-through at MSDN. Google: `msdn visual studio 2012 database project` | |
Re: Try this: Private Sub btnSaveText_Click(sender As System.Object, e As System.EventArgs) Handles btnSaveText.Click ' assuming the form is the parent container of the textboxes ' otherwise use me.<container>.controls For Each ctrl As control In me.controls If TypeOf ctrl Is Textbox Then ' alternative check for ctrl.Name here If (Not(ctrl.text is nothing)) … | |
Re: > Are you trying to get answers to your own questions? Yes. I've only been a member for a month, but the answer I needed at the time was here. > What value do you get from helping people? I still need help myself, just trying to balance the equation. … | |
Re: [Transaction Details] is the table he wants to pull from anyway, not [Transactions]. I almost have the data, but having trouble with the outer joins/subquery select. (a bit over my head, it's been years since I did any complex queries. Here's what I have so far: SELECT Description.Dgroup AS Description, … | |
Re: I think tinstaafl is on to something. What is the datatype for the CompanyID column in the Access database? Usually ID fields are auto-number integer values, but it looks like your SELECT query uses a text value in the WHERE clause (Line 9) `where CompanyID='" & txtnum.Text & "'"` | |
Re: Google: `persist datagrid settings` | |
Re: Export a script for your database please. In VS2010, go to server explorer, right-click the server and select publish from context menu Save, zip, and attach those scripts - make sure you script all objects | |
![]() | |
Re: What exceptions do you get? Can you provide the code for the external module? | |
Consider this: I have a user-defined stored procedure which returns a bit value as OUTPUT. In my calling code I want to check that value. I define it in my code as follows: Dim retval As New SqlParameter() retval.ParameterName = "@return" retval.SqlDbType = SqlDbType.Bit retval.Direction = ParameterDirection.Output DataCommand.Parameters.Add(retval) DataCommand.ExecuteNonQuery() ' … | |
Re: Use a nested For loop. *please step through this code, I wrote it off the cuff without the IDE, and without testing, it may have undesired "features"* ' this will get you started, but you'll need to figure out ' how you're going to handle the rest when you run … | |
Re: Google: *`vb.net 2d array tutorial`* **OR** *`vb.net multidimensional array tutorial`* | |
Re: [Per Microsoft kb](http://support.microsoft.com/kb/324733 "http://support.microsoft.com/kb/324733"), you can't roll it into the application installer package using the native deployment package tools; you can however, use the [Setup.exe Bootstrap installer](http://www.microsoft.com/en-us/download/details.aspx?id=24556 "Microsoft .NET Framework version 1.1 Setup.exe Bootstrapper Sample") to install the .Net Framework and then kick off your app installer. **BE AWARE!!!** That … | |
I clicked through the tweets on [this post](http://www.daniweb.com/software-development/vbnet/threads/441223/how-to-make-short-code-in-vb.net "How to make short code in VB.Net") and found the post had been tweeted by the C# tweeter, although it was in the VB.Net forum... Feature?  | |
Re: str = Left(str, str.length -4) | |
Re: A quick glance at the code shows you declaring your DataAdapter and DataSet as da1 ds1 respectively, but your code is using da and ds (without the "1")... | |
Re: Maybe I'm not understanding your requirements, but if your Gr_No is already an int value; just add up all the int values and divide by the total number of values - that will give you the average value - then just display that value (and/or update your Obtained_Marks field). | |
Re: Not much detail here.. what do you have for code so far, and what is the problem you're having? | |
Re: Do you get an error message when trying to browse the databases? What happens if you type in the database name instead of browsing? One way to test your db connection is to use the steps [here](http://www.drdev.net/article10.asp "Setting up an OLE DB connection to a SQL Server database"), and use … | |
Re: Scheduler set to work once every day should work - what errors do you get from the scheduler? | |
Re: Change your DataSource string - you need only the opening and closing quotes. From: `connstring = "Data Source=.\SQLEXPRESS;AttachDbFilename=""C:\Users\Pabzz\Desktop\CSRP 10.20.12\Main\Database1.mdf"";Integrated Security=True;Connect Timeout=30;User Instance=True"` To: `connstring = "Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Pabzz\Desktop\CSRP 10.20.12\Main\Database1.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"` Try that and see if it helps. | |
Re: As far as I can tell there are no direct equivalents to those particular preprocessor directives. There is an interesting writeup [here](http://blog.syntaxc4.net/post/2009/10/08/preprocessor-directives-design-practice.aspx) on using the VB.Net ppd's though. | |
![]() | Re: Run your application in the debugger and step through everything until you know exactly what line throws the exception. Per MSDN library the 'System.ObjectDisposedException' is defined as: `The exception that is thrown when an operation is performed on a disposed object.` |
Re: The solution that comes to mind immediately is to host the database on an internet accessible machine, and set your Data Connection accordingly. Another possibility is to script the database objects and run that script on each new machine (you would also have to run it again when you alter … | |
So when I attempted to tag an untagged article, I received a message about not having permission to delete existing tags - of which there were *none*.... Is this a feature or by design? Thanks, JK | |
Re: [Click Here](http://www.vbforums.com/showthread.php?555134-RESOLVED-How-to-insert-symbol-subscript-superscripts-and-mathematics-equation-in-VB-form) Google: vb.net subscript font | |
Re: Why multiple reader instances? If you declare your DataReader outside of the Try block, you can re-use the same instance - you just have to close() it after each read. I don't use the OleDBDataReader so I'm not sure whether you have to also Dispose() the reader instance each time, … | |
Re: Couldn't you check the version and then conditionally branch from there? I found an example here: [Click Here](http://www.vbforums.com/showthread.php?402020-FAQ-s-OD-How-do-I-programmatically-determine-the-version-of-an-Office-App). Some sample code to look at might be helpful... By the way, what versions are you trying to support? The original post states Word 2008 and Word 2010, but Word 2008 is … | |
Re: I would look at the ASP.Net membership web project for ideas, you may even be able to use that project plus SQLExpress as your membership platform, and have to code only the particulars for specific fields/properties/methods applicable to your unique requirements. In other words, how much do you have to … | |
Hello all. I'm using an API function via PInvoke, with the interesting data being returned to a pointer. My application crashes when attempting to free the pointer. If run with no breakpoints, the application hangs on Line 61 below. After the first run, it will then throw a memory exception … |
The End.