vb.net

Return Value From Asynchronous Web Service Call

I'm using ASMX web services in VB.Net in VS 2005. I am calling a function method on the web service that returns a true or false value. This works fine if I call the the web method synchronously, but if I want to call the method asynchronously, the function returns to a sub and there is no return value; therefore, I can't tell whether ...

What is the best .net alternative to dde for file associations?

I have an MDI Windows Forms application (.net 2008) that allows the user to associate various file types with the application. I currently do this with a registry entry something like this, that causes the application to load and access the file name via the command line: Registry.SetValue(appKey & "\shell\open\command", "", """" & _ ...

best way to store 2/3 records [Windows Application]

Hi I am going to develop a Windows application in .net and I will be string few values. (A max of 20 values). What is the best way of storing this? Using SQLIte seems to be a overkill. My.Settings seem to forget the values sometimes. What is the best way of storing these values? is XML okay? ...

What is the maximum number of executions in a while loop in VB.net that it will allow?

What is the maximum number of executions in a while loop in VB.net that it will allow? Meaning, it is checking for a variable to equal some value, but that value never comes? How many times will it execute the code before it quits? Is there some way to set the maximum number of executions without terminating it programmatically? Thanks ...

detecting when user changes custom color settings in colordialog

how do i detect when the user has changed the colors in the custom colors in colordialog? ...

Object reference not set to an instance of an object (Completely broken?) in vb.net

I know, I know, I could have used a for loop, dont tell me anything about that. Please, help! Private Function LoadSaved() ''//Loads saved clippings if the user wants us to Dim ZomgSavedClips As StringCollection If IsDBNull(My.Settings.SavedClips) = False Then ''//If it is null this would return a rather ugly error. Dont...

How to include dynamic markup in inline XML without it being encoded

I would like to create a HtmlHelper function for a specific kind of dropdown that appears on many pages in my app. I'm basically just trying to add some decoration around the existing DropDownList function, but it's being encoded. Here's my extension method: <Extension()> _ Public Function Year(ByVal HtmlHelper As System.Web.Mvc...

What is the Visual Basic (VB) equivalent of \ in C#?

In C# you can use \ to ignore the special characters: string myString = "this is a \" string"; that would work as one complete string... in VB, doing that does not work... Anyone know the equivalent of \ to ignore special characters for VB? ...

application settings variable instead of textbox.text

i want to save a variable to application settings and i dont want it to be in my invisible textbox1.text. i just want a plain old variable that i can manipulate during runtime and then have it save it after i reload the application. what do i do instead of attaching my.settings to textbox1.text? ...

How can a read receipt be suppressed?

I am programmatically "reading" e-mails using WebDav. I am also deleting these e-mails when I've finished having my way with them, however, this is causing an interesting problem. Each time I delete an e-mail the original sender is getting a not read response. I have logged into OWA and checked the option Do not automatically send a r...

Is there a better way to do this LINQ statement block?

I'm relatively new with LINQ, but I'm going to be getting into it a lot more. Is the following a practical application of LINQ, or is there a better way to do something like this? Public Shared Function GetItems(ByVal itemsList As List(Of OrderItem), ByVal whichForm As ItemsFor, ByVal formID As Integer) As List(Of OrderItem) Dim item...

VB6 to VB.NET Visual Studio Upgrade Wizard hates some of my variable names

I am upgrading a VB6 to VB.NET project using the upgrade wizard. I know this is going to give me a lot of grief, but I am trying to make the old application useable. I'd rewrite it if I had time but am currently finishing up a summer internship and would like to get something working. One thing the wizard is doing that I can find no ju...

Most secure way to license software

What is the best and most secure way to license software? Is there an existing program for doing so? I want to sell a script of mine, but I want to make sure that users cannot redistribute or sell it themselves (of course, if they deactivate the registration on their own computer and choose to resell, that is their choice). The software...

Possible to create WinForm apps in VB.NET that can access an intranet?

Hello, I'm not looking for a solution, rather I just want to know if this is possible or not with VB.NET (which I'm still just a beginner on). What I'm looking to develop is a WinForm application that allows users within the company network to share files and other information. Is this possible? Thanks. ...

How do i allow the HttpListener in vb2005.net to allow outside access?

How do i allow the HttpListener in vb2005.net to allow outside access? For testing purposes i have set it up to use the same ports as my webserver uses so there are no firewall issues. the prefixes are set up to take the localhost on port 80 the realm is unset AuthenticationSchemes = Net.AuthenticationSchemes.Anonymous it works just ...

How do I set the next available custom color in the ColorDialog?

I'm currently coding in VB.net. A user places the cursor in a table cell and clicks on "Table > Background Color" to edit the current background colour. Currently I have been able to detect the current colour (for instance a light blue) and set that colour in the ColorDialog (Colour swatches are correct and RGB values are correct). Wh...

Compile date and time

Is there some clever way of getting the date and time of when the dll was built/compiled? I’m using the assembly version numbering and reflection to retrieve and display this info when the app is deployed. But in some scenarios it would be more convenient to know when then dll was actually compiled rather than the auto incrementing vers...

remove a textbox in designer when a column is deleted from the database

i am working on a Windows Forms application using VB.net. It basically is an application made in vb 6.0 being upgraded to vb.net. Now i have an idea but i am not sure if it exists. Say i have a database (My_DB) and it has a table (item_details). I wish to make dataentry into the elements of item_details table which currently has 6 fiel...

How to Ungroup controls in a protected Excel sheet.

Job of my Application is to scan excel files for activex controls. Problem: One of the sheet in an excel file is password protected with Activex control. Some controls are in grouped. My tool showing error while scanning this sheet as follows: "Exception from HRESULT: 0*800AO3EC" For grouped controls but scan all other activex contr...

Insufficient memory to continue the execution of the program.

My Application (Vb.net, Access 2003/2007) is to scan Access Database files for activex controls and to generate report accordingly. Problem: Getting an error like: "Insufficient memory to continue the execution of the program." The above error occurs while scanning for older version of Access files like prior to office 2000. And th...