vb.net

Which WCF security scenario should I use?

I'm new to WCF and am overwhelmed by the options available for securing my WCF service. What is the security model best suited for this situation? Server: Must have access to the context of a particular publicly available ASP.Net application, running on IIS 6. However, the the service should only be available to a single client on the...

Input string was not in a correct format vb net

This is really confusing me as I'm not doing anything with Strings. This is the details the debugger gives back to me: System.FormatException was unhandled Message=Input string was not in a correct format. Source=System.Windows.Forms StackTrace: at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Del...

vb.net: remove spaces from a string

how do you remove spaces from a string in vb.net? ...

vb.net: index out of range

Public extreme_foods As New System.Collections.ArrayList() Dim i As Integer i = 1 For Each s In split2 extreme_foods(i) = s i = i + 1 Next anyone know why extreme_foods(i)=s is giving INDEX OUT OF RANGE?? ...

vb.net: clearing contents of System.Collections.ArrayList?

how do i clear all elements in an arraylist? ...

The 'Microsoft.ACE.OLEDB.12.0' provider is not registered in the local machine

I'm getting this error when trying to run a vb application on a another pc. Is there some place I can download this DLL? ...

Is it possible to hide a public subroutine/function in VB .Net?

Maybe I'm thinking about this the wrong way but here's the idea: Class A gets, as part of it's constructor, a pointer to class B and saves that pointer in a private variable. Class B exposes a public function, F. I'd like for class A and all classes that inherit from class A to NOT be able to call B.F. The idea is that class A will i...

Chrome saving streamed file as .gz

I have been banging my head against the wall with this odd behaviour on Chrome I have files stored encrypted on disk in an unnamed, unordered state. when the files are downloaded by the user, the client is redirected to a download handlers (.ashx) the data is loaded into a stream, decrypted and sent to the client. Now this has worked fi...

Problem uploading file from from VB.net to Sharepoint( WSS 2.0)

Hello Experts, I am trying to upload some files from local machine to Sharepoint document library. The file I am trying to upload is c:/uploads/route.pdf My sharepoint site URL is http://companyportal:9191/Sites/Travel I have a document library called Travel docs under Shared Documents. The actual URL for the document library is http:...

Microsoft.sharepoint.dll for WSS 2.0

I have a VS.net project where I need to add a reference to Microsoft.sharepoint.dll where can I find the dll. I am running my web application on XP Professional box and I cannot install WSS 2.0 on my machine. I need to programmatically access a sharepoint site which is on WSS 2.0 from aSP.net application. Please help Thanks ...

Having a menu open when you click on a NotifyIcon (VB.NET)

I want to have a NotifyIcon in the system tray that when clicked, opens a context menu on the NotifyIcon with several options that open different forms. I have read I need to use a ContextMenu and after Google'ing and trying out various code I can't seem to get it working :/ Any help on the matter is greatly appreicated. ...

how to set tab focus on li page load using jquery

hi, I have below code in html. <li class="selected" runat="server" id="lihome"><a href="/ISS/home.aspx" title="Home"><span>Home</span></a></li> Now I want to start my tabbing from this li when my page get loaded. Please suggest how to do this. Thanks. Best Regards, MS ...

C# xml output from google search results

I need a c# code to output xml results for google search results. Please help! ...

DataBound UserControl and PropertyNameChanged Event problem in .net winforms.

I have a UserControl, with a TextBox and a databound property - Value. Value can be any object such as a Color, Array, Font etc. Any time the text changes, the property Value is changed as long as it is valid. Looking at the msdn article: How to: Apply the PropertyNameChanged Pattern , it says I should use the PropertyNameChanged Event...

VB.net / C# dont reference sqlreader in client portion then where?

Assume I have a form that has say 5 text boxes and I need to pull some data from a database then set those 5 text boxes with that data. So assume I have 3 basic layers: the code behind for a default.aspx page a BLL class that contacts the DAL and a data access layer (DAL) But I've heard and read that the default.aspx page should no...

Sql Filestream Update problems

Hello, I have implemented the filestream feature of SQL Server 2008 in a VB.Net application. I can insert files, and then retrieve/view them just fine. However, I have huge problems trying to update a file. Eg. The user selects a file from the grid which I execute via process.start. If that file is a .txt file, the user may choose to e...

Save RDLC reports as PDF programaticaly

I have a report that I need to run multiple times and save as PDFs. I am currently generating the report as a PDF programatically but want to save the reports without the user having to choose the save option manually each time. The code I use to render a single report as a PDF is: Dim warnings As Microsoft.Reporting.WebForms.Warn...

How can I convert this code LINQ to SQL in C # LINQ to SQL in Vb.net

How can I convert this code LINQ to SQL in C # LINQ to SQL in Vb.net public IQueryable<Maestro_Clientes> GetMaestro_Clientes() { var q = from co in this.Context.Cli_Consumos group co by new { Servicio = co.Servicio, Cliente = co.Cli_Servicio.Cli_C...

Windows 7 Integration in VB.NET

I'm trying to add Jumplist support to my app, but I can only find the source code of libaries to do this in C#, I can't find any dlls anywhere. So where can I get one? Or am I totally wrong and how do add the new windows 7 features in vb net? ...

Vb.Net Object on top of another

In VB.NET I made a web browser and I wanted there to be an image behind the web browser slightly peeking out. I put the image on after i put the web browser on the form and I cant get it to be behind the browser. Can anyone tell me how to do this? ...