vb.net

Facebook Developer Toolkit permissions

I am using the Facebook Developer Toolkit to try and develop a facebook application in VB and having trouble setting permissions so I can write on users walls etc. Could anyone help with this? Thanks Hazel ...

How to check if a radiobutton is checked in a group

I have group of radio buttons, each group ranges from 5 - 27 radiobuttons. And if any radio button in a group is checked I store 1 in db else I store 0. Now I'm checking each radiobutton using if loop to see if they are checked and set database value. I'm also trying to use the code below. Is there a good/better approach to check if they...

Telerik Dock is duplicating boxes and "_breaking_" the webpage, how can I fix the problem?

Here is the Code: VB: Imports System.Web.Script.Serialization Partial Class MyLanding Inherits System.Web.UI.Page Private LoginClass As New LoginClass Private _dockStateCleared As Boolean = False Private _conn As New SqlConnection(ConfigurationManager.ConnectionStrings("MidwestPartsConnectionString").ConnectionString) ...

SilverLight / WPF Button with DropDown

Is it possible to create a button with a drop down, or a combobox that has the dropdown arrow along the bottom as opposed to the right hand side? I am trying to emulate the "Paste" button in the Word 2010 ribbon. ...

ListView controls display wrong data the 3rd time

I have a ListView that populates and displays a user's data (via a profile system in VWD 2008) during Page_Load and also when I go from the EditItemTemplate to the ItemTemplate. When I go to the edit screen again, my DropDownList and RadioButtonList controls display the first items in the corresponding tables instead of the correct pro...

VB.NET using LINQ to transpose an ObservableCollection

I have a custom item class (basically two string values with associated properties), as below: Public Class itmDataDetails Private _strDataName As String Private _strDataValue As String Public Property strDataName() As String Get Return _strDataName End Get Set(ByVal value As String) ...

problems while executing a sql command in vb

I have a problem with a sql query. Through the query I am trying to search database for any occurrences of string (can be anything) in a column using the SQL LIKE command. The problem is that it works fine for most of the strings say john, jim, ji"m , but does not work when i include the following characters which are ( ' , { , } , and a...

asp.net mvc 1 validation using dynamically created controls

Hello there, Using ASP.Net MVC1 and am dynamically creating the html in a model that is then dropped into the view and rendered at run time. My view is a single page that looks like this: <%@ Page Language="VB" Inherits="System.Web.Mvc.ViewPage" %> <%=(ViewData("Content"))%> This dynamically created content is mostly dropdownlis...

Display 2 Forms, side by side

I would like to display 2 forms side by side. Frm1 will call Frm2. The problem is, if Frm1 is too near the edge of the computer screen, when Fr2 is shown, part of it will be outside the screen. How do I make it so that if Frm1 is near the right-side of the screen then Frm2 will show on the left-side of Frm1 and vise-versa? Thanks ...

In VB.NET, what data structure to use so that, given two characters, return an integer for optimum performance?

I am finishing up a program that does a large number of calculations and am trying to optimize the innermost loop. The calculation I am currently looking at iterates over a large number of pairs of words and makes a table of the counts of corresponding pairs of characters. For example, one pair of words might be: voice louse and the...

If Not String.Empty ignoring empty string - VB.NET

I have a array of strings and I am looping through them, but the string might be empty so I am trying this: For Each Component As String In Components If Component IsNot String.Empty Then 'Work your magic End If Next But if Component is an empty string the logic still fires. I've also tried If Component <> "" Then E...

Automating an ASP.NET Web Form

I have an ASP.NET web form that reads a file and writes some data to a database. I need to run this process on a scheduled basis. Currently, I have a scheduled task that calls a batch file. The batch file then opens Internet Explorer and navigates to the URL and the process is fired. There is another scheduled batch file that closes In...

VB.Net - how can i get the type of the object contained in an List

If I have a list... dim l as List(of MyClass) = new List(of MyClass) and I want to get the type of the objects contained in the list, how do I do that? The obvious answer, that doesn't seem to be possible from my actual implementation, would be to do something like this... public function GetType(byval AList as IList(of GenericType)...

C# Lambda to VB.Net

I'm trying to convert a function in C# to VB.Net 2008 and can't seem to make the Lamda expression work. The code is taken from a neat little C# SMTP server that saves emails to Azure blob storage Any help would be appreciated greatly. public void Run() { var mutex = new ManualResetEvent(false); while (true) ...

Program VB.Net for use on Windows-2000

Newbie question - How do I set up a VB.NET program so it will run on W2K ? I understand I can only use .Net 2.0 or older. Is there an easy way to limit which .net version is used/referenced ? (I have .Net 3.5 on my XP development computer) Updating target computers to XP, Vista, Windows 7 is NOT an option. ...

WPF Printing over DrawingContext

Does someone has a link to learn how to print directly over the DrawingContext-class in WPF? ...

Chart control in visual web developer express 2010 is unavailable

I've just rebuilt my PC and have upgraded to visual web developer express 2010. I have imported my projects which use the charting control quite a bit. Unfortunately my projects are failing to run. In design view the control is now showing as "unknown server tag asp:chart". I can see the Chart control in the data tab in the toolbox but i...

ASP.Net Application

Hi, I have a small ASP.Net application that appends records from users connected through internet. I wish to have the database resided over my computer and users could connect with it through internet. Is it possible? Thanks and best regards, Furqan ...

Could not access 'CDO.Messge' object

Can anyone know on how this error arise? Could not access 'CDO.Messge' object ...

Lost .netcharting functionality after changing project from .NET 4 to 3.5

I have a project that uses the asp chart control. The project was developed to use .net 4.0 but the server uses version 3.5. I changed the project to 3.5 but now my charts don't work. When I change it it tells me that system.web.DataVisualisation.dll will be removed. I guess I am looking for a fix which will add this assembly back? any...