vb.net

Deserializing json from client in json.net 3.5b2 in vb.net

I have a test case of a problem I'm having, basically I create a json object on the server and provide it back to an AJAX called made on the client side. That works fine, however, when I try to send it back and deserialize it server side I get the following exception: No parameterless constructor defined for type of 'System.String'. ...

How do I specify EOF in SSIS VBScript?

What is the syntax for reading until the end of file in SSIS VBScript? Dim readFile As FileInfo = New FileInfo(logHourlyName) If readFile.Exists() Then Dim textStream As StreamReader = readFile.OpenText() Dim strLine As String Do While Not EOF <--- what goes here? curLine = textStream.ReadLine() Loop textStream....

How to Bifurcate Activex controls present in access DB Form using vb.net?

Using my tool (vb.net) I am able to count Activex controls present in a access DB Form. Is it possible to bifurcate the controls? i.e. I want to count activex controls separately. e.g. If there are total 10 Activex Controls, out of which 5 are calender control and 5 are check boxes. Then I need to count separately. Is it possible? Plea...

WPF ListView/ItemsControl Drag Drop Adorner

Hi there, I've found this article by Bea Stollnitz and downloaded the source and converted to vb.net. I believe I have my conversion complete, but one thing is still not working as I've tried to get it and pulled too many hairs out. Hopefully someone can help me spot what I'm missing. Ok, drag & drop works fine in the converted code,...

Visual Studio build problem

We have a VS 2003 solution containing 1 vb project and several c# projects(No web projects). The problem is when i try to build the vb project either VS exits or stuck at "performing main compilation". Please help Can not reproduce it. Clear build doesnt work. Sometimes problems is solved without doing anything logical. ...

How to copy file to a new location having path length more than 260 characters in vista?

in my previous question as follows: "How to create a copy of a file having length more than 260 characters." I have asked almost same qustion and I got a solution to rename the directory name and then copy to a new location. But as per the client's requirement we can't rename the directiory in any case. So now my problem is when we t...

How to do Mailmerge in Openoffice using Vb.net

Hey All, Its 5th Question and apart of one i didnt get response from the experts.... Hope this time i will get the helping hand. I want to do mailmerge in openoffice using Vb.net and i am totally new with openoffice. i searched on net for some help to understand how to use openoffice with vb.net but all i get is half info.....So can u...

Toolbar with VLC ActiveX in VB.NET

Hello! I've used the VideoLAN VLC ActiveX Plugin 2 (available in the VLC 0.9.4 installation) in my VB.NET App. I've noticed that: The controller toolbar (seek bar, control buttons, volume) do NOT appear at all Even after playing a file And the "Toolbar" property cannot be set to TRUE, read-only? So my questions are: Is the "Toolb...

How can I edit a registry key with VB.NET or VB6?

I need to edit a registry key and set the data value to "4" I know how to do it through the command prompt but am trying to find some Visual Basic code to do it. If it helps, this is the key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR\Start ...

SocketException on Windows Server 2003

I am trying to get an FTP application up and running on Windows Server 2003, before this application was on windows XP professional running with no problem. I have tried googling around for answers, but the only "workaround" I can seem to find on Microsoft’s website didn’t correct the problem (being edit the registry and add a new field...

Which data structure should I use? (.NET)

Here is the structure of the data my object will need to expose (the data is NOT really stored in XML, it was just the easiest way to illustrate the layout): <Department id="Accounting"> <Employee id="1234">Joe Jones</Employee> <Employee id="5678">Steve Smith</Employee> </Department> <Department id="Marketing"> <Employee id="3223"...

IntelliSense not working VS2008 VB.Net

I realize this question has been asked before, but I was not able to find anything that worked for me yet. Things I have tried: Switched settings back to default (mulitple ways) Project Builds/Compiles fine Closed VS and restarted The only thing I haven't been able to try is deleting the ".ncb" file, but that's only because I can't ...

Browse Files Server-side in ASP.NET

I'm creating an ASP.NET web application to schedule tasks on our server from a remote location using a .NET Wrapper for Scheduled Tasks. However, I'm stuck. The user needs to be able to browse the file system on the server to retrieve a "file to run" for the new task that the user's creating in this application. I need to get the file...

How to write safe/correct multi-threaded code in .Net?

Today I had to fix some older VB.Net 1.0 code which is using threads. The problem was with updating UI elements from the worker thread instead of the UI-thread. It took me some time to find out that I can use assertions with InvokeRequired to find the problem. Besides the above mentioned concurrent modification problem, there are deadlo...

Build (Compile) project programmatically in VB.NET

How can I build a Project programattically in VB.NET ? ...

Setting page title from @ Page directive in ASP.NET using master pages

I am using master pages and am having trouble setting page titles from the @ Page directive. All of my classes inherit from a class myPage which inherits from the ASP.NET System.Web.UI.Page class. Please Note: I have runat="server" set in my master page's head tag. Here's what my @ Page directives look like for the file test.aspx.vb: ...

How to sort controls at runtime in ASP.NET

How to order Controls at runtime in ASP.NET for instance I have three text boxes in my web page in the following order textbox1 textbox2 textbox3 I want the order of these controls to be changed depending on the user preferences textbox3 textbox2 textbox1 that is just an example, any idea? ...

Why doesn't Visual Studio 2008 show you the value of const variables when you hover over them in C#?

My question title explains it all. This is extremely frustrating, especially when working with lots of similar constants. It works for Visual Basic projects but not Visual C#. In general, why do the IDEs seem to be so different for the different languages (e.g. super-charged Intellisense in VB but not in C#)? To me it doesn't make sense...

Convert an existing type into an anonymous type and add a new property

Hi, Is it possible to take an existing type and create an anonymous type from it with additional properties? For Example (in VB) Public Class Person Public Name As String Public Age As Integer End Class Dim p As New Person With {.Name = "James", .Age = 100} Dim n = New With {.ShoeSize = 10} What I want is the second object (n) ...

Imports or Long Class format?

Should I use this. Imports System.IO Dim myStream As New Stream or this.. Dim myStream As New System.IO.Stream Does it make any difference to performance / memory usage? ...