vb.net

abode acrobat reader with vb.net

I am trying to display a PDF in an Adobe PDF reader COM component in VB.NET. All i do is: AxAcroPDF1.LoadFile("file path here") But for some reason it's not displaying the PDF. Can someone please advise me on what am I doing wrong here? ...

IComparable - Call different sorts?

I have a DTO that I am using to process transactions. To ensure that it is processing in the correct order, I am using iComparable and sorting the List(of T) of the DTO. That works great. However I just got another requirement that the customer wants the output in a different order... is there a way to allow me to have two different sort...

Calculating DateTime with LINQ to SQL

Hi, I have two tables TimeSheet and TimeRecord. TimeRecord has Foreign Key TimeSheetId of TimeSheet. The following time-logs are from TimeRecord, TimeSheet sample data: TimeSheetId, StudentId 187 , 10 196 , 11 195 , 12 TimeRecord sample data: TimeRecordId, TimeSheetId, TimeIn, TimeOut 1 , 187 , 8/17/2010 1:06:55 PM , ...

XML intellisense in C# as in VB.Net?

Is it possible to enable XML intellisense in a C# class as it is in the VB editor? Similar to this article's prescriptions: http://msdn.microsoft.com/en-us/library/bb531325.aspx Would like to not have to use xsd.exe to generate a class from the XML. ...

ASP.NET Control Life Cycle - After Load View State

I am creating a custom control and I need to handle some logic AFTER LoadViewState (which may or may not be called depending on if the control was visible or not) and BEFORE LoadPostBack (which may or may not be called depending on if the control was visible or not). Is there anything in the control lifecycle that will accommodate this...

Download file from ftp if newer or different

Hello, I am trying to download a file from an ftp site only if it's newer than my local file. Can anyone help how to incorporate to check for the file properties? right now it downloads the file, but just need if newer. The purpose is to update a .mdb with the contents of the file, so don't want to download file and run an update everyt...

Catching SQL Exceptions in vb.net

Is there a way to catch all SQL exceptions in a project? I have several gridviews and multiple sqldatasources and most of the errors are going to occur when a user enters something incorrectly or in the wrong column. So how do I stop the Server Error in /Project page from showing up? ...

Format TimeSpan greater than 24 hour

Hi, Say I convert some second into the TimeSpan object like this. Dim sec= 1254234568 Dim t As TimeSpan = TimeSpan.FromSeconds(sec) How to format TimeSpan object into a format like the following: >105hr 56mn 47sec Is there any built-in function? or I need to write a custom function. Thanks. ...

Enlarge flash game through VB.

I'm trying to use Visual Basic to enlarge or magnify a flash game. (Just trying to make it take up more of the screen without having to do something like change the computer's resolution.) The only code I have is the one that loads the game from the website: Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System....

how to create a help file in .net?

Hi, I want to create one help file for my whole application. and once user press help button next to any input control then appropriate help topic from file should get display. how can i create this functionality in vb.net? ...

Update Parent UpdatePanel from Child UpdatePanel - Conditionally

I am trying to trying to setup an updatepanel to update every X seconds, the problem is I don't want the control to actually refresh unless there is new data. So I currently have a child updatepanel in a parent UpdatePanel, the child updatepanel gets refreshed by a timer. But I can't seem to find a way to trigger the parent panel to up...

User-initiated action implementation

In Flash 10 there are methods that require that they are triggered from user-initiated actions like button click, keyboard up/down keys, etc. Is it possible to implement this behaviour in .NET? For example, if we have this subroutine: void SomeMethod() { // Here some stuff } how to check inside it whether the method was called fro...

vb.net in InDesign Scripting - Grouping TextFrames

I want to group textframes in my InDesign CS3 vb.net script. It worked for InDesign 2.0 but it does not work with InDesign CS3. Here is my code: Dim myDoc As InDesign.Document = Nothing Dim myGroup As InDesign.Group = Nothing Dim myObjectList(2) myObjectList.SetValue(myOuterTextFrame, 0) myObjectList.SetValue(myInnerTextFrame, 1) myObj...

vb.net static variables on a web garden

Do vb.net static variables work on an IIS web garden? ...

Need the VB equivalent

private void MoveThumb( Thumb thumb, Point position ) { var element = AdornedElement as FrameworkElement; position = new Point( position.X * element.ActualWidth, position.Y * element.ActualHeight ); **var halfSize = (Vector)thumb.DesiredSize / 2;** thumb.Arrange( new Rect( position - halfSize, position + halfSize ) ); } ...

Convert PostScript to HTML

For one of my projects I need to make PostScript files available for viewing online, My goal is to convert these PostScript files to HTML. I'd like to do it all in VB.NET code and in-memory stream and without using command-line programs. I think a perfect solution might be to write the PostScript to a stream, and simultaneously read th...

compiling a .net application with either a 32-bit or 64-bit dll

I have an application that we wrote here at work that uses the SharpSVN wrapper for SVN. It has served us well of the past few years. However, we have started bringing in 64-bit systems and our application cannot seem to access the SharpSVN dll on these systems. I have downloaded the 64-bit version of the SharpSVN dll and I am wonderin...

Convert PS to HTML

0 down vote favorite For one of my project I need to make an PS files available for viewing online(Convert PS to HTML). I like to do it all in VB.Net code and in memory stream and without using command-line programs. I think a perfect solution might be to write the Postscript to a stream, and simultaneously read the output stream to ...

ExtJS Tab Panels

So I'm adding a tab panel to a child window. A lot of our controls here are user defined but this looks like an ExtJS issue. When I add a tab panel, and then try and add controls and stuff to that panel, everything is cut off on that panel. Here is the code I am using: Using ViewDetailsWin As New Pages.ChildWindow With ViewDeta...

VB.Net How to implement the singleton pattern for access via WCF

Hi, I'd like to expose some functionality via a WCF service. I can configure WCF to instantiate a class per-request but am unsure how I can get a reference to a communal singleton - If I were to have some functionality to store a list of calls to a method (call it LogMethod) via WCF in memory and return that list when the GetLogs meth...