vb.net

VB.NET: Dialog exits when enter pressed?

Hi all; My problem seems to be quite simple, but it's not working the intuitive way. I'm designing a Windows Forms Application, and there is a dialog that should NOT exit when the enter key is pressed, instead it has to validate data first, in case enter was pressed after changing the text of a ComboBox. I've tried by telling it what ...

Firewall using .net

Hi I am planning to develop a windows application in .net which will act like a firewall/proxy server. But I have no iea where to start. Any help? Basically I want to monitor all outgoing HTTP traffic through my computer. ...

VB.NET: How to compose and apply a font to a label in runtime?

Hi, I'm developing a Windows Forms Application in Visual Basic .NET with Visual Studio 2008. I'm trying to compose fonts (Family name, font size, and the styles) at runtime, based on user preferences, and apply them to labels. For the sake of both a simplier user interface, and compatibility between more than one machine requiring to u...

Using a handler to render an image from a blob on an ASP.NET page. I can't get it.

I'm working on a simple image tagging and searching app. I've got my images uploading to the DB, the tags being applied, but am failing when I pull them back - the images don't render. I found this here on SO, but I'm not able to get it working. I think I am perhaps misunderstanding handlers. In short, in the code behind, I'm creating...

Watch for files in a folder in VB.net

I need to watch a folder in our network and if any files get dropped in any time of the day I need to ftp to a different folder. What do you think is a feasible approach? Please post links if you have any that will take me in right direction. ...

Check All Checkboxes

I am trying to check all the checkboxes on a webform (aspx) page, which is inside a master page, depending on the ID of the checkbox. The checkboxes are created dynamically, so I only know the prefix for finding it. So, I need to find these checkboxes by iterating the controls on the page somehow. It's not working out. Any help would ...

How do I save a 2-dimensional array as a csv file?

Hi. I am using visual studio 8. vb.net. I have an array, array1(100,8) and I want to save it as a csv file so that I can open it in excel and examine the contents more closely. The feature, of saving as a csv file, is not going to form an integral part of the finished vb app, I just need something quick and dirty because the data in the...

0x00 in a binary file VB.NET

UPDATED BELOW I am reading a Binary file using BinaryReader in VB.NET. The structure of each row in the file is: "Category" = 1 byte "Code" = 1 byte "Text" = 60 Bytes Dim Category As Byte Dim Code As Byte Dim byText() As Byte Dim chText() As Char Dim br As New BinaryReader(fs) Category = br.ReadByt...

Polymorphism in VB.NET via Late Binding disallows With Events, workaround?

Hello, I'm working on developing an application that talks to a family of USB sensors. I've created a basic implementation that utilizes a class called Sensor. The class contains events and methods that allow for interaction with the sensor (there is also a threaded task processor involved but I'll go with a simple example). My issue ...

Limit wifi access using .net application

Currently following is the setup of my wifi connection. Laptop 1 ------> Wifi Router <------ Laptop 2 There are about 5 laptops which connect to the wifi router to access internet. Network is password protected so anyone with a valid network key can connect and access internet. I am planning to develop a local website which will...

do wpf forms have a timer control?

do wpf forms have a timer control? ...

how do i sendkeys DOWN ARROW?

in vb.net i want to do a sendkeys for the down arrow. what is the code? ...

Launch Reporting Services Reports from .Net Code

What is the best way to launch reporting services reports from .Net code? One method would be to dynamically build a URL and launch a browser. Something like this: http://server/ReportServer/Pages/ReportViewer.aspx?%2fReport+Directory%2fReport%20Name&amp;FirstParameter=1,2,3&amp;SecondParameter=8/30/2009&amp;rs%3aCommand=Render I don...

Strip all punctuation from a string in VB.net

The title says it all. How do I strip all punctuation from a string in vb.net? I really do not want to do stringname.Replace("$", "") for every single bit of punctuation, though it would work. How do i do this quickly and efficiently? Other than coding something that codes this for me.... ...

Is it possible to get the arguments from a sub or function in vb2005 as an array?

Is it possible to get the arguments from a sub or function in vb2005 as an array? ...

VB.NET equivalent of optional Range argument in VBA function

I have an Excel VBA function that takes a number of optional parameters, including an optional Range: Function DazBeta(A As Range, Z As Range, _ B As Integer, _ Optional Freq As Integer = 1, _ Optional c As Double = 0, _ Optional r As Range, _ Optional Pct As Boolean = True, _ Optional Lab...

splitcontainer with treeview

when i click to a node in the treeview i want to see it's corresponding form in the splitcontainer.panel2,there have diffrent nodes and forms.if any one knows please help me ...

VB.net Windows service response time

I have a windows service that utilizes an infinite loop and thread.sleep. The sleep time for the thread is 10 seconds. When the service is initially started AND has work to do (data exist in SQL), it immediately does it's processes. It continues to be responsive and process tasks every 10 seconds as long as it has work to do. If no dat...

VB.NET regular expresion for future date

Hi, I want to validate textbox so that it will accept only future date. Can I have regular expression for the same. I am using vb.net for coding. Thanks. Best Regards, Manoj ...

Jquery or vb.net code for checking future date entered in textbox

Hi, I have below code in vb.net. <tr> <td align="right"> <b>Course Date:</b> </td> <td> <asp:TextBox ID="CourseTimeTextBox" runat="server" Text='<%# Bind("CourseDT") %>' /> </td> </tr> I want to check at client end whether the entered date in text box is future date. I mean this textbox should allow future...