vb.net

Update query (access & vb.net)

Hi: QUESTION 1 I have to update some fields of a table of access according to the value of parameter. If this paramter is "true" I need to update. Table idInvoice price percentageTax1 tax1 percentageTax2 tax2 total Example values: idinvoice: 12300 price: 100 € percentageTax1: ...

Visual Studio Add-In for Grouping Files

I used to have a nice little Visual Studio Add-In that allowed me to group files by simply right clicking on them. It used to modify the csproj file in the background and add the relevant attributes. I have just rebuilt my machine and can't find the add-in anywhere. So just wondered if anyone knows of a similar one? ...

Can I get an Action's return type from an Action Filter?

I have an ASP.NET MVC 2 application in which I am creating a custom action filter. This filter sits on the controllers in the application and verifies from the database whether that function is currently available. Public Overrides Sub OnActionExecuting(ByVal filterContext As System.Web.Mvc.ActionExecutingContext) Try ' Check con...

How to get the value from method in visual basic 6

the code below is showing error after return statement Private Sub Command1_Click() Dim str As String str = display("test") MsgBox (str) End Sub Public Function display(s As String) As String s = "updated" Return s End Function thanks in advance ...

How to define a string literal containing non-ASCII characters?

I'm programming in VB.NET using Visual Studio 2008. I need to define a string literal containing the character "÷" equivalent to Chr(247). I understand that internally VS uses UTF-16 encoding, but when the source file is written to disk it contains the single byte value F7 for this character. This source file is processed by another pro...

Parsing CSV string and binding it to listbox

I have splitted comma separated values in an string array, something like this str[0] ="210" str[1] ="abc.pdf" str[2] = "211" str[3] = "xyz.docx" and so on. Please note 0,2,4,6,8 [even positions] are having number and odd positions are having string. I am having a class Attachmodel Public Class AttachmentModel Private _attachmentID...

Adding text to Scintilla without loosing formatting

I'm starting development using scintilla in VB.NET and I'm creating a serial terminal program. The Scintilla control shows what data has been received in my computer serial port. I need to programmatically add text to control. When I use: Scintilla1.Text = Scintilla1.text & "New Data received" & chr(13) the text is added to Scintil...

Software loading error problem

VB6 & SQL Server 2005 When i run the Windows based Software exe file, it is showing the login page, after login page - no screen is displaying, I checked the task manager, in task manager it is showing as software as running, But there is no page is appearing. Is any firewall blocking or some other issue. But software is running wi...

VB.Net Split A Group Of Text

I am looking to split up multiple lines of text to single them out, for example: Url/Host:ftp://server.com/1 Login:Admin1 Password:Password1 Url/Host:ftp://server.com/2 Login:Admin2 Password:Password2 Url/Host:ftp://server.com/3 Login:Admin3 Password:Password3 How can I split each section into a different textbox, so tha...

FCKeditor for ASP.NET: file upload size limit

Hi all, I'm working on an asp.net website written in vb. I embedded fdkeditor in my page, and it works fine. As it includes image-upload feature, which works fine as well, I need to limit the size of the file before it's been uploaded. I wonder I couldn't find anyting satisfactory on web, it seems fckeditor's developers haven't ever t...

What is the appropriate way to set a VB StringBuilder to an empty string?

I'm using VB's StringBuilder, and I was curious what is considered "best practice" for emptying the builder/setting it to a new string. Would it be something like this: Dim str As New System.Text.StringBuilder() str.Append("Some string to remove") str = new System.Text.StringBuilder() str.Append("Ahh, fresh new text!") or is there a "...

An error occurred creating the form. See Exception.InnerException for details. The error is: Object reference not set to an instance of an object.

I get this error when attempting to debug my form, I cannot see where at all the error could be (also does not highlight where), anyone have any suggestions? An error occurred creating the form. See Exception.InnerException for details. The error is: Object reference not set to an instance of an object. Dim dateCrap As Str...

DataSource Select Parameter from GET value

How can I use the value of a GET form value as a SelectParameter? Note: Both C# and VB.NET answers are fine. ...

How to create a non-unique index in sqlite?

How to create a non-unique index in sqlite? I'm using vb.net to create the tables. ...

embedding dll requirement in program

hi I am writing a C# Windows application program and I'm using an add-on for creating chart in it,but when I run this program on another windows which has .net framework but not that package it does not work and give me exception. I want to know how can I correct this problem even with setup file? and if the answer is setup file then how...

Facebook connect in asp.net (VB, not C#)

Hi guys, i would like to know how to implement the classic button "Facebook Connect" in my web site. I also would like to get the value for "Name and surname", "Age", and "profession". I write vb.net code and i've already downloaded the Facebook Developer Toolkit in codeplex. Thanks in advance ...

DataBind DataSource Result to ASP Labels

I have an AccessDataSource TestSummaryADS. I can easily view the results in a GridView or DropDownList by setting its DataSourceID property. How do I bind a value from the results TestSummaryADS to the text of a label? I'm just trying to populate labels on my page with results from the DB entry. C# or VB.NET answers okay. ...

Webbrowser locks first Excel Instance

VB.NET 2008 - WinForms Hi Everyone! I've been looking for an answer to my problem but I only find more questions related to my problem... The thing is that I'm using a AxWebBrowser control in VB.NET 2008 to open a excel file in a WindowsForm, it opens succesfully and everything... but the problem is this: If I had a Excel File Open b...

How to capture SQL with parameters substituted in? (.NET, SqlCommand)

Hello, If there an easy way to get a completed SQL statement back after parameter substitution? I.e., I want to keep a logfile of all the SQL this program runs. Or if I want to do this, will I just want to get rid of Parameters, and do the whole query the old school way, in one big string? Simple Example: I want to capture the outp...

ADO.NET Multiple simultaneous reads from an open database.

Answer not needed - my logic was wrong and this question is invalid. Charles helped me see where I went off-tracks. Thanks I have a utility that moves data from one source to another. In the process of writing the record I check to see if it exists and do an update/insert as necessary. The difficulty I have is that as I'm writing th...