vb.net

convert html pages to pdf

Im just imagining what the things I can do to make a pdf file out of my localhost files(.php). I tried using the online conversion tools but it didnt work because they're not on the web definitely. Can you recommend me of some ways on how I can achieve my goal of converting an html table into pdf and print it using the print function in ...

winforms connection properties dialog for configuration string

Is there a way to display the connection properties dialog for connection string browsing(for database) in run time? As I want the user to be able to connect to various database using the GUI. The same one as we get in visual studio connection properties dialog. Thanks in Advance ...

Redirecting to a specified page in a gridview in asp.net

In my application I have a gridview in which details of containers are stored and displyed. There are many containers in this gridview, say more than 150 containers. I have implemented paging for this gridview as it contains many record. But its difficult for the user to go to every page and search one particular container. So i want a ...

Windows Forms VB.NET - Populate TreeView with Hierarchical data

Aloha, I'm trying to populate a treeview on a windows form app with Hierarchical data from a SQL db. The structure from the database is: id_def id_parent description 1 NULL Multidificiência 2 NULL Síndrome 3 NULL Outros 4 1 Surdez de Transmissão 5 2 Surdez Neurossensorial Ligeira 6 3 ...

Paging with an ASP.NET Repeater?

I am making use of a ASP.NET Repeater. My Repeater is called myRepeater and I only want to display 20 items per page. Can this be done with a ASP.NET Repeater and if so what changes must i make to my code below? I want to be able to make use of paging.......... C# example is also fine!! ' Define data objects Dim conn As SqlConnec...

LinqToSql - Bit of a strange behavior

Hi, I am trying to run the following code. But the code breaks Dim complaints = From comp In Me.Db.Complaints _ Let varX = GetVariations().WithVariationId(If(comp.ItemPropertyXVariationId, 0)) _ Let varY = GetVariations().WithVariationId(If(comp.ItemPropertyYVariationId, 0)) _ Select New Hogia.Retail.POS.Data.Complaint(...

Help with FQL and List (of T)

Hi I am using the Facebook Toolkit and making a request using FQL.Multiquery. I am using the following code which returns the correct data: Dim query1 As String = String.Format("SELECT post_id, actor_id, target_id, message FROM stream WHERE source_id in (SELECT target_id FROM connection WHERE source_id={0}) AND is_hidden = 0", FBuserI...

Is it possible to remove the default namespacing that VB.NET creates?

Converting a C# project to VB.NET, C# projects start off with namespace Foo { in each class. Is it possible to have the same behaviour in VB.NET? The problem is VB.NET already creates a namespace with the project name that is hidden, so if you do Namespace Foo in VB.NET you end up with all your stuff in the namespace Foo.Foo ...

winforms closing issue, vb.net

Hi, i have a vb.net 2.0 winforms application. When i open another application (like calculator ) have the focus to it and try to close my application the screen freeze and i have to use ctrl + alt + del to get it to refresh. Any idea what can affect that? ...

WithEvents/Handles better that Remove/AddHandler?

Is WithEvents & Handles usage preferable to RemoveHandler & AddHandler? From Memory point of view (remove an added handler after utilization, etc.) Related question. ...

Input String is not in Correct Format / DataTable.Select Method

Hi I have a problem, when I am trying to use DataTable.Select to get column values.. Actually it is working file in C# which I have converted using Converters. I am using .NET 1.1 / VS 2003...input string was not in correct format.. Dim drs As DataRow() = dtResults.[Select]("ISSD" + i + " =" + issd + " AND BiPad=" + bipad) ...

Using JSON in .Net

What libraries are available to handle JSON in .Net? I've seen this: http://james.newtonking.com/projects/json-net.aspx but would prefer a native library, if possible. ...

SSIS and dotNET 3.5

I was wondering if I can get a 2008 SSIS package to reference .NET 3.5 assemblies? In my case I want to use LINQ-->XML so I can make use of XML literals in a script task. (Otherwise I need to deal with a large number of string concatenations.) NOTE: I know I can use a C# script task and declare my string as String myString = @"This is ...

open window behind browser

I have a website that upon a person going to it, it checks a timestamp on the database. If the timestamp is over 4 hours old then it opens a popup winodw that runs a database import/update sub that updats the database. Then closes itself out afterward. The reasoning for doing it this way is it allows the person browsing to continue abo...

Variable interpolation in VB.NET

Can I do something like "%s said %s blah.", $name, $blah; in VB.NET it's getting painful writing name & "said" & blah & "blah" ...

Best Method For Storing Values

Basically, I want to have a database that's lightweight and I won't need to install a million other things on my clients computers for them to access this. I just need a simple method of reading and writing values so that they're not hardcoded into the program. I could do MySQL (which is what I'm very familiar with), but it doesn't need...

Email Function in VB

I need a simple email function that just sends an email (not looking to spam anyone I promise!). Anyone, anyone? Using VB 2008 ...

DotNetNuke - How do I incorporate my custom ASP.NET/VB.NET files into a DNN site?

Short version: How do I incorporate my custom ASP.NET/VB.NET stuff into a DNN site? Long Version: I'm learning about DotNetNuke. I haven't done much yet, but I'm spending a while analyzing the software, hoping to be able to use it for a very large upcoming project. I've developed a lot of ASP.NET / VB.NET Codebehind reports that are...

VB.NET - Adding more than 1 string to .contains

I have an HTMLElementCollection that I'm going through using a For Each Loop to see if the InnerHTML contains certain words. If they do contain any of those keywords it gets saved into a file. Everything works fine but I was wondering if there is a way to simplify. Here's a sample For Each Helement As HtmlElement In elements If...

How to Restrict renaming file in vb.net?

Is it possible to restrict renaming a exported file in vb.net? ...