vb.net

OOP in VB.NET - Child, Parent, Parents

I'm trying to do something here with VB that I guess I'm not understanding how to do it exactly. Sorry I'm not that good at OOP. I have a number of things I'm creating and they have two values - parent name and child name (yes, actual people!). So it would be like this: Public Class Child Public Property ParentName As String P...

System32 folder in windows 7

Im using this code in XP 32bit os to get the %windir%\windows\system32 folder path. sysFolderPath = Environment.GetFolderPath(Environment.SpecialFolder.System) What i want to know is that will this same code return the %windir%\windows\syswow64 folder when used in windows7 (64/32bit)? ...

Monitor Install/Uninstall of Fonts on Windows

I'm kind of shooting in the dark here - searches don't seem to be productive on this. I want to create a .NET program to monitor the install and uninstall of fonts. If something is installed or uninstalled, I want to run a program to do something. I thought maybe a Windows Service, but haven't gotten very far with figuring out how to mo...

Net based poll application

I need to make an Internet based poll application. It should save the results in a database. Is ASP.NET a good technology to start with? Could you give me any hint where I can get some code showing how to do this? ...

Windows Azure Storage in VB: Not running in a hosted service or the Development Fabric.

I'm trying to run an instance of the Azure Blob Storage in the Azure Visual Studio 2010 development environment, but keep getting the following error: System.InvalidOperationException: Not running in a hosted service or the Development Fabric. The stack trace is pointing to these lines: Imports Microsoft.WindowsAzure Imports Microsof...

Accessing controls between forms

I have a thread running on a child form, I want to activate a control on the parent form but cannot. It works fine if It's done from the child forms UI thread: (FormMain.SetControlPropertyValue(FormMain.RBSQL2005, "Checked", True)) but not from a thread running on the child form: Public Class FormRestoreDB Private Sub Button1_Click(By...

Move a rectangle around a canvas

I have a canvas in the middle of my application with controls around it. I have a socket that recieves Points and saves them in a list. I draw small 4x4 rectangles on the canvas for the number of points in my list.. say theres 4 points.. theres 4 rectangles. I want to be able to move the rectangles when the points change with code. is ...

Delphi to .NET Converter

Does any one know of a Delphi to .NET converter (either C# or VB.NET)? I've inherited a bunch of Delphi code, never seen Pascal before and rather than learn it, I'd rather just try to use an automated converter, if available, and clean up the code after that. Can't seem to find this kind of tool anyway I search - maybe that's because one...

How to Use a returned value from a function?

Hi, Why this code doesn't work? it returns an unexpected value actually total = 0. total = Cscore(TextBox1.Text) * CDbl(TextBox2.Text) when trying this total = TextBox1.Text * TextBox2.Text it returns the expected value but I need to pass textbox1.text to the function to get the desirable value the function is this Public Functi...

Connect to multiple clients asynchronously

I'm trying to write a programme to connect to a list of a dozen or so clients asynchronously using VB.NET. I'm a newb to sockets and I'm having next to no luck. More of the latter to be precise. Using this MSDN article, I would like to connect to the clients and store them in a List or Dictionary. I don't suppose anyone could help? Tha...

Connect to muliple clients asynchronously

I'm trying to write a programme to connect to a list of a dozen or so clients asynchronously using VB.NET. I'm a newb to sockets and I'm having next to no luck. More of the latter to be precise. Using this MSDN article, I would like to connect to the clients and store them in a List or Dictionary. I don't suppose anyone could help? Tha...

Visual Basic 2010 Picturebox1.Image ftp upload

can someone show me an example script of how I would upload picturebox1's Image to an FTP connection? ...

Populating a CheckListBox in VB.NET

Dear All, I have a small requirement and i request anyone to help me out by providing the source code for the same. The requirement is as follows: Can you please help me as to how to call a stored procedure by passing paramenters and populate a CheckListBox in VB.NET based on the results returned from the stored procedure. Regards, G...

Migrating application from Microsoft Access to VB or C#.NET

I'm currently trying to convince management of the need to port one of our applications to .NET. The application has grown to be a bit of a monster in Access (backend in SQL), with 700 linked tables, 650 forms/subforms, 130 modules and 850 queries. I pretty much know all the major benefits of doing this, but now need to look at how this...

Glossy Button in VB.Net?

How to make glossy button in Vb.Net? or how change button background on mouseover? ...

How to stop AJAX update taking place in one update panel from another update panel ?

We have two update panels on our webpage. Now first update panel is having button cancel. While second update panel is having a file upload control. Now if the user uploads a file that is going to upload in about 2 mins, and in between, say after 30 seconds the user clicks the cancel button, the upload taking place in update panel 2 sho...

WebServices .Net returning data

Hello.. I have a service method <WebMethod()> _ Public Function placeOrder(ByVal name As String, ByVal surname As String, ByVal phone As String, ByVal address As String, ByVal pid As Integer, ByVal items As Integer) As String which places the order and assigns it an ID... If the order fails for some reason (no availability,etc,...

Block images from loading in webbrowser with site exceptions.

I'm currently blocking all images from loading in the webbrowser control by using this registry key. I would like to find a way were i could allow images from some sites to be shown. Any help would be welcome ...

Why the links are not working when moving a page outside the root directory?

My website is in the root directory, which is /www.lebmotor.com/web/content/. I am using this: Dim appPath As String = HttpContext.Current.Request.ApplicationPath Dim directory As String = appPath & "/upload/" & Left(TableName, 2) & "/" to get the path and it's working very well. But when I create a new sub-folder and copy some ...

vb.net Button Text with the & hot key

I have a button on a form and am using the & before a character in the text property to make it a hot key accessible with the ctrl key. My problem is that when I start the program, the underline does not appear until the user presses the ctrl key. How do I make the underline display when the program starts? Thanks ...