vb.net

Auto sizing zoom on an image in .NET

Hello, I'm considering a personal learning project. Using .NET(preferably VB) I want to build a simple desktop app that's only function is to display comics, like CDisplay, but with more advanced navigation. I want to be able zoom in by clicking on certain areas of an image, individual panels for instance, and have the zoom area automa...

ASP.NET: httpwebrequest date header workaround

I'm trying to integrate with an API that requires the "Date" header in a web request. As you may well know, .NET has removed the ability to append or even display a default Date header in your request, so I was wondering about a workaround. Here's the catch: you can't use TCPClients because I don't have "permissions" on my server for su...

SQL Server conection not working, Please help!

hi, I'm not very good at deployment and I'm facing a problem: First Off, I'm using Vista. i have created a windows application in vb.net which has a database file named Customerdb.mdf in it. I have selected the database and in the property, I have selected Embedded Resource option. I have used the following connection: Dim con...

(.net) How to check if a given variable is defined with an attribute

Hello. I'd like to know if my textBox1 variable has the ABCAttribute. How can I check this? ...

Using Firefox HTML source viewer in VB.NET?

I want to view the HTML source of a web page, I've using ICSharpCode.TextEditor, Scintilla,... and they're all good. But, I have missed Firefox HTML source viewer. I wonder if I can use Mozilla ActiveX Control to open the source viewer or is there a command line argument that make Firefox open it? Thanks! ...

"Timeout Obtaining a Connection from the Pool"

Hi Can any one help to get rid of this error "Time Out expired.The time out elapsed prior to obtaining a connection from the pool .This have occurred because all pooled connections were in use and max pool size was reached" Thank You ...

Regex to find a word that includes an escaped character

I am using a simple regular expression (in C#) to find a whole word within a block of text. The word may appear at the beginning, end or in the middle of a the text or sentence with in the text. The expression I have been using \bword\b has been working fine however if the word included a special character (that has been escaped) it n...

Any faster method to get Volume Serial number ?

Hi I'm using this code to generate machine signature. But it's take noticeable time to execute. Wonder why it's that slow ? Any faster method recommended ? Public Shared Function DriveSN(ByVal DriveLetter As String) As String Dim disk As ManagementObject = New ManagementObject(String.Format("Win32_Logicaldisk='{0}'", DriveLetter))...

Why does VB.NET Jet 4.0 app crash if Office not installed?

Hi all I'm working on a VB2008 project that references two Access databases using Provider=Microsoft.Jet.OLEDB.4.0; It would seem if the user does not have MSOffice on their machine, the program crashes with a "XXX stopped working" on startup on Vista and Win7. I thought that Windows had XP and above had Jet functionality built in? Do...

Accessing a dialog box's handle and automatically manipulating the user interface

I have some VB code which makes use of a COM api and results in a certain dialog box popping up on the screen. My program is a console application, that needs to run in a batch file, but I haven't found any other way to do things other than finding a way to automatically manipulate the dialog box. Here is the api call (omitting setup co...

New Thread is still blocking UI-Thread

Hi, when a button is clicked i start a seperate thead which is population a grid and does something with a webbrowser-control. But when the button is click the new thread seems not to be seperate, cause the UI is freezing until the new thread is done. Here the code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As S...

Get current URL from Browser

I'm developing new cafe software in VB.Net and I need to get the url from the web browser. How can I get the current url from any web browser using VB.Net only? (Not ASP.NET) ...

User settings XML serialization of an Object

I am trying to save a custom object as a user setting in a VB.net app. This object consists of a List(Of Pair(Of String, Object)). Pair is a custom class which has two read/write properties (a String and an Object). If I put simple types like int, string, datetime as the second value of my pair, the setting is saved without any problem....

screen tinter

with the help of the stackoverflow community i have designed an app that colors the screen, and makes it look like you are wearing different color glasses. i would also like to add the functionality of instead of coloring the whole screen, ONLY coloring the background of a document exactly like this program does: http://www.thomson-sof...

Crystal report - Running thru .NET

I created a crystal report using test a DB. I run the report using .NET ReportDocument class. Everything works fine until I connect to the test DB. When same report is pointed to UAT DB (all required DB objects are available in UAT too), I am getting error. To fix this, I have to change the server name to UAT DB manually in the RPT file...

Add folder and file using Team Foundation Server SDK

I am having a problem with a folder and a file showing up under my project which is under my solution. The files are being added to TFS but my project has no idea that the file exists and shows it as white Dim tfs As TeamFoundationServer = TeamFoundationServerFactory.GetServer(txtServer.Text) ' Get a reference to Source Control. Dim v...

Why is my call to SendInput not working

I am using SendInput to send some keyboard commands to a dialog box. It is already the active foreground window when I call SendInput. I first send "Return" and then a bunch of other stuff. The dialog box opens with a button selected by default, and when manually selecting Enter, the button is clicked on the dialog progresses to the ne...

asp.net Form Generator

Anyone know of a product/solution that creates web forms on the fly? I want to allow my users to create their own web forms. Any help is appreciated. C# or VB solutions accepted. Edit: What I'm trying to create is something like wufoo.com (thanks o.k.w). I don't want to have to build my own form builder from scratch. ...

Validator Disappears on PostBack Inside Composite Control

This should be a simple problem to fix, as it uses the same way I fixed my last problem with FooControl (below). Basically, I want to add a derived validator I made to this composite control. It works fine but on postback it just disappears in the markup, making me think it's lost its ViewState. I am probably doing something wrong with...

Can I drive a Crystal Report in a standalone application with .NET objects?

I'm trying to learn Crystal Reports (VS 2005, VB) and per this question I was trying to drive the report with my own data objects instead of through a DB connection. I found this tutorial and it looked promising as an answer to my question, but after diving in it only seems to apply to web development. Am I out of luck in trying to pow...