vb.net

Send Two Models into One View .Net in VB

Edit one more time: So it looks like I have figured out the address part too, in the class I have: Public ReadOnly Property addresses As IEnumerable(Of Address) Get Return _these_addresses End Get End Property And in the template I have: <% For Each item In Model.addresses%> <tr> ...

Any good free skinable vb.net tab controls?

I've been googling and googling for vb.net examples with nice looking tabs. I really really like this example (slide #4): http://www.dotnetmagic.com/features_tabbedMDI.html Has anyone come across any similar free vb.net tab controls with examples? I don't really need the control to be open source, just free :) ...

super minimalist plugin for MS Project: where to get started?

Howdy I was wondering if you could point me in the right direction as far as developing a super simple plugin for MS Project (both 2007, which uses the old style ribbon, and 2010 which uses the new ribbon). What I need to implement: create an executable that installs a new button, with a specific icon, in some per-determined section ...

Converting some assembly to VB.NET - SHR operator working differently?

Well, a simple question here I am studying some assembly, and converting some assembly routines back to VB.NET Now, There is a specific line of code I am having trouble with, in assembly, assume the following: EBX = F0D04080 Then the following line gets executed SHR EBX, 4 Which gives me the following: EBX = 0F0D0408 Now, in V...

VB.NET - Conversion from string "11/07/2010 13:00:00" to type 'Date' is not valid.

Hi, I am getting the error: Conversion from string "11/07/2010 13:00:00" to type 'Date' is not valid. In my ASP.NET code when run on the web server. The date is valid and it can't be a US format issue because either way it would be valid. I have tested it and it seems to error when the time is > 12:00 (ie. a 24hour like 13:00 or 21:00)....

Drop items into specific group in a listview

I'm trying to drag an item between two Groups in the same ListView called 'listTasks'. Private Sub listTasks_ItemDrag(ByVal sender As Object, ByVal e As ItemDragEventArgs) Handles listTasks.ItemDrag listTasks.DoDragDrop(listTasks.SelectedItems, DragDropEffects.Move) End Sub Private Sub listTasks_DragEnter(ByVal sender As Object, By...

How to save a SQL Server image data type to the file system?

I'm having issues with the way I've been reading my image datatype blobs from my SQL database (code below). This code works fine when I access this page directly. The PDF will open and works just fine. However, when I try to use this page to download a file and save it to the file-system programmatically, it fails (500 server error) a...

VB.net Module returning data like a function

How could I call a module or something else to return data to me after its ran. I don't want to make my form1 code all messy. Thanks! Example by what I mean return: Public Function Test() As String Return "Tes34t" End Function Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ...

How do I write this Linq-to-Entities Query in Vb.net?

This is what my entities look like: I'm essentially trying to make a left outer join between LookupMakeModel and LookYearMakeModel for a given year. I plan on selecting a valid year from a dropdownlist and then showing a table of all the records in LookMakeModel and checking the checkbox for the LookMakeModels that have a record in L...

Do I need to Release inner objects of a COM Interop object?

I have a managed class that uses a COM that looks like this. Public Class MyClass Private myobj as SomeComObject Public Sub New() myobj = CreateObject("SomeComObject.Class") End Sub Public Sub DoSomething() dim innerobj as SomComObject.InnerClass innerobj = myobj.CreateInnerClass("arg1", true, ...

VB.NET - Can Directx retrieve codec IDs?

Hi StackOverflow, continuing my video converter here and I thought I should have codec information available to the users. I have Directx fully imported into my project and am getting video size, length, FPS, everything, but can I also get the video and audio stream properties? Like average bit-rate, codec name (fourcc - xvid, divx, x264...

How to create a graph or a radar in Visual Basic .NET?

I'm developing an application with Visual Basic. NET. How do I create a graph or a radar system that uses data from a DataGridView? ...

Microsoft Access Database Engine - Failure Creating File

Hi All, I've installed the Microsoft Access Database Engine in order for an app to read and update and Excel file using OLEDB on a 64bit operating system. It all still works fine on 32 bit however i get a "Failure Creating File" error on a 64 bit machine. I'm using the following connectionstring(VB.Net) as per connectionstrings.com(htt...

VB.NET: impossible to use Extension method on System.Object instance

Can I make an Extension method for all the subclasses of System.Object (everything)? Example: <Extension> Public Function MyExtension(value As Object) As Object Return value End Function The above functions won't work for object instance: Dim myObj1 As New Object() Dim myObj2 = myObj1.MyExtension() The compiler does not accept...

How to encode a text file using ASMO449+? .NET

Dear All, How I can encode a text file to ASMO449+? Thanks ...

How to execute CGI from .Net using query_string environment

I am trying to get this API working: http://wiki.openstreetmap.org/wiki/Gosmore#Cgi_Routing_Interface Gosmore is installed and I've tried to execute it using this code: Dim proc As New ProcessStartInfo proc.EnvironmentVariables.Add("QUERY_STRING", "flat=57.69819&flon=11.97485&tlat=57.69819&tlon=11.97490&fast=0&v=motorcar") proc.Fi...

where can I find a copy of a .aspx.vb file that I lost?

I had a little disaster: I did an "undo checkout" in my .aspx.vb file and lost all my work. How can I recover my code? Can I find it in the Temporary ASP.NET Files? If so, where? Is there any other VS2010 temporary files folder worth checking? A visual sourcesafe temporary folder? ...

Custom Paging in Child(Inner) Nested Repeaters.

Hi everyone, Iam using nested repeaters with Dataset (not using Datatable) to retrieve information by passing parameters. So far I have bind the two repeaters clearly and everything is working fine. Here the list of messages created by each user datawise(parameter passed) will be displayed, and there could be more than 50 messages cre...

C# to vb.net conversion

I need to convert this code from C# to VB. I'm not sure of the proper syntax. C# [XcoWorkerExtension(Optional = new Type[] { typeof(Subscribe<OnNewsArrived>) })] private readonly XcoPublisher<OnNewsArrived> publisher = new XcoPublisher<OnNewsArrived>(); This is what I've come up with in VB: <XcoWorkerExtension([Optional]:=Ne...

Using Moq's VerifySet in VB.NET

I have a function that updates a user in the asp.net membership provider. <AcceptVerbs(HttpVerbs.Post)> Public Function EnableUser(ByVal id As String) As JsonResult Dim usr As StargatePortalUser = _membershipService.GetUser(id, Nothing) usr.IsApproved = True _membershipService.UpdateUser(usr) Dim response As New AjaxResponse(usr...